Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Peter Heitzer" Newsgroups: de.comp.lang.python Subject: Re: pyinstaller funktioniert nicht mehr Date: 18 Nov 2021 12:32:48 GMT Lines: 61 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net heB6JTEA0PZulB3pB6b99wfheG0E4FY7rb69jNbFmW3IqzGQPpkrZPDRO6 X-Orig-Path: not-for-mail Cancel-Lock: sha1:0QGsZH3xa9kGntEWr5/sKFAD1WY= User-Agent: tin/2.4.3-20181224 ("Glen Mhor") (UNIX) (Linux/4.19.0-13-amd64 (x86_64)) Xref: csiph.com de.comp.lang.python:5772 Ulli Horlacher wrote: >Peter Heitzer 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. >Was ist das? Wo bekomme ich das her? Das sollte IMO Bestandteil PyInstaller sein. >> In meiner Windows 10 VM hat allerdings ein einfaches Skript mit etwas >> Tk GUI funktioniert. >> Probier mal ein triviales Skript mit print('Hello') aus. >Ohne Tk funktionierts. Ich kann es dann allerdings nur genau einmal starten: >P:\>type argv.py >#!/usr/bin/python3 >import sys >for a in sys.argv: print("["+a+"]") >P:\W10\dist>dir > > Volume in drive P is Shared Folders > Volume Serial Number is 0000-0034 > Directory of P:\W10\dist >18 Nov 2021 11:38 . >18 Nov 2021 11:38 .. >09 Oct 2017 13:30 6.775.867 fexit.exe >18 Nov 2021 10:36 251.392 fextasy.exe >18 Nov 2021 11:27 311.296 tcpbm.exe >18 Nov 2021 11:38 6.929.235 argv.exe > 4 File(s) 14.268.132 bytes > 2 Dir(s) 332.320.088.064 bytes free >P:\W10\dist>argv a b >[dist\argv] >[a] >[b] >P:\W10\dist>argv a b >The process cannot access the file because it is being used by another process. >P:\W10\dist>argv 1 2 zzz >The process cannot access the file because it is being used by another process. Strange. Was hast du für ein seltsames Windows? -- Dipl.-Inform(FH) Peter Heitzer, peter.heitzer@rz.uni-regensburg.de