pyinstaller ignores icon

Ulli Horlacher framstag at rus.uni-stuttgart.de
Mon Dec 14 05:19:30 EST 2015


pyinstaller ignores a specified icon file: the resulting executable shows
the default icon on the desktop.

I compile with:

S:\python>pyinstaller.exe --onefile --icon=fex.ico fexit.py
31 INFO: PyInstaller: 3.0
31 INFO: Python: 2.7.11
31 INFO: Platform: Windows-7-6.1.7601-SP1
31 INFO: wrote S:\python\fexit.spec
47 INFO: UPX is not available.
47 INFO: Extending PYTHONPATH with S:\python
47 INFO: checking Analysis
920 INFO: checking PYZ
1014 INFO: checking PKG
1092 INFO: Building because S:\python\build\fexit\fexit.exe.manifest changed
1092 INFO: Building PKG (CArchive) out00-PKG.pkg
1497 INFO: Redirecting Microsoft.VC90.CRT version (9, 0, 21022, 8) -> (9, 0, 30729, 4940)
5366 INFO: Bootloader c:\python27\lib\site-packages\PyInstaller\bootloader\Windows-32bit\run.exe
5366 INFO: checking EXE
5444 INFO: Building because out00-EXE.toc is bad
5475 INFO: Building EXE from out00-EXE.toc
5522 INFO: SRCPATH [('fex.ico', None)]
5522 INFO: Updating icons from ['fex.ico'] to c:\users\admin\appdata\local\temp\tmpoingb4
5522 INFO: Writing RT_GROUP_ICON 0 resource with 20 bytes
5522 INFO: Writing RT_ICON 1 resource with 18488 bytes
5538 INFO: Appending archive to EXE S:\python\dist\fexit.exe


http://fex.rus.uni-stuttgart.de/fop/SsmdcBLk/X-20151214111803.png

Where is the error?



-- 
Ullrich Horlacher              Server und Virtualisierung
Rechenzentrum IZUS/TIK         E-Mail: horlacher at tik.uni-stuttgart.de
Universitaet Stuttgart         Tel:    ++49-711-68565868
Allmandring 30a                Fax:    ++49-711-682357
70550 Stuttgart (Germany)      WWW:    http://www.tik.uni-stuttgart.de/



More information about the Python-list mailing list