Peter Heitzer <peter.heitzer@rz.uni-regensburg.de> wrote:
P:\W10>pyinstaller.exe --onefile fextasy.py 140 INFO: PyInstaller: 4.7 140 INFO: Python: 3.10.0 171 INFO: Platform: Windows-10-10.0.19041-SP0 171 INFO: wrote P:\W10\fextasy.spec 171 INFO: UPX is not available. Vielleicht liegt es daran. Wie soll pyinstaller eine Exe erstellen, wenn der Packer nicht vorhanden ist.
UPX ist optional sagt: https://pyinstaller.readthedocs.io/en/stable/usage.html#using-upx PyInstaller looks for UPX on the execution path or the path specified with the --upx-dir option. If UPX exists, PyInstaller applies it to the final executable, unless the --noupx option was given. UPX has been used with PyInstaller output often, usually with no problems. ABER: inzwischen funktioniert pyinstaller wieder ohne Fehlermeldung: P:\W10>pyinstaller.exe --onefile --icon fex.ico fextasy.py 124 INFO: PyInstaller: 4.7 124 INFO: Python: 3.10.0 140 INFO: Platform: Windows-10-10.0.19041-SP0 140 INFO: wrote P:\W10\fextasy.spec 140 INFO: UPX is not available. 156 INFO: Extending PYTHONPATH with paths ['P:\\W10'] 484 INFO: checking Analysis 625 INFO: checking PYZ 656 INFO: checking PKG 750 INFO: Bootloader C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\PyInstaller\bootloader\Windows-64bit\run.exe 750 INFO: checking EXE 781 INFO: Rebuilding EXE-00.toc because fextasy.exe missing 781 INFO: Building EXE from EXE-00.toc 781 INFO: Copying bootloader EXE to P:\W10\dist\fextasy.exe 890 INFO: Copying icon to EXE 890 INFO: Copying icons from ['fex.ico'] 890 INFO: Writing RT_GROUP_ICON 0 resource with 20 bytes 890 INFO: Writing RT_ICON 1 resource with 18488 bytes 921 INFO: Copying 0 resources to EXE 921 INFO: Emedding manifest in EXE 921 INFO: Updating manifest in P:\W10\dist\fextasy.exe 1046 INFO: Updating resource type 24 name 1 language 0 1077 INFO: Appending PKG archive to EXE 3484 INFO: Building EXE from EXE-00.toc completed successfully. Typisch Windoof eben: mal tuts, dann wieder nicht, voellig erratisch :-( Allerdings wird das Programm-Icon nur im Windows File Manager angezeigt und nicht auf dem Desktop: https://fex.flupp.org/fop/3ElTOtEh/X-20211118164905.png Was geht da schon wieder schief? -- Ullrich Horlacher Server und Virtualisierung Rechenzentrum TIK Universitaet Stuttgart E-Mail: horlacher@tik.uni-stuttgart.de Allmandring 30a Tel: ++49-711-68565868 70569 Stuttgart (Germany) WWW: http://www.tik.uni-stuttgart.de/