This worked for me
-
Run pyinstaller and stop it to generate the spec file :
pyinstaller filename.pyA file with
.specas extension should be generated -
Now add the following lines to the beginning of the spec file :
import sys sys.setrecursionlimit(5000) -
Now run the spec file using :
pyinstaller filename.spec