Hello all;
I originally posted this in the AIX community, but, thankfully was directed to the more appropriate community here. Our PeopleSoft folks need lxml for Python3. We have been unable to locate Python3 with lxml for AIX so we are trying to use pip to install it using a download from the Python Package Index. Our AIX servers do not have internet access so pip cannot download it directly. AIX is at 7100-05-08-2114. We believe that we have installed the necessary prereqs, but the pip installation fails with a message to make sure they are installed. Also, where are the logs that we are to check for more info?
# rpm -qa | grep python3
libxml2-python3-2.9.10-1.ppc
python3-tools-3.7.10-2.ppc
python3-3.7.10-2.ppc
python3-devel-3.7.10-2.ppc
# rpm -qa | grep libxml2
libxml2-python3-2.9.10-1.ppc
libxml2-2.9.10-1.ppc
libxml2-devel-2.9.10-1.ppc
# rpm -qa | grep libxslt
libxslt-1.1.34-1.ppc
libxslt-devel-1.1.34-1.ppc
# python -m pip install -v lxml-4.6.3.tar.gz --no-cache-dir
Non-user install because site-packages writeable
Created temporary directory: /tmp/pip-ephem-wheel-cache-1wk563bc
Created temporary directory: /tmp/pip-req-tracker-ocf41tog
Initialized build tracking at /tmp/pip-req-tracker-ocf41tog
Created build tracker: /tmp/pip-req-tracker-ocf41tog
Entered build tracker: /tmp/pip-req-tracker-ocf41tog
Created temporary directory: /tmp/pip-install-206dmolc
Processing ./lxml-4.6.3.tar.gz
Created temporary directory: /tmp/pip-req-build-mynenchm
Added file:///home/knighted/python3/lxml/lxml-4.6.3.tar.gz to build tracker '/tmp/pip-req-tracker-ocf41tog'
Running setup.py (path:/tmp/pip-req-build-mynenchm/setup.py) egg_info for package from file:///<file path>/lxml/lxml-4.6.3.tar.gz
Created temporary directory: /tmp/pip-pip-egg-info-kpbhtg7w
Running command python setup.py egg_info
Building lxml version 4.6.3.
Building without Cython.
Error: Please make sure the libxml2 and libxslt development packages are installed.ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Exception information:
Traceback (most recent call last):
File "/opt/freeware/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 188, in _main
status = self.run(options, args)
File "/opt/freeware/lib/python3.7/site-packages/pip/_internal/cli/req_command.py", line 185, in wrapper
return func(self, options, args)
File "/opt/freeware/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 333, in run
reqs, check_supported_wheels=not options.target_dir
File "/opt/freeware/lib/python3.7/site-packages/pip/_internal/resolution/legacy/resolver.py", line 179, in resolve
discovered_reqs.extend(self._resolve_one(requirement_set, req))
File "/opt/freeware/lib/python3.7/site-packages/pip/_internal/resolution/legacy/resolver.py", line 362, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File "/opt/freeware/lib/python3.7/site-packages/pip/_internal/resolution/legacy/resolver.py", line 314, in _get_abstract_dist_for
abstract_dist = self.preparer.prepare_linked_requirement(req)
File "/opt/freeware/lib/python3.7/site-packages/pip/_internal/operations/prepare.py", line 488, in prepare_linked_requirement
req, self.req_tracker, self.finder, self.build_isolation,
File "/opt/freeware/lib/python3.7/site-packages/pip/_internal/operations/prepare.py", line 91, in _get_prepared_distribution
abstract_dist.prepare_distribution_metadata(finder, build_isolation)
File "/opt/freeware/lib/python3.7/site-packages/pip/_internal/distributions/sdist.py", line 40, in prepare_distribution_metadata
self.req.prepare_metadata()
File "/opt/freeware/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 550, in prepare_metadata
self.metadata_directory = self._generate_metadata()
File "/opt/freeware/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 530, in _generate_metadata
details=self.name or "from {}".format(self.link)
File "/opt/freeware/lib/python3.7/site-packages/pip/_internal/operations/build/metadata_legacy.py", line 73, in generate_metadata
command_desc='python setup.py egg_info',
File "/opt/freeware/lib/python3.7/site-packages/pip/_internal/utils/subprocess.py", line 241, in call_subprocess
raise InstallationError(exc_msg)
pip._internal.exceptions.InstallationError: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
1 location(s) to search for versions of pip:
*
https://pypi.org/simple/pip/Fetching project page and analyzing links:
https://pypi.org/simple/pip/Getting page
https://pypi.org/simple/pip/Found index url
https://pypi.org/simpleStarting new HTTPS connection (1): pypi.org:443
Could not fetch URL
https://pypi.org/simple/pip/: connection error: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0xa0000000105ad88>: Failed to establish a new connection: [Errno 79] A remote host refused an attempted connect operation.')) - skipping
Given no hashes to check 0 links for project 'pip': discarding no candidates
Removed file:///home/knighted/python3/lxml/lxml-4.6.3.tar.gz from build tracker '/tmp/pip-req-tracker-ocf41tog'
Removed build tracker: '/tmp/pip-req-tracker-ocf41tog'
------------------------------
Ed Stuart
------------------------------