Hello Ranjit.
Many thanks for updating the thread. I will check for the new version.
Original Message:
Sent: Tue February 18, 2025 01:02 AM
From: Ranjit Ranjan
Subject: request for pyinstaller on AIX
For reference, This issue is fixed by pyinstaller community https://github.com/pyinstaller/pyinstaller/issues/9006
Thanks
Ranjit
------------------------------
Ranjit Ranjan
Original Message:
Sent: Wed November 06, 2024 01:14 AM
From: Ranjit Ranjan
Subject: request for pyinstaller on AIX
Hi, Joerg Kauke
This requires debugging so I have added into the backlog.
We will update this discussion once we find RC. But no time line can be provided as of now, unless it's high priority .
Thanks
Ranjit
------------------------------
Ranjit Ranjan
Original Message:
Sent: Tue November 05, 2024 02:55 AM
From: Joerg Kauke
Subject: request for pyinstaller on AIX
Hello Ranjit,
any news in here? Did you find a solution?
Kind regards
------------------------------
Joerg Kauke
Unix Administrator
COOP Switzerland
Original Message:
Sent: Fri September 20, 2024 09:07 AM
From: Ranjit Ranjan
Subject: request for pyinstaller on AIX
Hi Joerg
So as I understand , importlib-metadata related issue is fixed.
I am able to build/install this packages and hitting the same error which you reported, so it requires debugging .
We will update this discussion once we figure out the issue.
(0) root @ aixoss1-lp6: /ranjit/code
# ls -l *.py
-rw-r--r-- 1 root system 43 Sep 20 07:26 mytest.py
-rw-r--r-- 1 root system 973 Sep 20 07:43 test.py
(0) root @ aixoss1-lp6: /ranjit/code
# cat mytest.py
print("Hello World\n")
print("Hallo Welt")
(0) root @ aixoss1-lp6: /ranjit/code
# pyinstaller --clean --onefile mytest.py
1027 INFO: PyInstaller: 6.10.0, contrib hooks: 2024.8
1028 INFO: Python: 3.9.19
1105 INFO: Platform: AIX-3-000336AA7A00-powerpc-64bit-COFF
1106 INFO: Python environment: /opt/freeware
1118 INFO: wrote /ranjit/code/mytest.spec
1151 INFO: Removing temporary files and cleaning cache in /.cache/pyinstaller
1275 INFO: Module search paths (PYTHONPATH):
['/opt/freeware/lib64/python39.zip',
'/opt/freeware/lib64/python3.9',
'/opt/freeware/lib64/python3.9/lib-dynload',
'/opt/freeware/lib64/python3.9/site-packages',
'/opt/freeware/lib64/python3.9/site-packages/sentencepiece-0.2.0-py3.9-aix-7301-9988-64.egg',
'/opt/freeware/lib/python3.9/site-packages',
'/opt/freeware/lib/python3.9/site-packages/setuptools/_vendor',
'/ranjit/code']
1679 INFO: checking Analysis
1680 INFO: Building Analysis because Analysis-00.toc is non existent
1680 INFO: Running Analysis Analysis-00.toc
1680 INFO: Target bytecode optimization level: 0
1680 INFO: Initializing module dependency graph...
1682 INFO: Caching module graph hooks...
1707 INFO: Analyzing base_library.zip ...
4098 INFO: Processing standard module hook 'hook-encodings.py' from '/opt/freeware/lib/python3.9/site-packages/PyInstaller/hooks'
7379 INFO: Processing standard module hook 'hook-pickle.py' from '/opt/freeware/lib/python3.9/site-packages/PyInstaller/hooks'
8600 INFO: Processing standard module hook 'hook-heapq.py' from '/opt/freeware/lib/python3.9/site-packages/PyInstaller/hooks'
9233 INFO: Caching module dependency graph...
9541 INFO: Looking for Python shared library...
11907 INFO: Using Python shared library: /opt/freeware/lib64/libpython3.9.a
11908 INFO: Analyzing /ranjit/code/mytest.py
11912 INFO: Processing module hooks (post-graph stage)...
11932 INFO: Performing binary vs. data reclassification (2 entries)
11932 INFO: Looking for ctypes DLLs
11939 INFO: Analyzing run-time hooks ...
11950 INFO: Looking for dynamic libraries
12084 WARNING: ldd warnings for '/opt/freeware/lib64/libpython3.9.a':
ldd: /opt/freeware/lib64/libpython3.9.a: File is not an executable XCOFF file.
128314 WARNING: ldd warnings for '/opt/freeware/lib/libiconv.a':
ldd: /opt/freeware/lib/libiconv.a: File is an archive.
128458 WARNING: ldd warnings for '/opt/freeware/lib/pthread/libgcc_s.a':
ldd: /opt/freeware/lib/pthread/libgcc_s.a: File is an archive.
128607 WARNING: ldd warnings for '/usr/lib/libcrypto.a':
ldd: /usr/lib/libcrypto.a: File is an archive.
128751 WARNING: ldd warnings for '/usr/lib/libpthread.a':
ldd: /usr/lib/libpthread.a: File is an archive.
128889 WARNING: ldd warnings for '/opt/freeware/lib64/liblzma.a':
ldd: /opt/freeware/lib64/liblzma.a: File is an archive.
128924 INFO: Warnings written to /ranjit/code/build/mytest/warn-mytest.txt
128970 INFO: Graph cross-reference written to /ranjit/code/build/mytest/xref-mytest.html
129129 INFO: checking PYZ
129129 INFO: Building PYZ because PYZ-00.toc is non existent
129129 INFO: Building PYZ (ZlibArchive) /ranjit/code/build/mytest/PYZ-00.pyz
129549 INFO: Building PYZ (ZlibArchive) /ranjit/code/build/mytest/PYZ-00.pyz completed successfully.
132711 INFO: checking PKG
132712 INFO: Building PKG because PKG-00.toc is non existent
132712 INFO: Building PKG (CArchive) mytest.pkg
165889 INFO: Building PKG (CArchive) mytest.pkg completed successfully.
165916 INFO: Bootloader /opt/freeware/lib/python3.9/site-packages/PyInstaller/bootloader/AIX-64bit/run
165916 INFO: checking EXE
165917 INFO: Building EXE because EXE-00.toc is non existent
165917 INFO: Building EXE from EXE-00.toc
165917 INFO: Copying bootloader EXE to /ranjit/code/dist/mytest
165938 INFO: Appending PKG archive to EXE
166135 INFO: Building EXE from EXE-00.toc completed successfully.
(0) root @ aixoss1-lp6: /ranjit/code
# ./dist/mytest
[PYI-27066802:ERROR] Failed to parse run-time options!
Thanks
Ranjit
------------------------------
Ranjit Ranjan
Original Message:
Sent: Thu September 19, 2024 01:57 AM
From: Joerg Kauke
Subject: request for pyinstaller on AIX
Hello Ranjit,
this happens when there is no importlib-metadata modul is available.
------------------------------
Joerg Kauke
Unix Administrator
COOP Switzerland
Original Message:
Sent: Wed September 18, 2024 05:45 AM
From: Ranjit Ranjan
Subject: request for pyinstaller on AIX
Hi
Thanks for sharing the info's. I will give a try and let you know.
Wanted to know which script will throw the error 'python3-importlib-metadata' would need the python standard lib in >= 3.10.
Thanks
Ranjit
------------------------------
Ranjit Ranjan
Original Message:
Sent: Tue September 17, 2024 04:33 AM
From: Joerg Kauke
Subject: request for pyinstaller on AIX
Hello Ranjit,
thanks for getting into it.
We are using the toolbox version of Python-3.9 and compile the latest pyinstaller.
Please see attached text file for the whole process.
After pyinstaller is successfully compiled we tested to use it on a test script:
svrsinst3-0:/var/tmp/pyinstaller#python mytest.pyHello WorldHallo Weltsvrsinst3-0:/var/tmp/pyinstaller#pyinstaller --clean --onefile mytest.py498 INFO: PyInstaller: 6.10.0, contrib hooks: 2024.8498 INFO: Python: 3.9.18556 INFO: Platform: AIX-3-00C43B514B00-powerpc-64bit556 INFO: Python environment: /opt/freeware557 INFO: wrote /var/tmp/pyinstaller/mytest.spec586 INFO: Removing temporary files and cleaning cache in /root/.cache/pyinstaller588 INFO: Module search paths (PYTHONPATH):['/opt/freeware/lib64/python39.zip','/opt/freeware/lib64/python3.9','/opt/freeware/lib64/python3.9/lib-dynload','/opt/freeware/lib64/python3.9/site-packages','/opt/freeware/lib/python3.9/site-packages','/var/tmp/pyinstaller']1200 INFO: checking Analysis1200 INFO: Building Analysis because Analysis-00.toc is non existent1200 INFO: Running Analysis Analysis-00.toc1200 INFO: Target bytecode optimization level: 01201 INFO: Initializing module dependency graph...1202 INFO: Initializing module graph hook caches...1219 INFO: Analyzing base_library.zip ...2820 INFO: Processing standard module hook 'hook-encodings.py' from '/opt/freeware/lib/python3.9/site-packages/PyInstaller/hooks'3888 INFO: Processing standard module hook 'hook-heapq.py' from '/opt/freeware/lib/python3.9/site-packages/PyInstaller/hooks'4732 INFO: Processing standard module hook 'hook-pickle.py' from '/opt/freeware/lib/python3.9/site-packages/PyInstaller/hooks'6211 INFO: Caching module dependency graph...6357 INFO: Looking for Python shared library...7113 INFO: Using Python shared library: /opt/freeware/lib64/libpython3.9.a7114 INFO: Analyzing /var/tmp/pyinstaller/mytest.py7169 INFO: Processing module hooks (post-graph stage)...7183 INFO: Performing binary vs. data reclassification (2 entries)7183 INFO: Looking for ctypes DLLs7187 INFO: Analyzing run-time hooks ...7196 INFO: Looking for dynamic libraries7258 WARNING: ldd warnings for '/opt/freeware/lib64/libpython3.9.a':ldd: /opt/freeware/lib64/libpython3.9.a: File is not an executable XCOFF file.27942 WARNING: ldd warnings for '/opt/freeware/lib/libiconv.a':ldd: /opt/freeware/lib/libiconv.a: File is an archive.27998 WARNING: ldd warnings for '/opt/freeware/lib/pthread/libgcc_s.a':ldd: /opt/freeware/lib/pthread/libgcc_s.a: File is an archive.28055 WARNING: ldd warnings for '/usr/lib/libcrypto.a':ldd: /usr/lib/libcrypto.a: File is an archive.28111 WARNING: ldd warnings for '/usr/lib/libpthread.a':ldd: /usr/lib/libpthread.a: File is an archive.28167 WARNING: ldd warnings for '/opt/freeware/lib64/liblzma.a':ldd: /opt/freeware/lib64/liblzma.a: File is an archive.28231 WARNING: ldd warnings for '/usr/lib/libssl.a':ldd: /usr/lib/libssl.a: File is an archive.28240 INFO: Warnings written to /var/tmp/pyinstaller/build/mytest/warn-mytest.txt28261 INFO: Graph cross-reference written to /var/tmp/pyinstaller/build/mytest/xref-mytest.html28278 INFO: checking PYZ28278 INFO: Building PYZ because PYZ-00.toc is non existent28278 INFO: Building PYZ (ZlibArchive) /var/tmp/pyinstaller/build/mytest/PYZ-00.pyz28494 INFO: Building PYZ (ZlibArchive) /var/tmp/pyinstaller/build/mytest/PYZ-00.pyz completed successfully.29056 INFO: checking PKG29057 INFO: Building PKG because PKG-00.toc is non existent29057 INFO: Building PKG (CArchive) mytest.pkg61693 INFO: Building PKG (CArchive) mytest.pkg completed successfully.61696 INFO: Bootloader /opt/freeware/lib/python3.9/site-packages/PyInstaller/bootloader/AIX-64bit/run61696 INFO: checking EXE61696 INFO: Building EXE because EXE-00.toc is non existent61696 INFO: Building EXE from EXE-00.toc61696 INFO: Copying bootloader EXE to /var/tmp/pyinstaller/dist/mytest61701 INFO: Appending PKG archive to EXE61825 INFO: Building EXE from EXE-00.toc completed successfully.svrsinst3-0:/var/tmp/pyinstaller#/var/tmp/pyinstaller/dist/mytest[PYI-8061364:ERROR] Failed to parse run-time options!
------------------------------
Joerg Kauke
Unix Administrator
COOP Switzerland
Original Message:
Sent: Mon September 16, 2024 07:03 AM
From: Ranjit Ranjan
Subject: request for pyinstaller on AIX
Hi
What's the version of python you used?
And which version of pyinstaller you are building.
Share the build steps also which you used for compiling.
Thanks
Ranjit
------------------------------
Ranjit Ranjan
Original Message:
Sent: Mon September 16, 2024 03:55 AM
From: Joerg Kauke
Subject: request for pyinstaller on AIX
Dear team,
we would need the "pyinstaller" on AIX. We compiled it our self, but got errors when trying pyinstaller on a script.
Error says, that 'python3-importlib-metadata' would need the python standard lib in >= 3.10.
Any idea, or do you plan to port pyinstaller to AIX?
Many thanks in advance for your support.
kind regards
------------------------------
Joerg Kauke
Unix Administrator
COOP Switzerland
------------------------------