Von einem Beispielprogramm wollte ich mittels `pyinstaller` eine ausführbare Datei für Linux erzeugen.
Dazu habe ich im Hauptverzeichnis des Beispielprogramms ein Terminal geöffnet und folgenden Befehl eingegeben.
Code: Alles auswählen
pyinstaller main.py
Code: Alles auswählen
57 INFO: PyInstaller: 3.4
57 INFO: Python: 3.6.7
57 INFO: Platform: Linux-4.15.0-50-generic-x86_64-with-Ubuntu-18.04-bionic
58 INFO: wrote /home/ata/source/hide-layout/main.spec
59 INFO: UPX is not available.
61 INFO: Extending PYTHONPATH with paths
['/home/ata/source/hide-layout', '/home/ata/source/hide-layout']
61 INFO: checking Analysis
61 INFO: Building Analysis because Analysis-00.toc is non existent
61 INFO: Initializing module dependency graph...
63 INFO: Initializing module graph hooks...
67 INFO: Analyzing base_library.zip ...
3015 INFO: running Analysis Analysis-00.toc
3042 INFO: Caching module hooks...
3047 INFO: Analyzing /home/ata/source/hide-layout/main.py
3177 INFO: Processing pre-find module path hook PyQt5.uic.port_v3
3215 INFO: Processing pre-find module path hook PyQt5.uic.port_v2
3419 INFO: Loading module hooks...
3419 INFO: Loading module hook "hook-PyQt5.QtCore.py"...
3517 INFO: Loading module hook "hook-PyQt5.QtWidgets.py"...
3565 INFO: Loading module hook "hook-xml.py"...
3787 INFO: Loading module hook "hook-xml.etree.cElementTree.py"...
3787 INFO: Loading module hook "hook-encodings.py"...
3839 INFO: Loading module hook "hook-pydoc.py"...
3840 INFO: Loading module hook "hook-PyQt5.QtGui.py"...
3877 INFO: Loading module hook "hook-PyQt5.uic.py"...
3879 INFO: Loading module hook "hook-PyQt5.py"...
3912 INFO: Looking for ctypes DLLs
3912 INFO: Analyzing run-time hooks ...
3915 INFO: Including run-time hook 'pyi_rth_qt5.py'
3919 INFO: Looking for dynamic libraries
6318 INFO: Looking for eggs
6318 INFO: Python library not in binary dependencies. Doing additional searching...
6417 INFO: Using Python library /usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0
6421 INFO: Warnings written to /home/ata/source/hide-layout/build/main/warn-main.txt
6444 INFO: Graph cross-reference written to /home/ata/source/hide-layout/build/main/xref-main.html
6454 INFO: checking PYZ
6454 INFO: Building PYZ because PYZ-00.toc is non existent
6454 INFO: Building PYZ (ZlibArchive) /home/ata/source/hide-layout/build/main/PYZ-00.pyz
6758 INFO: Building PYZ (ZlibArchive) /home/ata/source/hide-layout/build/main/PYZ-00.pyz completed successfully.
6760 INFO: checking PKG
6760 INFO: Building PKG because PKG-00.toc is non existent
6761 INFO: Building PKG (CArchive) PKG-00.pkg
6804 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
6805 INFO: Bootloader /home/ben/.local/lib/python3.6/site-packages/PyInstaller/bootloader/Linux-64bit/run
6805 INFO: checking EXE
6805 INFO: Building EXE because EXE-00.toc is non existent
6805 INFO: Building EXE from EXE-00.toc
6807 INFO: Appending archive to ELF section in EXE /home/ata/source/hide-layout/build/main/main
6819 INFO: Building EXE from EXE-00.toc completed successfully.
6821 INFO: checking COLLECT
6821 INFO: Building COLLECT because COLLECT-00.toc is non existent
6821 INFO: Building COLLECT COLLECT-00.toc
7351 INFO: Building COLLECT COLLECT-00.toc completed successfully.
Code: Alles auswählen
main: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/l, for GNU/Linux 2.6.32, BuildID[sha1]=28ba79c778f7402713aec6af319ee0fbaf3a8014, stripped
Was habe ich falsch gemacht?
PS: Die erstellte ausführbare Datei (1,3 MB) würde ich auch gerne zur Verfügung stellen, aber ich kenne leider keinen Hoster, der Programmdateien akzeptiert.
Gruß
Atalanttore