-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to execute script #2015
Comments
Build the app without --windowed and run it from a command prompt to get the full error output. |
Thanks for a quick answer. I got this message: C:\Python27\My Projects\Pos\dist>entercodescreen.exe Now, why does the .py file run correctly then? |
I don't know. You'll have to do some debugging on your own and find out why To add data files to the frozen app, see http://pyinstaller.readthedocs.io/en/latest/spec-files.html#adding-files-to-the-bundle |
You're right. I built without --onefile and I can´t see the dir where I have the images. I´ll check the link you suggested to see how to include the images directory. Thanks. |
I take this as "solved". |
Solved indeed. Thanks a lot. I looked at the link you suggested and ended up learning about how to change the .spec script and how to add files and directories. Now the bundled app runs 100% !! In fact, I´ll call my 'own' .spec scripts from now on. |
@quieromicubita can you share your .spec file ? |
+1 share |
@LipillaiDave @ebadali Problem solved with run .spec script (pyinstaller main.spec)
|
get all libraries used in the script from Lib\site-packages to your application directory |
After I get the .exe with Pyinstaller I try to run the application and it pops this message 'Failed to execute script'.
The application runs 'correctly' if I comment the following line of code:
# i_path = ipath[count]
The line above is within a for loop to store paths for 10 images which are button icons added dynamically:
The error occurs when running the application. There isn´t any error message when running Pyinstaller.
The application runs correctly without building the exe, by just running the .py file it shows the app exactly as desired.
Pyinstaller: 3.3.dev0+8756735
Python 2.7.10
Platform: Windows -7-6.1.7601-SP1
Building with the following commands: --onefile --noupx --windowed --icon=entercodescreen.ico entercodescreen.py
The warning file in the 'build' directory has a long list of missing modules but I don´t know how to interpret warnings yet.
The text was updated successfully, but these errors were encountered: