0

I am trying to convert my python file to an exe using the following library :

pyinstaller --onfile -w xxx.py

I also tried with the flags but I get the following error :

RecursionError: maximum recursion depth exceeded while calling a Python object 

What is the problem ?

1
  • Could you add the "xxy.py"? WIthout it, it is hard to tell. Commented May 25, 2020 at 12:54

1 Answer 1

2

try this:

Run pyinstaller and stop it to generate the spec file :

pyinstaller filename.py

A file with .spec 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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.