I am running WinPython 3.4.4.3 with pyinstaller 3.2 (obtained via pip install pyinstaller).
Now I\'ve got some really simple Qt4 code that I want to convert to EXE a
Mustafa did guide me to the right direction, you have to increase the recursion limit. But the code has to be put to the beginning of the spec file and not in your python code:
# -*- mode: python -*-
import sys
sys.setrecursionlimit(5000)
Create the spec file with pyi-makespec
first, edit it and then build by passing the spec file to the pyinstaller
command. See the pyinstaller manual for more information about using spec files.
Please make sure to use pyinstaller 3.2.0, with 3.2.1 you will get ImportError: cannot import name 'is_module_satisfies'
(see the issue on GitHub)
install pyinstaller last developer version:
pip uninstall pyinstaller
pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip
You can make changes to the recursion limit in the following manner:
import sys
sys.setrecursionlimit(1000)