Hmm, don’t see anything obvious. It looks like you’re doing it correctly.
That corner of PyInstaller uses the Windows API so it’s a) very fragile and
b) very cryptic if it goes wrong (as you can see). If you run
os.startfile(r'D:\pssolanki\projects\client\smartStacks\icon.ico') does it
open
Hello all,
I have used pyinstaller to create executable for that very same script
without an icon file, and it worked amazingly. This time I have an icon
file to add.
it gives me the above said error. The full error traceback and other
logging info is HERE