Failed to execute Script

47 views
Skip to first unread message

Kevin Lindsay

unread,
Apr 8, 2020, 4:33:20 PM4/8/20
to PyInstaller
Hi friends,

I'm trying to package a simple application using PyInstaler. When I run the install I don't see any warnings or errors to make me think it didn't run correctly but when I try to run the application I get an error that just says Failed to execute script and the name of the program. I followed the directions given https://pyinstaller.readthedocs.io/en/stable/when-things-go-wrong.html to run the script from the command line to get more information but I get the exact same error so I don't have any idea what is stopping the program from executing. Any ideas?

Thanks.

Connor Irwin

unread,
Apr 9, 2020, 4:50:10 AM4/9/20
to pyins...@googlegroups.com

I assume that you did NoConsole mode and OneFile mode, because when I do those two together I get the same error.

 

abhishek bhatta

unread,
Apr 9, 2020, 6:27:55 AM4/9/20
to PyInstaller
Hi Kevin,

In the past I have encountered a similar error where the executable is created correctly but windows cannot run it. This happened in windows 10 pro OS. if you have such an OS then you should try installing the media feature pack available at: https://www.microsoft.com/en-us/software-download/mediafeaturepack

If possible try running the executable in any other version of windows and check if it is a problem of windows or pyinstaller.

Regards,
Abhishek Bhatta
Reply all
Reply to author
Forward
0 new messages