Answer the question
In order to leave comments, you need to log in
Why doesn't pyinstaller compile the icon script?
I have a script that I want to compile with an icon and for this I write in cmd
pyinstaller -i "C:\Users\Ridalit.000\Desktop\Python\RIDLvoicePRINT (exe)\test.ico" -F --windowed -- hidden-import=pyttsx3.drivers --hidden-import=pyttsx3.drivers.dummy --hidden-import=pyttsx3.drivers.espeak --hidden-import=pyttsx3.drivers.nsss --hidden-import=pyttsx3.drivers. sapi5 print.py
*This number of settings is due to the fact that I use the pytts3 module
After running the cmd command, it gives an error:
File "c:\python 3.7\lib\site-packages\PyInstaller\utils\win32\icon.py", line 76 , in fromfile
self._fields_ = list(struct.unpack(self._format_, data))
struct.error: unpack requires a buffer of 16 bytes
And without the lag -i and the path to the icon, everything works fine.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question