Fatal Error: Failed to Execute Script (name)

83 views
Skip to first unread message

Donny Kapic

unread,
Jul 2, 2021, 6:11:28 AM7/2/21
to PyInstaller
Hey everyone,

I'm using pyinstaller version 3.6 to create an exe from a python 2.7 script. I have a scheduled task that runs this exe every 10 minutes indefinitely. It executes just fine 95% of the time, but i'll randomly get an error message box popping up saying "Fatal Error: Failed to Execute Script (name_of_my_exe). 

I've pretty much given up trying to figure out why it's failing. All I want to do now is just hide that pop up box from showing up. Does anyone know how to do this? 

The command I'm using to create it is:
pyinstaller --onefile name.py --noconsole

Pretty desperate right now, any help is greatly appreciated.

bwoodsend

unread,
Jul 3, 2021, 5:56:31 AM7/3/21
to PyInstaller

--noconsole means no debugging output so with that option you will likely never know what the problem is because it can’t tell you. Either turn --noconsole off and see what Python error message it comes out with in the console it opens or wrap your Python code in a try: [your code] except BaseException as ex: [write exception to some log file].

Reply all
Reply to author
Forward
0 new messages