Original Message:
Sent: 3/24/2023 8:33:00 AM
From: Himani Gupta
Subject: RE: How to install pyinstaller using pip on AIX system?
Hello Team,
Thank you for quick response.
As mentioned, I tried to install zlib-devel rpm from AIX toolbox, link is given below -
AIX Toolbox for Open Source Software : Downloads alpha (ibm.com)
when I clicked on RPM, file is opened on new tab, no rpm package is downloaded. I tried many times but unable to download rpm package.
Then I clicked on SRPM package, SRPM is downloaded then I tried to extract this package on AIX machine with the help of this command -
rpm2cpio zlib-1.2.13-1.src.rpm | cpio -idmv
I am getting this error -
cpio: 0511-027 The file name length does not match the expected value.
Again , I tried download package and check again but showing same message size is 1473 kb, expected 150kb.
After that , I tried to install zlib-devel with the help of yum .
ex- yum install zlib-devel
Package is installed , version is visible-
Again, when I ran
pip3 install pyinstaller
Again , Facing same issue which we were facing earlier -
Checking for library z : no
The zlib development package is either missing or the shared library cannot be linked against. For security (and marginally better filesize), you should install the zlib-dev or zlib-devel packages with your system package manager, and try again. If you cannot do this (for example, distributions such as OpenWRT use sstrip on libraries, making linking impossible), then either use the --static-zlib option or set the PYI_STATIC_ZLIB=1 environment variable. If you are installing directly with pip, then use the environment variable.
(complete log in /tmp/pip-install-rgk9uanu/pyinstaller_541707deebda437184d0cbf3a4ae5282/bootloader/build/config.log)
ERROR: Failed compiling the bootloader. Please compile manually and rerun setup.py
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyinstaller
Failed to build pyinstaller
ERROR: Could not build wheels for pyinstaller, which is required to install pyproject.toml-based projects
After reading error , I set the PYI_STATIC_ZLIB=1 environment variable , so zlib error is resolved but issues is still not solved .
Then again , I run pip3 install pyinstaller
Now ,
ERROR: Failed compiling the bootloader. Please compile manually and rerun setup.py
[end of output]
we downloaded the pyinstaller package , also run this script manually setup.py
Then , Run pip3 install .
It suggested , rerun setup.py
Therefore, we are stuck in loop .Please suggest what I missed and need to do further.
Thankyou
------------------------------
Himani Gupta
------------------------------
Original Message:
Sent: Thu March 23, 2023 02:42 AM
From: Ayappan P
Subject: How to install pyinstaller using pip on AIX system?
As Sanket clearly mentioned , you have to install zlib-devel rpm.
------------------------------
Ayappan P
Original Message:
Sent: Thu March 23, 2023 01:05 AM
From: Himani Gupta
Subject: How to install pyinstaller using pip on AIX system?
Thank you for reply.
we already installed the zlib package on Aix system before posting this error on group.
But we were still facing these issues -
0) root @ curve5: /
# lslpp -L | grep -i zlib
zlib 1.2.13-1 C R The zlib compression and
(0) root @ curve5: /
# pip3 install pyinstaller
Collecting pyinstaller
Using cached pyinstaller-5.9.0.tar.gz (4.1 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting altgraph
Using cached altgraph-0.17.3-py2.py3-none-any.whl (21 kB)
Collecting pyinstaller-hooks-contrib>=2021.4
Using cached pyinstaller_hooks_contrib-2023.1-py2.py3-none-any.whl (256 kB)
Requirement already satisfied: setuptools>=42.0.0 in /usr/opt/python3/lib/python3.9/site-packages (from pyinstaller) (67.6.0)
Building wheels for collected packages: pyinstaller
Building wheel for pyinstaller (pyproject.toml) ... error
error: subprocess-exited-with-error
Building wheel for pyinstaller (pyproject.toml) did not run successfully.
exit code: 1
[19 lines of output]
running bdist_wheel
running build
running build_bootloader
No precompiled bootloader found or compile forced. Trying to compile the bootloader for you ...
Setting top to : /tmp/pip-install-xurdvbn7/pyinstaller_b6ed48a873f04c57829a79b13bda1d48/bootloader
Setting out to : /tmp/pip-install-xurdvbn7/pyinstaller_b6ed48a873f04c57829a79b13bda1d48/bootloader/build
Python Version : 3.9.14 (main, Nov 29 2022, 06:17:15) [IBM XL C/C++ for AIX 13.1.3.7]
Checking for 'xlc' (C compiler) : /opt/IBM/xlC/16.1.0/bin/xlc_r
Checking size of pointer : 4
Platform : AIX-32bit detected based on compiler
Checking for compiler flags -q32 : yes
Checking for linker flags -q32 : yes
Checking for library dl : yes
Checking for library pthread : yes
Checking for library m : yes
Checking for library z : no
The zlib development package is either missing or the shared library cannot be linked against. For security (and marginally better filesize), you should install the zlib-dev or zlib-devel packages with your system package manager, and try again. If you cannot do this (for example, distributions such as OpenWRT use sstrip on libraries, making linking impossible), then either use the --static-zlib option or set the PYI_STATIC_ZLIB=1 environment variable. If you are installing directly with pip, then use the environment variable.
(complete log in /tmp/pip-install-xurdvbn7/pyinstaller_b6ed48a873f04c57829a79b13bda1d48/bootloader/build/config.log)
ERROR: Failed compiling the bootloader. Please compile manually and rerun setup.py
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyinstaller
Failed to build pyinstaller
ERROR: Could not build wheels for pyinstaller, which is required to install pyproject.toml-based projects
Thankyou
------------------------------
Himani Gupta
Original Message:
Sent: Wed March 22, 2023 03:28 AM
From: SANKET RATHI
Subject: How to install pyinstaller using pip on AIX system?
The error clearly says "The zlib development package is either missing or the shared library cannot be linked against. For security (and marginally better filesize), you should install the zlib-dev or zlib-devel packages with your system package manager,"
Please install zlib-devel package from AIX toolbox.
If you look at errors carefuly it gives the idea what next to be done.
Original Message:
Sent: 3/21/2023 4:19:00 AM
From: Himani Gupta
Subject: RE: How to install pyinstaller using pip on AIX system?
Now, I installed openssl new version on my system after that i run the command -
facing new issue -
# pip3 install pyinstaller
Collecting pyinstaller
Downloading pyinstaller-5.9.0.tar.gz (4.1 MB)
---------------------------------------- 4.1/4.1 MB 5.0 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: setuptools>=42.0.0 in /usr/opt/python3/lib/python3.9/site-packages (from pyinstaller) (58.1.0)
Collecting pyinstaller-hooks-contrib>=2021.4
Downloading pyinstaller_hooks_contrib-2023.1-py2.py3-none-any.whl (256 kB)
---------------------------------------- 256.8/256.8 KB 9.7 MB/s eta 0:00:00
Collecting altgraph
Downloading altgraph-0.17.3-py2.py3-none-any.whl (21 kB)
Building wheels for collected packages: pyinstaller
Building wheel for pyinstaller (pyproject.toml) ... error
error: subprocess-exited-with-error
Building wheel for pyinstaller (pyproject.toml) did not run successfully.
exit code: 1
[19 lines of output]
running bdist_wheel
running build
running build_bootloader
No precompiled bootloader found or compile forced. Trying to compile the bootloader for you ...
Setting top to : /tmp/pip-install-wb8q981w/pyinstaller_ba9511cddc4e4b938c97578559cdf2ba/bootloader
Setting out to : /tmp/pip-install-wb8q981w/pyinstaller_ba9511cddc4e4b938c97578559cdf2ba/bootloader/build
Python Version : 3.9.14 (main, Nov 29 2022, 06:17:15) [IBM XL C/C++ for AIX 13.1.3.7]
Checking for 'xlc' (C compiler) : /opt/IBM/xlC/16.1.0/bin/xlc_r
Checking size of pointer : 4
Platform : AIX-32bit detected based on compiler
Checking for compiler flags -q32 : yes
Checking for linker flags -q32 : yes
Checking for library dl : yes
Checking for library pthread : yes
Checking for library m : yes
Checking for library z : no
The zlib development package is either missing or the shared library cannot be linked against. For security (and marginally better filesize), you should install the zlib-dev or zlib-devel packages with your system package manager, and try again. If you cannot do this (for example, distributions such as OpenWRT use sstrip on libraries, making linking impossible), then either use the --static-zlib option or set the PYI_STATIC_ZLIB=1 environment variable. If you are installing directly with pip, then use the environment variable.
(complete log in /tmp/pip-install-wb8q981w/pyinstaller_ba9511cddc4e4b938c97578559cdf2ba/bootloader/build/config.log)
ERROR: Failed compiling the bootloader. Please compile manually and rerun setup.py
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyinstaller
Failed to build pyinstaller
ERROR: Could not build wheels for pyinstaller, which is required to install pyproject.toml-based projects
------------------------------
Himani Gupta
Original Message:
Sent: Mon March 20, 2023 09:41 AM
From: Ayappan P
Subject: How to install pyinstaller using pip on AIX system?
You can use smit or installp command.
https://aix4admins.blogspot.com/2011/06/commands-oslevel-shows-actual-bos-level.html?m=0
------------------------------
Ayappan P
Original Message:
Sent: Mon March 20, 2023 09:24 AM
From: Himani Gupta
Subject: How to install pyinstaller using pip on AIX system?
Hello Team,
As mentioned, I downloaded the package from above link, But I am new to this AIX platform, could you please tell me the steps - how can we install openssl package and run the command for solving this problem.
Thanks & Regards,
Himani Gupta
------------------------------
Himani Gupta
Original Message:
Sent: Mon March 20, 2023 07:08 AM
From: Himani Gupta
Subject: How to install pyinstaller using pip on AIX system?
Hello Team,
We have tried running the following two commands
- yum update
- yum update python3
Last metadata expiration check: 1 day, 15:12:32 ago on Wed Mar 15 11:23:06 CDT 2023.
Error:
Problem: cannot install the best update candidate for package python3-3.7.9-0.ppc
- nothing provides libcrypto.a(libcrypto.so.1.1) needed by python3-3.7.15-2.ppc
- nothing provides libssl.a(libssl.so.1.1) needed by python3-3.7.15-2.ppc
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packagesboth are not successful. Can you please help?
Thanks & Regards,
Himani Gupta
------------------------------
Himani Gupta
Original Message:
Sent: Fri March 17, 2023 05:56 AM
From: Himani Gupta
Subject: How to install pyinstaller using pip on AIX system?
Thanks for quick reply.
I tried to update python3 rpm on AIX system , but facing this issue like-
# yum update
Last metadata expiration check: 1 day, 15:11:06 ago on Wed Mar 15 11:23:06 CDT 2023.
Error:
Problem 1: cannot install the best update candidate for package curl-7.52.1-1.ppc
- nothing provides libcrypto.a(libcrypto.so.1.1) needed by curl-7.86.0-1.ppc
- nothing provides libssl.a(libssl.so.1.1) needed by curl-7.86.0-1.ppc
- nothing provides libgcc >= 10.3.0 needed by curl-7.86.0-1.ppc
Problem 2: cannot install the best update candidate for package expat-2.2.4-1.ppc
- nothing provides libgcc >= 10.3.0 needed by expat-2.5.0-1.ppc
Problem 3: cannot install the best update candidate for package librepo-1.11.0-64_1.ppc
- nothing provides libcrypto.a(libcrypto.so.1.1) needed by librepo-1.11.0-101.ppc
Problem 4: cannot install the best update candidate for package python-2.7.13-1.ppc
- nothing provides libcrypto.a(libcrypto.so.1.1) needed by python-2.7.18-4.ppc
- nothing provides libssl.a(libssl.so.1.1) needed by python-2.7.18-4.ppc
Problem 5: cannot install the best update candidate for package python-pycurl-7.19.3-1.ppc
- nothing provides libcrypto.a(libcrypto.so.1.1) needed by python-pycurl-7.43.0.5-1.ppc
- nothing provides libssl.a(libssl.so.1.1) needed by python-pycurl-7.43.0.5-1.ppc
Problem 6: cannot install the best update candidate for package python3-3.7.9-0.ppc
- nothing provides libcrypto.a(libcrypto.so.1.1) needed by python3-3.7.15-2.ppc
- nothing provides libssl.a(libssl.so.1.1) needed by python3-3.7.15-2.ppc
Problem 7: cannot install the best update candidate for package rsync-3.1.2-1.ppc
- nothing provides libcrypto.a(libcrypto.so.1.1) needed by rsync-3.2.7-1.ppc
Problem 8: cannot install the best update candidate for package zchunk-libs-1.1.4-64_2.ppc
- nothing provides libcrypto.a(libcrypto.so.1.1) needed by zchunk-libs-1.1.4-102.ppc
Problem 9: package gettext-0.21-2.ppc requires libstdc++ >= 8.3.0, but none of the providers can be installed
- cannot install the best update candidate for package gettext-0.19.7-1.ppc
- nothing provides AIX-rpm <= 7.3.0.0 needed by libstdc++-8.3.0-3_beta.ppc
Problem 10: package tk-8.6.11-1.ppc requires libgcc >= 8.3.0, but none of the providers can be installed
- cannot install the best update candidate for package tk-8.4.7-3.ppc
- nothing provides AIX-rpm <= 7.3.0.0 needed by libgcc-8.3.0-3_beta.ppc
Problem 11: package tcl-8.6.11-1.ppc requires libgcc >= 8.3.0, but none of the providers can be installed
- cannot install the best update candidate for package tcl-8.4.7-3.ppc
- nothing provides AIX-rpm <= 7.3.0.0 needed by libgcc-8.3.0-3_beta.ppc
Problem 12: package sqlite-3.39.3-1.ppc requires libgcc >= 8.3.0, but none of the providers can be installed
- cannot install the best update candidate for package sqlite-3.15.2-1.ppc
- nothing provides AIX-rpm <= 7.3.0.0 needed by libgcc-8.3.0-3_beta.ppc
Problem 13: package p11-kit-0.23.22-1.ppc requires libgcc >= 8.3.0, but none of the providers can be installed
- cannot install the best update candidate for package p11-kit-0.23.16-0.ppc
- nothing provides AIX-rpm <= 7.3.0.0 needed by libgcc-8.3.0-3_beta.ppc
Problem 14: package libzstd-1.5.2-1.ppc requires libgcc >= 8.3.0, but none of the providers can be installed
- cannot install the best update candidate for package libzstd-1.4.4-64_2.ppc
- nothing provides AIX-rpm <= 7.3.0.0 needed by libgcc-8.3.0-3_beta.ppc
Problem 15: package libsmartcols-2.34-100.ppc requires libgcc >= 8.3.0, but none of the providers can be installed
- cannot install the best update candidate for package libsmartcols-2.34-64_1.ppc
- nothing provides AIX-rpm <= 7.3.0.0 needed by libgcc-8.3.0-3_beta.ppc
Problem 16: package libmodulemd-1.5.2-100.ppc requires libgcc >= 8.3.0, but none of the providers can be installed
- cannot install the best update candidate for package libmodulemd-1.5.2-64_2.ppc
- nothing provides AIX-rpm <= 7.3.0.0 needed by libgcc-8.3.0-3_beta.ppc
Problem 17: package libcomps-0.1.11-101.ppc requires libgcc >= 8.3.0, but none of the providers can be installed
- cannot install the best update candidate for package libcomps-0.1.11-64_1.ppc
- nothing provides AIX-rpm <= 7.3.0.0 needed by libgcc-8.3.0-3_beta.ppc
Problem 18: package glib2-2.56.1-3.ppc requires libgcc >= 8.3.0, but none of the providers can be installed
- cannot install the best update candidate for package glib2-2.14.6-2.ppc
- nothing provides AIX-rpm <= 7.3.0.0 needed by libgcc-8.3.0-3_beta.ppc
Problem 19: package gdbm-1.23-1.ppc requires libgcc >= 8.3.0, but none of the providers can be installed
- cannot install the best update candidate for package gdbm-1.12-1.ppc
- nothing provides AIX-rpm <= 7.3.0.0 needed by libgcc-8.3.0-3_beta.ppc
Problem 20: package expect-5.45.4-2.ppc requires libgcc >= 8.3.0, but none of the providers can be installed
- cannot install the best update candidate for package expect-5.42.1-3.ppc
- nothing provides AIX-rpm <= 7.3.0.0 needed by libgcc-8.3.0-3_beta.ppc
Problem 21: package db-1:5.3.28-1.ppc requires libgcc >= 8.3.0-1, but none of the providers can be installed
- cannot install the best update candidate for package db-4.8.24-3.ppc
- nothing provides AIX-rpm <= 7.3.0.0 needed by libgcc-8.3.0-3_beta.ppc
Problem 22: package python-tools-2.7.18-4.ppc requires python = 2.7.18-4, but none of the providers can be installed
- cannot install the best update candidate for package python-tools-2.7.13-1.ppc
- nothing provides libcrypto.a(libcrypto.so.1.1) needed by python-2.7.18-4.ppc
- nothing provides libssl.a(libssl.so.1.1) needed by python-2.7.18-4.ppc
Problem 23: package python-docs-2.7.18-4.ppc requires python = 2.7.18-4, but none of the providers can be installed
- cannot install the best update candidate for package python-docs-2.7.13-1.ppc
- nothing provides libcrypto.a(libcrypto.so.1.1) needed by python-2.7.18-4.ppc
- nothing provides libssl.a(libssl.so.1.1) needed by python-2.7.18-4.ppc
Problem 24: package python-devel-2.7.18-4.ppc requires python = 2.7.18-4, but none of the providers can be installed
- cannot install the best update candidate for package python-devel-2.7.13-1.ppc
- nothing provides libcrypto.a(libcrypto.so.1.1) needed by python-2.7.18-4.ppc
- nothing provides libssl.a(libssl.so.1.1) needed by python-2.7.18-4.ppc
Problem 25: package python3-librepo-1.11.0-101.ppc requires librepo = 1.11.0-101, but none of the providers can be installed
- cannot install the best update candidate for package python3-librepo-1.11.0-64_1.ppc
- nothing provides libcrypto.a(libcrypto.so.1.1) needed by librepo-1.11.0-101.ppc
Problem 26: package p11-kit-tools-0.23.22-1.ppc requires libtasn1 >= 4.16.0, but none of the providers can be installed
- package libtasn1-4.16.0-1.ppc requires libgcc >= 8.3.0, but none of the providers can be installed
- cannot install the best update candidate for package p11-kit-tools-0.23.16-0.ppc
- nothing provides AIX-rpm <= 7.3.0.0 needed by libgcc-8.3.0-3_beta.ppc
Problem 27: package pysqlite-2.8.3-2.ppc requires python >= 2.7.16, but none of the providers can be installed
- package python-2.7.16-1.ppc requires libstdc++ >= 6.3.0, but none of the providers can be installed
- package python-2.7.17-1.ppc requires libstdc++ >= 8.3.0, but none of the providers can be installed
- package python-2.7.18-1.ppc requires libstdc++ >= 8.3.0, but none of the providers can be installed
- package python-2.7.18-2.ppc requires libstdc++ >= 8.3.0, but none of the providers can be installed
- package python-2.7.18-3.ppc requires libstdc++ >= 8.3.0, but none of the providers can be installed
- cannot install the best update candidate for package pysqlite-1.1.7-2.ppc
- nothing provides libcrypto.a(libcrypto.so.1.1) needed by python-2.7.18-4.ppc
- nothing provides libssl.a(libssl.so.1.1) needed by python-2.7.18-4.ppc
- nothing provides AIX-rpm <= 7.3.0.0 needed by libstdc++-8.3.0-3_beta.ppc
Problem 28: package python3-gpg-1.13.1-100.ppc obsoletes python3-gpgme provided by python3-gpgme-1.13.1-64_1.ppc
- package python3-dnf-4.2.17-64_4.noarch requires python3-gpgme >= 1.13.1, but none of the providers can be installed
- cannot install the best update candidate for package python3-gpgme-1.13.1-64_1.ppc
- problem with installed package python3-dnf-4.2.17-64_4.noarch
Problem 29: package python3-libcomps-0.1.11-101.ppc requires libcomps = 0.1.11-101, but none of the providers can be installed
- package libcomps-0.1.11-101.ppc requires libgcc >= 8.3.0, but none of the providers can be installed
- cannot install the best update candidate for package python3-libcomps-0.1.11-64_1.ppc
- nothing provides AIX-rpm <= 7.3.0.0 needed by libgcc-8.3.0-3_beta.ppc
Problem 30: package zip-3.0-4.ppc requires bzip2 >= 1.0.8-2, but none of the providers can be installed
- package bzip2-1.0.8-2.ppc requires libgcc >= 6.3.0-2, but none of the providers can be installed
- cannot install the best update candidate for package zip-3.0-2.ppc
- nothing provides AIX-rpm <= 7.3.0.0 needed by libgcc-8.3.0-3_beta.ppc
Problem 31: package p11-kit-tools-0.23.22-1.ppc requires p11-kit = 0.23.22, but none of the providers can be installed
- package ca-certificates-2021.2.52-3.ppc requires p11-kit-tools >= 0.23.22, but none of the providers can be installed
- package p11-kit-0.23.22-1.ppc requires libgcc >= 8.3.0, but none of the providers can be installed
- cannot install the best update candidate for package ca-certificates-2020.06.01-0.ppc
- nothing provides AIX-rpm <= 7.3.0.0 needed by libgcc-8.3.0-3_beta.ppc
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
(1) root @ curve5: /
# yum update python3
Last metadata expiration check: 1 day, 15:12:32 ago on Wed Mar 15 11:23:06 CDT 2023.
Error:
Problem: cannot install the best update candidate for package python3-3.7.9-0.ppc
- nothing provides libcrypto.a(libcrypto.so.1.1) needed by python3-3.7.15-2.ppc
- nothing provides libssl.a(libssl.so.1.1) needed by python3-3.7.15-2.ppc
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
please suggest.
------------------------------
Himani Gupta
Original Message:
Sent: Fri March 17, 2023 05:38 AM
From: Ayappan P
Subject: How to install pyinstaller using pip on AIX system?
Update python3 rpm and check.
------------------------------
Ayappan P
Original Message:
Sent: Fri March 17, 2023 05:17 AM
From: Himani Gupta
Subject: How to install pyinstaller using pip on AIX system?
Ok , I checked -
rpm -qi python3
Name : python3
Version : 3.7.9
Release : 0
Architecture: ppc
Install Date: Mon Jun 13 04:38:42 CDT 2022
Group : Development/Languages
Size : 130200294
License : Modified CNRI Open Source License
Signature : (none)
Source RPM : python3-3.7.9-0.src.rpm
Build Date : Tue Mar 30 00:43:38 CDT 2021
Build Host : fvt-p7a2-lp5.pok.stglabs.ibm.com
Relocations : /opt/freeware
Packager : IBM AIX Toolbox <https://ibm.biz/AIXToolbox>
URL : http://www.python.org/
Bug URL : https://ibm.biz/aixoss_forum
Summary : An interpreted, interactive, object-oriented programming language.
Description :
Python is an interpreted, interactive, object-oriented programming
language often compared to Tcl, Perl, Scheme or Java. Python includes
modules, classes, exceptions, very high level dynamic data types and
dynamic typing. Python supports interfaces to many system calls and
libraries, as well as to various windowing systems (X11, Motif, Tk,
Mac and MFC).
Programmers can write new built-in modules for Python in C or C++.
Python can be used as an extension language for applications that need
a programmable interface. This package contains most of the standard
Python modules, as well as modules for interfacing to the Tix widget
set for Tk and RPM.
Note that documentation for Python is provided in the python-docs
package.
This version has been compiled with GCC.
I also checked openssl version by using command-
openssl version
OpenSSL 1.0.2u 20 Dec 2019
Also, checked AIX version -
oslevel -s | awk -F- '{printf "AIX %.1f - Technology Level %d - Service Pack %d\n",$1/1000,$2,$3}'
AIX 7.3 - Technology Level 0 - Service Pack 2
openssl package is also installed in my system -
find . -name openssl
./opt/freeware/etc/ssl/certs/extracted/openssl
find: 0652-023 Cannot open file ./proc/6291916.
./usr/bin/openssl
./usr/include/openssl
./usr/openssl
but still facing issue .
------------------------------
Himani Gupta
Original Message:
Sent: Fri March 17, 2023 05:08 AM
From: Ayappan P
Subject: How to install pyinstaller using pip on AIX system?
Please check you python3 version. Says ssl module not available which should not be the case.
rpm -qi python3
------------------------------
Ayappan P
Original Message:
Sent: Fri March 17, 2023 04:27 AM
From: Himani Gupta
Subject: How to install pyinstaller using pip on AIX system?
I also tried this command - python3 -m pip install ..." and pip3 install and python3.9 is installed on AIX VM. But facing new issues like -
python3 -m pip install python-dateutil
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/python-dateutil/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/python-dateutil/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/python-dateutil/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/python-dateutil/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/python-dateutil/
Could not fetch URL https://pypi.org/simple/python-dateutil/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/python-dateutil/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
ERROR: Could not find a version that satisfies the requirement python-dateutil (from versions: none)
ERROR: No matching distribution found for python-dateutil
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
Therefore, I tried old command - pip install. But in AIX Vm, pip3 and python3 both are not working.
Please suggest.
------------------------------
Himani Gupta
Original Message:
Sent: Fri March 17, 2023 03:55 AM
From: Ayappan P
Subject: How to install pyinstaller using pip on AIX system?
Looks like libffi rpm is not installed in the machine.
Btw, python2 is out of support from Jan 1, 2020. Why still using it ? You should use python3. "python3 -m pip install ..."
------------------------------
Ayappan P
Original Message:
Sent: Fri March 17, 2023 02:20 AM
From: Himani Gupta
Subject: How to install pyinstaller using pip on AIX system?
facing issue while installing any packages by using PIP
example -
# pip install pyinsatller
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
load_entry_point('pip==10.0.1', 'console_scripts', 'pip')()
File "/opt/freeware/lib/python2.7/site-packages/pkg_resources.py", line 378, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/opt/freeware/lib/python2.7/site-packages/pkg_resources.py", line 2566, in load_entry_point
return ep.load()
File "/opt/freeware/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/opt/freeware/lib/python2.7/site-packages/pip/_internal/__init__.py", line 42, in <module>
from pip._internal import cmdoptions
File "/opt/freeware/lib/python2.7/site-packages/pip/_internal/cmdoptions.py", line 16, in <module>
from pip._internal.index import (
File "/opt/freeware/lib/python2.7/site-packages/pip/_internal/index.py", line 25, in <module>
from pip._internal.download import HAS_TLS, is_url, path_to_url, url_to_path
File "/opt/freeware/lib/python2.7/site-packages/pip/_internal/download.py", line 39, in <module>
from pip._internal.utils.glibc import libc_ver
File "/opt/freeware/lib/python2.7/site-packages/pip/_internal/utils/glibc.py", line 3, in <module>
import ctypes
File "/opt/freeware/lib/python2.7/ctypes/__init__.py", line 7, in <module>
from _ctypes import Union, Structure, Array
ImportError: 0509-022 Cannot load module /opt/freeware/lib/python2.7/lib-dynload/_ctypes.so.
0509-150 Dependent module libffi.a(libffi.so.6) could not be loaded.
0509-022 Cannot load module libffi.a(libffi.so.6).
0509-026 System error: A file or directory in the path name does not exist.
0509-022 Cannot load module /opt/freeware/lib/python2.7/lib-dynload/_ctypes.so.
0509-150 Dependent module /opt/freeware/lib/python2.7/lib-dynload/_ctypes.so could not be loaded.
Please suggest.
------------------------------
Himani Gupta
------------------------------