IBM / ibmi-oss-issues

Important resources for anyone interested in open source on IBM i
Creative Commons Zero v1.0 Universal
13 stars 0 forks source link

pip install failing - issues with setuptools #47

Closed robinsg closed 11 months ago

robinsg commented 11 months ago

V7R3 python39.ppc64 3.9.11.-1 python39.paramiko 2.7.2-1 python39-pip 21.12-1 python39.setuptools 57.0.0-1 python39.wheel 0.36.2-1

I have created a venv and activated it.

# pip install --upgrade --proxy http://myproxy,local:8080 pip setuptools wheel
# pip list
pip 23.3.1
setuptools 68.2.2
wheel 0.41.3

# pip install --proxy http://myproxy,local:8080 netmiko==4.2.0 It collects the necessary dependencies: ntc-templates 4.0.1 paramiko 3.3.1 pyserial 3.5 PyYAML5.3

Running command pip subprocess to build dependencies
`WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7000000155fac0>: Failed to establish a new connection: [Errno 8] Hostname and service not provided or found')': /simple/setuptools/`
The above is repeated 4 more times.
Error: Could not find a version that satisfies the requirement sdetuptools (from versions: none)
Error: No matching distribution found for setuptools
error: subprocess-exited-with-error

pip subprocess to install build dependencies did not run succesfully
exit code: 1

pip is clearly getting out to pypi.org via the proxy as it is able to download and install some of the dependencies.

setuptools is installed in my venv.

Any suggestions on how to get around this issues?

robinsg commented 11 months ago

I have found the issue and sorted this.

Although I'm specifying the proxy server details on the pip command it appears that it isn't being used for all pip and build operations.

I created a pip.conf file in ~/.pip/ and specified the proxy server details in the [global] section.

I then ran my pip command again without the --proxy directive and this ran without the issue on setup tools.

kadler commented 11 months ago

Glad you were able to figure that out. Not something that is very obvious!

I've created an issue to document this for others.