You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have the following base image for Python 3.11 and I would like to install six for some tests to run in a pipeline. I already set up these tests for Python 3.8, 3.6, and the alpine version and it works without fail.
But setting the test for Python 3.11 fails to say that it cannot/connect to the proxy.
Running the command pip install six gets the following error:
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPConnection object at 0x7fc9e34bef90>, 'Connection to zproxy.uk2.xxxx.net timed out. (connect timeout=15)')': http://infra-mavenproxy-stag.stag.svc.cluster.local.:8000/pypi.org/simple/six/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPConnection object at 0x7fc9e34bff50>, 'Connection to zproxy.uk2.xxxx.net timed out. (connect timeout=15)')': http://infra-mavenproxy-stag.stag.svc.cluster.local.:8000/pypi.org/simple/six/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPConnection object at 0x7fc9e34cce90>, 'Connection to zproxy.uk2.xxxx.net timed out. (connect timeout=15)')': http://infra-mavenproxy-stag.stag.svc.cluster.local.:8000/pypi.org/simple/six/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPConnection object at 0x7fc9e34cde50>, 'Connection to zproxy.uk2.xxxx.net timed out. (connect timeout=15)')': http://infra-mavenproxy-stag.stag.svc.cluster.local.:8000/pypi.org/simple/six/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPConnection object at 0x7fc9e34cee50>, 'Connection to zproxy.uk2.xxxxx.net timed out. (connect timeout=15)')': http://infra-mavenproxy-stag.stag.svc.cluster.local.:8000/pypi.org/simple/six/
ERROR: Could not find a version that satisfies the requirement six (from versions: none)
ERROR: No matching distribution found for six
I tried with Python 3.10 and it's the same issue. It seems from 3.8 and above it does not work and I cannot understand why since the proxy and certificates are all set up and work in the previous versions.
To install the six packages using pip. I already tried with python3 -m, and pip3, and also tried to use the --proxy argument, and the --trusted-host to overwrite it but still the same error.
Inside a corporate environment I would recommend looking in to using px-proxy to automatically connect to and authenticate against your corporate proxies. You would then use your localhost px-proxy as the proxy for pip/requests: https://github.com/genotrance/px#what-is-px
Description
We have the following base image for Python 3.11 and I would like to install six for some tests to run in a pipeline. I already set up these tests for Python 3.8, 3.6, and the alpine version and it works without fail.
But setting the test for Python 3.11 fails to say that it cannot/connect to the proxy.
Running
pip config list
:Running the command
pip install six
gets the following error:I tried with Python 3.10 and it's the same issue. It seems from 3.8 and above it does not work and I cannot understand why since the proxy and certificates are all set up and work in the previous versions.
Running
env | grep HTTP
:Expected behavior
To install the six packages using pip. I already tried with python3 -m, and pip3, and also tried to use the --proxy argument, and the --trusted-host to overwrite it but still the same error.
pip version
22.3.1
Python version
3.11
OS
4.19.145-flatcar
How to Reproduce
Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: