1
votes

I created a program and was trying to convert the py to exe. For which I firstly installed pyinstaller by pip install pyinstaller and then I went to the directory where the program is and opened terminal in that directory.

The command which I used to convert the py to exe was pyinstaller --onefile main.py.

main.py was my file name and I didn't use -w because I need console and my program doesn't have any GUI.

I'm getting RecursionError: maximum recursion depth exceeded Error. The dist and build directory are created but dist doesn't have anything inside.

The program which I'm converting is available here.

1
please share build output as well - gsb22
build consist of one folder named main which has two files inside in it one is base_library.zip and another is main.exe.manifest. - Abhishek Tripathi
oh sorry, i meant the error you are getting. - gsb22
As I mentioned in the post RecursionError: maximum recursion depth exceeded. This is the error I'm getting. In the terminal. - Abhishek Tripathi
im able to generate .exe, can u tell ur python version? and pyinstaller version? - gsb22

1 Answers

2
votes

This is a bug in PyInstaller we (The PyInstaller devs) are working to fix. See https://github.com/pyinstaller/pyinstaller/issues/4406 for more details and to watch the progress of the fix.