able to generate exe file but its not running properly.

20 views
Skip to first unread message

Parikshit Saha

unread,
Jul 2, 2023, 6:25:29 AM7/2/23
to PyInstaller
I have written an python code which is working perfectly with
python SNC_OCTwork.py command.
while running pyinstaller --onefile SNC_OCTwork.py command it is telling to do the following modification & retry.
1. In your program's .spec file add this line near the top::
     import sys ; sys.setrecursionlimit(sys.getrecursionlimit() * 5)
2. Build your program by running PyInstaller with the .spec file as
   argument::     pyinstaller myprog.spec

After running pyinstaller SNC_OCTwork.spec with modification it ran successfully and the SNC_OCTwork.exe file generated in dist folder.
I have copied the exe file outside the dist folder in the root directory. while double clicking, it is opening an cmd prompt and getting off after sometime. that cmd prompt has some error but unable to see it also unable to resolve it

bwoodsend

unread,
Jul 3, 2023, 2:57:25 AM7/3/23
to PyInstaller
Run the application from cmd so that the terminal stays open and you can see the error message.
Reply all
Reply to author
Forward
0 new messages