[Python-de] Re: pyinstaller funktioniert nicht mehr

"Peter Heitzer" <[email protected]>
Newsgroups gmane.comp.python.general.german
Message-ID <[email protected]>
Ulli Horlacher <[email protected]> wrote:
>Peter Heitzer <[email protected]> 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    <DIR>          .
>18 Nov 2021  11:38    <DIR>          ..
>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, [email protected]
_______________________________________________
python-de Mailingliste -- [email protected]
Zur Abmeldung von dieser Mailingliste senden Sie eine Nachricht an [email protected]
https://mail.python.org/mailman3/lists/python-de.python.org/
Mitgliedsadresse: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.