[PyInstaller] Re: OSError: [Errno 22] Invalid argument - when trying to add an icon

2020-12-15 Thread bwoodsend
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

[PyInstaller] OSError: [Errno 22] Invalid argument - when trying to add an icon

2020-12-15 Thread P S Solanki
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