Hi,Our server is AIX 7.1 and aixtools.python3.6 and xlc are already installed.
According to this article(
http://forums.rootvg.net/aixtools/pyinstaller-issue-with-python3-6-deployed-via-aixtools/msg2839/#msg2839) I installed pyinstaller successfully
but it have other issue, Please help to fix the issue.
root@aix7:/$lslpp -l|grep -i xlc
xlC.adt.include 16.1.0.0 COMMITTED C Set ++ Application
xlC.aix61.rte 16.1.0.0 COMMITTED IBM XL C++ Runtime for AIX 6.1
xlC.cpp 9.0.0.0 COMMITTED C for AIX Preprocessor
xlC.msg.en_US.cpp 9.0.0.0 COMMITTED C for AIX Preprocessor
xlC.msg.en_US.rte 16.1.0.0 COMMITTED IBM XL C++ Runtime
xlC.rte 16.1.0.0 COMMITTED IBM XL C++ Runtime for AIX
xlCcmp.13.1.3 13.1.3.0 COMMITTED XL C++ compiler
xlCcmp.13.1.3.bundle 13.1.3.0 COMMITTED XL C++ media defined bundles
xlCcmp.13.1.3.lib 13.1.3.0 COMMITTED XL C++ libraries
xlCcmp.13.1.3.license 13.1.3.0 COMMITTED XL C++ license files
xlCcmp.13.1.3.ndi 13.1.3.0 COMMITTED XL C++ non-default
xlCcmp.13.1.3.tools 13.1.3.0 COMMITTED XL C++ tools
xlccmp.13.1.3 13.1.3.0 COMMITTED XL C compiler
xlccmp.13.1.3.bundle 13.1.3.0 COMMITTED XL C media defined bundles
xlccmp.13.1.3.lib 13.1.3.0 COMMITTED XL C libraries
xlccmp.13.1.3.license 13.1.3.0 COMMITTED XL C license files
xlccmp.13.1.3.ndi 13.1.3.0 COMMITTED XL C non-default installation
root@aix7:/$lslpp -l|grep -i python3
aixtools.python3.adt 3.6.9.0 COMMITTED python python3 ADT files
aixtools.python3.man.en_US
3.6.9.0 COMMITTED python python3 man pages
aixtools.python3.rte 3.6.9.0 COMMITTED python python3 26-Oct-2019
root@aix7:/data1/python36/pyinstaller3.6/pyinstaller-3.6$pip3 list
Package Version
------------ --------------
altgraph 0.17
APScheduler 3.6.3
func-timeout 4.3.5
future 0.18.2
macholib 1.14
pefile 2019.4.18pwd
pexpect 4.8.0
pika 1.1.0
pip 20.0.2
ptyprocess 0.6.0
PyInstaller 3.6+6d4cce1f8e
PyMySQL 0.9.3
pytz 2019.3
setuptools 40.6.2
six 1.14.0
some-package 0.1
SQLAlchemy 1.3.11
tzlocal 2.0.0
wheel 0.34.2
root@aix7:/data1/python36$pyinstaller -F test.py
122 INFO: PyInstaller: 3.6+6d4cce1f8e
123 INFO: Python: 3.6.9
156 INFO: Platform: AIX-1-000374CBD600-powerpc-64bit-COFF
161 INFO: wrote /data1/python36/test.spec
192 INFO: UPX is not available.
195 INFO: Extending PYTHONPATH with paths
['/data1/python36', '/data1/python36']
196 INFO: checking Analysis
215 INFO: checking PYZ
224 INFO: checking PKG
224 INFO: Building PKG because PKG-00.toc is non existent
224 INFO: Building PKG (CArchive) PKG-00.pkg
Traceback (most recent call last):
File "/opt/bin/pyinstaller", line 11, in <module>
load_entry_point('PyInstaller==3.6+6d4cce1f8e', 'console_scripts', 'pyinstaller')()
File "/opt/lib/python3.6/site-packages/PyInstaller-3.6+6d4cce1f8e-py3.6.egg/PyInstaller/__main__.py", line 114, in run
run_build(pyi_config, spec_file, **vars(args))
File "/opt/lib/python3.6/site-packages/PyInstaller-3.6+6d4cce1f8e-py3.6.egg/PyInstaller/__main__.py", line 65, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "/opt/lib/python3.6/site-packages/PyInstaller-3.6+6d4cce1f8e-py3.6.egg/PyInstaller/building/build_main.py", line 734, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "/opt/lib/python3.6/site-packages/PyInstaller-3.6+6d4cce1f8e-py3.6.egg/PyInstaller/building/build_main.py", line 681, in build
exec(code, spec_namespace)
File "/data1/python36/test.spec", line 33, in <module>
console=True )
File "/opt/lib/python3.6/site-packages/PyInstaller-3.6+6d4cce1f8e-py3.6.egg/PyInstaller/building/api.py", line 436, in __init__
upx_exclude=self.upx_exclude
File "/opt/lib/python3.6/site-packages/PyInstaller-3.6+6d4cce1f8e-py3.6.egg/PyInstaller/building/api.py", line 199, in __init__
self.__postinit__()
File "/opt/lib/python3.6/site-packages/PyInstaller-3.6+6d4cce1f8e-py3.6.egg/PyInstaller/building/datastruct.py", line 160, in __postinit__
self.assemble()
File "/opt/lib/python3.6/site-packages/PyInstaller-3.6+6d4cce1f8e-py3.6.egg/PyInstaller/building/api.py", line 276, in assemble
pylib_name = os.path.basename(bindepend.get_python_library_path())
File "/opt/lib/python3.6/site-packages/PyInstaller-3.6+6d4cce1f8e-py3.6.egg/PyInstaller/depend/bindepend.py", line 945, in get_python_library_path
raise IOError(msg)
OSError: Python library not found: libpython3.6.a, libpython3.6.so
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)