pyinstaller error: OSError: Python library not found: libpython3.4mu.so.1.0, libpython3.4m.so.1.0, libpython3.4.so.1.0 -


i'm using python 3.4.4 on centos7.

i've created python program on local machine makes use of qt modules. program running fine on local machine. i'm trying create executable pyinstaller. i'm using command:

pyinstaller main.py 

i'm getting following output:

40 info: pyinstaller: 3.2.1 40 info: python: 3.4.4 41 info: platform: linux-3.10.0-327.36.3.el7.x86_64-x86_64-with-centos-7.3.1611-core 41 info: wrote /home/neilharris/documents/python_projects/transcoder/main.spec 42 info: upx not available. 44 info: extending pythonpath paths ['/home/neilharris/documents/python_projects/transcoder',  '/home/neilharris/documents/python_projects/transcoder'] 44 info: checking analysis 44 info: building analysis because out00-analysis.toc non existent 44 info: initializing module dependency graph... 45 info: initializing module graph hooks... 47 info: analyzing base_library.zip ... 1869 info: processing pre-find module path hook   distutils 3030 info: running analysis out00-analysis.toc 3039 info: caching module hooks... 3046 info: analyzing /home/neilharris/documents/python_projects/transcoder/main.py 3089 info: loading module hooks... 3089 info: loading module hook "hook-xml.py"... 3353 info: loading module hook "hook-encodings.py"... 3437 info: loading module hook "hook-pyqt4.py"... 3438 info: loading module hook "hook-distutils.py"... 3440 info: loading module hook "hook-pyqt4.qtcore.py"... 3575 info: loading module hook "hook-pydoc.py"... 3576 info: loading module hook "hook-pyqt4.qtgui.py"... 3849 info: looking ctypes dlls 3861 info: analyzing run-time hooks ... 3867 info: including run-time hook 'pyi_rth_qt4plugins.py' 3877 info: looking dynamic libraries ldd: warning: not have execution permission `/usr/local/lib/python3.4/site-packages/pyqt4/qtgui.so' ldd: warning: not have execution permission `/usr/local/lib/python3.4/site-packages/pyqt4/qtcore.so' 5115 info: looking eggs 5115 info: python library not in binary depedencies. doing additional searching... traceback (most recent call last):   file "/usr/local/bin/pyinstaller", line 9, in <module>     load_entry_point('pyinstaller==3.2.1', 'console_scripts', 'pyinstaller')()   file "/usr/local/lib/python3.4/site-packages/pyinstaller/__main__.py", line 90, in run     run_build(pyi_config, spec_file, **vars(args))   file "/usr/local/lib/python3.4/site-packages/pyinstaller/__main__.py", line 46, in run_build     pyinstaller.building.build_main.main(pyi_config, spec_file, **kwargs)   file "/usr/local/lib/python3.4/site-packages/pyinstaller/building/build_main.py", line 788, in main     build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))   file "/usr/local/lib/python3.4/site-packages/pyinstaller/building/build_main.py", line 734, in build     exec(text, spec_namespace)   file "<string>", line 16, in <module>   file "/usr/local/lib/python3.4/site-packages/pyinstaller/building/build_main.py", line 212, in __init__     self.__postinit__()   file "/usr/local/lib/python3.4/site-packages/pyinstaller/building/datastruct.py", line 161, in __postinit__     self.assemble()   file "/usr/local/lib/python3.4/site-packages/pyinstaller/building/build_main.py", line 543, in assemble     self._check_python_library(self.binaries)   file "/usr/local/lib/python3.4/site-packages/pyinstaller/building/build_main.py", line 626, in _check_python_library     raise ioerror(msg) oserror: python library not found: libpython3.4m.so.1.0, libpython3.4mu.so.1.0, libpython3.4.so.1.0 mean python installation doesn't come proper library files. happens missing development package, or unsuitable build parameters of python installation.  * on debian/ubuntu, need install python development packages   * apt-get install python3-dev   * apt-get install python-dev * if you're building python yourself, please rebuild python `--enable-shared` (or, `--enable-framework` on darwin) 

does know issue be? have python3-devel , python-devel installed (in relation suggestion @ end of printed output.) thanks

you must install python-dev python's version

for example:

debian/ubuntu - python 2.7 ---> python2.7-dev

centos/redhat - python 3.4 ---> python34-devel

centos/redhat - python 2.7 ---> python27-devel

one of these errors can puzzling, however: ioerror("python library not found!") pyinstaller needs bundle python library, main part of python interpreter, linked dynamic load library. name , location of file varies depending on platform in use. python installations not include dynamic python library default (a static-linked 1 may present cannot used). may need install development package of kind. or, library may exist not in folder pyinstaller searching.

the places pyinstaller looks python library different in different operating systems, /lib , /usr/lib checked in systems. if cannot put python library there, try setting correct path in environment variable ld_library_path in linux or dyld_library_path in os x.

reference


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -