Hello,
Banging my head on this one. Trying to connect to a pypi proxy I’ve setup. Keep on getting
ERROR: Could not find a version that satisfies the requirement aws2 (from versions: none)
ERROR: No matching distribution found for aws2
Using:
- Nexus 3.18.0-01
- nginx proxy for HTTPS
I’ve used this with no issue for npm, docker, and maven so far. Works perfectly.
My pypi proxy is:
https://pypi.org
- using certs stored in Nexus
- pypi proxy has negative cache turned off
I setup a pip.conf:
[global]
trusted-host=myhost
index = https://myhost/repository/pypi-proxy-PUBLIC/pypi
index-url = https://myhost/repository/pypi-proxy-PUBLIC/simple
Response:
(test) ryanbannon@ryanbannon0:~/develop/test$ pip install aws2 -vvv
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Created temporary directory: /tmp/pip-ephem-wheel-cache-EgIsUZ
Created temporary directory: /tmp/pip-req-tracker-EDAYhQ
Created requirements tracker '/tmp/pip-req-tracker-EDAYhQ'
Created temporary directory: /tmp/pip-install-1BP_XF
Looking in indexes: https://myhost/repository/pypi-proxy-PUBLIC/simple
Collecting aws2
1 location(s) to search for versions of aws2:
* https://myhost/repository/pypi-proxy-PUBLIC/simple/aws2/
Getting page https://myhost/repository/pypi-proxy-PUBLIC/simple/aws2/
Found index url https://myhost/repository/pypi-proxy-PUBLIC/simple
Starting new HTTPS connection (1): myhost:443
https://myhost:443 "GET /repository/pypi-proxy-PUBLIC/simple/aws2/ HTTP/1.1" 500 2227
Incremented Retry for (url='/repository/pypi-proxy-PUBLIC/simple/aws2/'): Retry(total=4, connect=None, read=None, redirect=None, status=None)
Retry: /repository/pypi-proxy-PUBLIC/simple/aws2/
https://myhost:443 "GET /repository/pypi-proxy-PUBLIC/simple/aws2/ HTTP/1.1" 500 2227
Incremented Retry for (url='/repository/pypi-proxy-PUBLIC/simple/aws2/'): Retry(total=3, connect=None, read=None, redirect=None, status=None)
Retry: /repository/pypi-proxy-PUBLIC/simple/aws2/
https://myhost:443 "GET /repository/pypi-proxy-PUBLIC/simple/aws2/ HTTP/1.1" 500 2227
Incremented Retry for (url='/repository/pypi-proxy-PUBLIC/simple/aws2/'): Retry(total=2, connect=None, read=None, redirect=None, status=None)
Retry: /repository/pypi-proxy-PUBLIC/simple/aws2/
https://myhost:443 "GET /repository/pypi-proxy-PUBLIC/simple/aws2/ HTTP/1.1" 500 2227
Incremented Retry for (url='/repository/pypi-proxy-PUBLIC/simple/aws2/'): Retry(total=1, connect=None, read=None, redirect=None, status=None)
Retry: /repository/pypi-proxy-PUBLIC/simple/aws2/
https://myhost:443 "GET /repository/pypi-proxy-PUBLIC/simple/aws2/ HTTP/1.1" 500 2227
Incremented Retry for (url='/repository/pypi-proxy-PUBLIC/simple/aws2/'): Retry(total=0, connect=None, read=None, redirect=None, status=None)
Retry: /repository/pypi-proxy-PUBLIC/simple/aws2/
https://myhost:443 "GET /repository/pypi-proxy-PUBLIC/simple/aws2/ HTTP/1.1" 500 2227
Could not fetch URL https://myhost/repository/pypi-proxy-PUBLIC/simple/aws2/: HTTPSConnectionPool(host='myhost', port=443): Max retries exceeded with url: /repository/pypi-proxy-PUBLIC/simple/aws2/ (Caused by ResponseError('too many 500 error responses',)) - skipping
Given no hashes to check 0 links for project 'aws2': discarding no candidates
ERROR: Could not find a version that satisfies the requirement aws2 (from versions: none)
Cleaning up...
Removed build tracker '/tmp/pip-req-tracker-EDAYhQ'
ERROR: No matching distribution found for aws2
Exception information:
Traceback (most recent call last):
File "/home/ryanbannon/develop/virtualenv/test/local/lib/python2.7/site-packages/pip/_internal/cli/base_command.py", line 188, in main
status = self.run(options, args)
File "/home/ryanbannon/develop/virtualenv/test/local/lib/python2.7/site-packages/pip/_internal/commands/install.py", line 345, in run
resolver.resolve(requirement_set)
File "/home/ryanbannon/develop/virtualenv/test/local/lib/python2.7/site-packages/pip/_internal/legacy_resolve.py", line 196, in resolve
self._resolve_one(requirement_set, req)
File "/home/ryanbannon/develop/virtualenv/test/local/lib/python2.7/site-packages/pip/_internal/legacy_resolve.py", line 359, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File "/home/ryanbannon/develop/virtualenv/test/local/lib/python2.7/site-packages/pip/_internal/legacy_resolve.py", line 307, in _get_abstract_dist_for
self.require_hashes
File "/home/ryanbannon/develop/virtualenv/test/local/lib/python2.7/site-packages/pip/_internal/operations/prepare.py", line 134, in prepare_linked_requirement
req.populate_link(finder, upgrade_allowed, require_hashes)
File "/home/ryanbannon/develop/virtualenv/test/local/lib/python2.7/site-packages/pip/_internal/req/req_install.py", line 211, in populate_link
self.link = finder.find_requirement(self, upgrade)
File "/home/ryanbannon/develop/virtualenv/test/local/lib/python2.7/site-packages/pip/_internal/index.py", line 1228, in find_requirement
'No matching distribution found for %s' % req
DistributionNotFound: No matching distribution found for aws2
Any help is greatly appreciated. I’ve also tried playing with the cert setting in my pip.conf but not exactly sure what should be there.
Thanks,
Ryan