Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pyinstaller
#5
okay, so when i move the file onto windows (in another computer) - how can i run it there ? will it show it as .exe ?

the whole purpose of this is to run the program under windows (probably in cmd)

this is the output of when i try to run it:

Output:
tal@tal-HP-Notebook:~/Documents/python_folder$ pyinstaller --onefile try5.py 48 INFO: PyInstaller: 3.6 48 INFO: Python: 3.7.2 49 INFO: Platform: Linux-4.4.0-178-generic-x86_64-with-debian-stretch-sid 50 INFO: wrote /home/tal/Documents/python_folder/try5.spec 52 INFO: UPX is not available. 53 INFO: Extending PYTHONPATH with paths ['/home/tal/Documents/python_folder', '/home/tal/Documents/python_folder'] 54 INFO: checking Analysis 54 INFO: Building Analysis because Analysis-00.toc is non existent 54 INFO: Initializing module dependency graph... 56 INFO: Caching module graph hooks... 61 INFO: Analyzing base_library.zip ... 4007 INFO: Caching module dependency graph... 4143 INFO: running Analysis Analysis-00.toc 4158 INFO: Analyzing /home/tal/Documents/python_folder/try5.py 4161 INFO: Processing module hooks... 4161 INFO: Loading module hook "hook-xml.py"... 4452 INFO: Loading module hook "hook-pydoc.py"... 4452 INFO: Loading module hook "hook-encodings.py"... 4525 INFO: Looking for ctypes DLLs 4526 INFO: Analyzing run-time hooks ... 4533 INFO: Looking for dynamic libraries 4957 INFO: Looking for eggs 4958 INFO: Python library not in binary dependencies. Doing additional searching... Traceback (most recent call last): File "/home/tal/.local/bin/pyinstaller", line 8, in <module> sys.exit(run()) File "/home/tal/.local/lib/python3.7/site-packages/PyInstaller/__main__.py", line 114, in run run_build(pyi_config, spec_file, **vars(args)) File "/home/tal/.local/lib/python3.7/site-packages/PyInstaller/__main__.py", line 65, in run_build PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs) File "/home/tal/.local/lib/python3.7/site-packages/PyInstaller/building/build_main.py", line 734, in main build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build')) File "/home/tal/.local/lib/python3.7/site-packages/PyInstaller/building/build_main.py", line 681, in build exec(code, spec_namespace) File "/home/tal/Documents/python_folder/try5.spec", line 17, in <module> noarchive=False) File "/home/tal/.local/lib/python3.7/site-packages/PyInstaller/building/build_main.py", line 244, in __init__ self.__postinit__() File "/home/tal/.local/lib/python3.7/site-packages/PyInstaller/building/datastruct.py", line 160, in __postinit__ self.assemble() File "/home/tal/.local/lib/python3.7/site-packages/PyInstaller/building/build_main.py", line 478, in assemble self._check_python_library(self.binaries) File "/home/tal/.local/lib/python3.7/site-packages/PyInstaller/building/build_main.py", line 568, in _check_python_library python_lib = bindepend.get_python_library_path() File "/home/tal/.local/lib/python3.7/site-packages/PyInstaller/depend/bindepend.py", line 945, in get_python_library_path raise IOError(msg) OSError: Python library not found: libpython3.7.so.1.0, libpython3.7mu.so.1.0, libpython3.7m.so, libpython3.7m.so.1.0 This would mean your Python installation doesn't come with proper library files. This usually happens by missing development package, or unsuitable build parameters of Python installation. * On Debian/Ubuntu, you would need to install Python development packages * apt-get install python3-dev * apt-get install python-dev * If you're building Python by yourself, please rebuild your Python with `--enable-shared` (or, `--enable-framework` on Darwin) tal@tal-HP-Notebook:~/Documents/python_folder$
Reply


Messages In This Thread
pyinstaller - by astral_travel - May-23-2020, 01:24 PM
RE: pyinstaller - by snippsat - May-23-2020, 02:04 PM
RE: pyinstaller - by astral_travel - May-23-2020, 02:40 PM
RE: pyinstaller - by snippsat - May-23-2020, 03:19 PM
RE: pyinstaller - by astral_travel - May-23-2020, 03:37 PM
RE: pyinstaller - by snippsat - May-23-2020, 04:19 PM
RE: pyinstaller - by astral_travel - May-23-2020, 04:26 PM
RE: pyinstaller - by snippsat - May-23-2020, 05:35 PM
RE: pyinstaller - by astral_travel - May-23-2020, 05:41 PM
RE: pyinstaller - by snippsat - May-23-2020, 10:05 PM
RE: pyinstaller - by pyzyx3qwerty - May-24-2020, 09:33 AM
RE: pyinstaller - by snippsat - May-24-2020, 10:14 AM
RE: pyinstaller - by pyzyx3qwerty - May-24-2020, 10:20 AM
RE: pyinstaller - by snippsat - May-24-2020, 11:41 AM
RE: pyinstaller - by astral_travel - May-24-2020, 04:17 PM
RE: pyinstaller - by pyzyx3qwerty - May-24-2020, 05:25 PM
RE: pyinstaller - by astral_travel - May-24-2020, 05:38 PM
RE: pyinstaller - by pyzyx3qwerty - May-24-2020, 05:38 PM
RE: pyinstaller - by astral_travel - May-24-2020, 05:42 PM
RE: pyinstaller - by pyzyx3qwerty - May-24-2020, 05:43 PM
RE: pyinstaller - by astral_travel - May-24-2020, 05:46 PM
RE: pyinstaller - by snippsat - May-24-2020, 05:54 PM
RE: pyinstaller - by astral_travel - May-24-2020, 06:10 PM
RE: pyinstaller - by astral_travel - May-24-2020, 08:20 PM
RE: pyinstaller - by snippsat - May-24-2020, 09:06 PM
RE: pyinstaller - by astral_travel - May-25-2020, 04:25 PM
RE: pyinstaller - by snippsat - May-25-2020, 04:55 PM
RE: pyinstaller - by astral_travel - May-25-2020, 06:02 PM
RE: pyinstaller - by snippsat - May-25-2020, 06:24 PM
RE: pyinstaller - by astral_travel - May-25-2020, 06:30 PM
RE: pyinstaller - by snippsat - May-25-2020, 06:38 PM
RE: pyinstaller - by astral_travel - May-27-2020, 06:38 PM
RE: pyinstaller - by astral_travel - May-28-2020, 02:15 PM
RE: pyinstaller - by snippsat - May-28-2020, 03:29 PM
RE: pyinstaller - by astral_travel - May-28-2020, 04:25 PM
RE: pyinstaller - by snippsat - May-28-2020, 05:07 PM
RE: pyinstaller - by astral_travel - May-28-2020, 05:16 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020