pyinstaller creating EXE RuntimeError: maximum recursion depth exceeded while calling a Python object

前端 未结 9 1064
栀梦
栀梦 2020-11-29 18:51

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

9条回答
  •  时光说笑
    2020-11-29 19:43

    This worked for me

    1. Run pyinstaller and stop it to generate the spec file :

      pyinstaller filename.py
      

      A file with .spec as extension should be generated

    2. Now add the following lines to the beginning of the spec file :

      import sys
      sys.setrecursionlimit(5000)
      
    3. Now run the spec file using :

      pyinstaller filename.spec
      

提交回复
热议问题