Skip to content

Instantly share code, notes, and snippets.

@tuxmartin
Created August 12, 2017 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuxmartin/007bfc17c1e6d5d7a47607c099109376 to your computer and use it in GitHub Desktop.
Save tuxmartin/007bfc17c1e6d5d7a47607c099109376 to your computer and use it in GitHub Desktop.
martin@martin /tmp/py $ pyinstaller test.py
21 INFO: PyInstaller: 3.2.1
21 INFO: Python: 2.7.12
21 INFO: Platform: Linux-4.4.0-47-generic-x86_64-with-LinuxMint-18-sarah
21 INFO: wrote /tmp/py/test.spec
25 INFO: UPX is not available.
26 INFO: Extending PYTHONPATH with paths
['/tmp/py', '/tmp/py']
26 INFO: checking Analysis
27 INFO: Building Analysis because out00-Analysis.toc is non existent
27 INFO: Initializing module dependency graph...
29 INFO: Initializing module graph hooks...
87 INFO: running Analysis out00-Analysis.toc
107 INFO: Caching module hooks...
110 INFO: Analyzing /tmp/py/test.py
110 INFO: Loading module hooks...
110 INFO: Loading module hook "hook-encodings.py"...
1370 INFO: Looking for ctypes DLLs
1370 INFO: Analyzing run-time hooks ...
1375 INFO: Looking for dynamic libraries
1509 INFO: Looking for eggs
1509 INFO: Python library not in binary depedencies. Doing additional searching...
1542 INFO: Using Python library /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
1545 INFO: Warnings written to /tmp/py/build/test/warntest.txt
1582 INFO: checking PYZ
1582 INFO: Building PYZ because out00-PYZ.toc is non existent
1582 INFO: Building PYZ (ZlibArchive) /tmp/py/build/test/out00-PYZ.pyz
1743 INFO: Building PYZ (ZlibArchive) /tmp/py/build/test/out00-PYZ.pyz completed successfully.
1774 INFO: checking PKG
1774 INFO: Building PKG because out00-PKG.toc is non existent
1774 INFO: Building PKG (CArchive) out00-PKG.pkg
1805 INFO: Building PKG (CArchive) out00-PKG.pkg completed successfully.
1807 INFO: Bootloader /usr/local/lib/python2.7/dist-packages/PyInstaller/bootloader/Linux-64bit/run
1808 INFO: checking EXE
1808 INFO: Building EXE because out00-EXE.toc is non existent
1808 INFO: Building EXE from out00-EXE.toc
1808 INFO: Appending archive to ELF section in EXE /tmp/py/build/test/test
1814 INFO: Building EXE from out00-EXE.toc completed successfully.
1816 INFO: checking COLLECT
1816 INFO: Building COLLECT because out00-COLLECT.toc is non existent
1816 INFO: Building COLLECT out00-COLLECT.toc
1827 INFO: Building COLLECT out00-COLLECT.toc completed successfully.
martin@martin /tmp/py $
martin@martin /tmp/py $ ./build/test/test
Error loading Python lib '/tmp/py/build/test/libpython2.7.so.1.0': /tmp/py/build/test/libpython2.7.so.1.0: cannot open shared object file: No such file or directory
martin@martin /tmp/py $
martin@martin /tmp/py $ pyinstaller --onefile --noconfirm test.spec
21 INFO: PyInstaller: 3.2.1
21 INFO: Python: 2.7.12
22 INFO: Platform: Linux-4.4.0-47-generic-x86_64-with-LinuxMint-18-sarah
25 INFO: UPX is not available.
26 INFO: Extending PYTHONPATH with paths
['/tmp/py', '/tmp/py']
26 INFO: checking Analysis
28 INFO: Building because inputs changed
28 INFO: Initializing module dependency graph...
29 INFO: Initializing module graph hooks...
80 INFO: running Analysis out00-Analysis.toc
102 INFO: Caching module hooks...
106 INFO: Analyzing test.py
107 INFO: Loading module hooks...
107 INFO: Loading module hook "hook-encodings.py"...
1326 INFO: Looking for ctypes DLLs
1326 INFO: Analyzing run-time hooks ...
1330 INFO: Looking for dynamic libraries
1462 INFO: Looking for eggs
1462 INFO: Python library not in binary depedencies. Doing additional searching...
1504 INFO: Using Python library /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
1506 INFO: Warnings written to /tmp/py/build/test/warntest.txt
1543 INFO: checking PYZ
1545 INFO: checking PKG
1545 INFO: Bootloader /usr/local/lib/python2.7/dist-packages/PyInstaller/bootloader/Linux-64bit/run
1546 INFO: checking EXE
1546 INFO: checking COLLECT
1546 INFO: Removing dir /tmp/py/dist/test
1548 INFO: Building COLLECT out00-COLLECT.toc
1561 INFO: Building COLLECT out00-COLLECT.toc completed successfully.
martin@martin /tmp/py $
martin@martin /tmp/py $ ./build/test/test
Error loading Python lib '/tmp/py/build/test/libpython2.7.so.1.0': /tmp/py/build/test/libpython2.7.so.1.0: cannot open shared object file: No such file or directory
martin@martin /tmp/py $
martin@martin /tmp/py $ ln -s /usr/lib/x86_64-linux-gnu/libpython2.7.so.1 /tmp/py/build/test/libpython2.7.so.1.0
martin@martin /tmp/py $
martin@martin /tmp/py $ ./build/test/test
test
martin@martin /tmp/py $ lsb_release -a
No LSB modules are available.
Distributor ID: LinuxMint
Description: Linux Mint 18 Sarah
Release: 18
Codename: sarah
martin@martin /tmp/py $ uname -a
Linux martin 4.4.0-47-generic #68-Ubuntu SMP Wed Oct 26 19:39:52 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
martin@martin /tmp/py $
martin@martin /tmp/py $ cat test.py
print "test"
martin@martin /tmp/py $
martin@martin /tmp/py $ pyinstaller -v
3.2.1
martin@martin /tmp/py $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment