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 OK? That would confirm if this is an issue with the path. Failing that maybe try a different converter - although that’s a somewhat unhopeful suggestion.