Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Had a problem while downloading and verifying Python packages #139

Open
FumbleBe opened this issue Mar 24, 2016 · 0 comments
Open

Had a problem while downloading and verifying Python packages #139

FumbleBe opened this issue Mar 24, 2016 · 0 comments

Comments

@FumbleBe
Copy link

On CentOS release 6.7 (Final) I did this:

yum install epel-release rpm -ivh https://rhel6.iuscommunity.org/ius-release.rpm yum --enablerepo=ius install git python27 python27-devel python27-pip python27-setuptools python27-virtualenv -y

then execute "letsencrypt-auto" and I got this:

`Installing Python packages...
Had a problem while downloading and verifying Python packages:

Oh no! Peep had a problem while trying to do stuff. Please write up a bug report
with the specifics so we can fix it:

https://github.com/erikrose/peep/issues/new

Here are some particulars you can copy and paste into the bug report:


peep: (3, 1, 1)
python: '2.7.11 (default, Dec 7 2015, 11:26:11) \n[GCC 4.4.7 20120313 (Red Hat 4.4.7-16)]'
pip: '1.4.1'
Command line: ['/tmp/tmp.k0Iu3t7YgO/peep.py', 'install', '-r', '/tmp/tmp.k0Iu3t7YgO/setuptools-requirements.txt']
Traceback (most recent call last):
File "/tmp/tmp.k0Iu3t7YgO/peep.py", line 967, in
exit(main())
File "/tmp/tmp.k0Iu3t7YgO/peep.py", line 939, in main
return commandsargv[1]
File "/tmp/tmp.k0Iu3t7YgO/peep.py", line 864, in peep_install
for path in req_paths))
File "/tmp/tmp.k0Iu3t7YgO/peep.py", line 864, in
for path in req_paths))
File "/tmp/tmp.k0Iu3t7YgO/peep.py", line 841, in downloaded_reqs_from_path
_parse_requirements(path, finder)]
File "/tmp/tmp.k0Iu3t7YgO/peep.py", line 422, in init
self.class = self._class()
File "/tmp/tmp.k0Iu3t7YgO/peep.py", line 701, in _class
if self._actual_hash() not in self._expected_hashes():
File "/tmp/tmp.k0Iu3t7YgO/peep.py", line 331, in memoizer
self._cache[func.name] = func(self)
File "/tmp/tmp.k0Iu3t7YgO/peep.py", line 657, in _actual_hash
return hash_of_file(join(self._temp_path, self._downloaded_filename()))
File "/tmp/tmp.k0Iu3t7YgO/peep.py", line 331, in memoizer
self._cache[func.name] = func(self)
File "/tmp/tmp.k0Iu3t7YgO/peep.py", line 610, in _downloaded_filename
link = self._link() or self._finder.find_requirement(self._req, upgrade=False)
File "/root/.local/share/letsencrypt/lib/python2.7/site-packages/pip/index.py", line 201, in find_requirement
page = self._get_page(main_index_url, req)
File "/root/.local/share/letsencrypt/lib/python2.7/site-packages/pip/index.py", line 554, in _get_page
return HTMLPage.get_page(link, req, cache=self.cache)
File "/root/.local/share/letsencrypt/lib/python2.7/site-packages/pip/index.py", line 671, in get_page
resp = urlopen(url)
File "/root/.local/share/letsencrypt/lib/python2.7/site-packages/pip/download.py", line 176, in call
response = self.get_opener(scheme=scheme).open(url)
File "/usr/lib64/python2.7/urllib2.py", line 431, in open
response = self._open(req, data)
File "/usr/lib64/python2.7/urllib2.py", line 449, in _open
'_open', req)
File "/usr/lib64/python2.7/urllib2.py", line 409, in _call_chain
result = func(*args)
File "/root/.local/share/letsencrypt/lib/python2.7/site-packages/pip/download.py", line 155, in https_open
return self.do_open(self.specialized_conn_class, req)
File "/usr/lib64/python2.7/urllib2.py", line 1194, in do_open
h.request(req.get_method(), req.get_selector(), req.data, headers)
File "/usr/lib64/python2.7/httplib.py", line 1057, in request
self._send_request(method, url, body, headers)
File "/usr/lib64/python2.7/httplib.py", line 1097, in _send_request
self.endheaders(body)
File "/usr/lib64/python2.7/httplib.py", line 1053, in endheaders
self._send_output(message_body)
File "/usr/lib64/python2.7/httplib.py", line 897, in _send_output
self.send(msg)
File "/usr/lib64/python2.7/httplib.py", line 859, in send
self.connect()
File "/root/.local/share/letsencrypt/lib/python2.7/site-packages/pip/download.py", line 139, in connect
match_hostname(self.sock.getpeercert(), self.host)
File "/usr/lib64/python2.7/ssl.py", line 271, in match_hostname
% (hostname, ', '.join(map(repr, dnsnames))))
CertificateError: hostname 'MYPROXYIP' doesn't match either of 'www.python.org', 'python.org', 'pypi.python.org', 'docs.python.org', 'testpypi.python.org', 'bugs.python.org', 'wiki.python.org', 'hg.python.org', 'mail.python.org', 'packaging.python.org', 'pythonhosted.org', 'www.pythonhosted.org', 'test.pythonhosted.org', 'us.pycon.org', 'id.python.org'`

This server is behind a proxy, and there is my proxy IP in the last line of the message. http_proxy and https_proxy are set.
I do not have this issue on a server that is exactly the same but not behind a proxy...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant