Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23390

Issue pyinstaller/tkinter - Unhandled exception in script

$
0
0

I created a .exe starting from a .py file with the following command:

pyinstaller --noconfirm --onedir --windowed --icon "C:/icon05.ico" --add-data "C:/icon05.ico;." --hidden-import "tkinter"  "C:/script01.py"

The .exe enclosed in the generated folder works in one PC but not the other one.Running the .exe in the other PC I get the following message:

Unhandled exception in scriptFailed to execute script 'script01' due to unhandled exception: bitmap "icon05.ico" not definedTraceback (most recent call last):    File "script01.py", line 387, in <module>    File "tkinter\__init__.py", line 2080, in wm_iconbitmap    _tkinter.TclError: bitmap "icon05.ico" not defined

Tried several times but without success


Viewing all articles
Browse latest Browse all 23390

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>