[Python-modules-team] Bug#797104: python-pip: connection error (X509 PEM?)
Ismael
ismaelgfk at gmail.com
Thu Aug 27 19:50:15 UTC 2015
Package: python-pip
Version: 1.5.6-7
Severity: normal
Dear Maintainer,
I tried to install a package using pip and it doesn't work.
I also tried to install the package using pip3, and that shows another error.
It seems both errors are related to certificates, but I don't know how to fix
this.
ismael at mobizz:~$ pip --version
pip 1.5.6 from /usr/lib/python2.7/dist-packages (python 2.7)
ismael at mobizz:~$ pip install virtualenvwrapper
Downloading/unpacking virtualenvwrapper
Cleaning up...
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 290, in
run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle,
bundle=self.bundle)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1178, in
prepare_files
url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 194, in
find_requirement
page = self._get_page(main_index_url, req)
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 568, in _get_page
session=self.session,
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 670, in get_page
resp = session.get(url, headers={"Accept": "text/html"})
File "/usr/share/python-wheels/requests-2.7.0-py2.py3-none-
any.whl/requests/sessions.py", line 477, in get
return self.request('GET', url, **kwargs)
File "/usr/lib/python2.7/dist-packages/pip/download.py", line 237, in request
return super(PipSession, self).request(method, url, *args, **kwargs)
File "/usr/share/python-wheels/requests-2.7.0-py2.py3-none-
any.whl/requests/sessions.py", line 465, in request
resp = self.send(prep, **send_kwargs)
File "/usr/share/python-wheels/requests-2.7.0-py2.py3-none-
any.whl/requests/sessions.py", line 573, in send
r = adapter.send(request, **kwargs)
File "/usr/share/python-wheels/requests-2.7.0-py2.py3-none-
any.whl/requests/adapters.py", line 370, in send
timeout=timeout
File "/usr/share/python-wheels/requests-2.7.0-py2.py3-none-
any.whl/requests/packages/urllib3/connectionpool.py", line 544, in urlopen
body=body, headers=headers)
File "/usr/share/python-wheels/requests-2.7.0-py2.py3-none-
any.whl/requests/packages/urllib3/connectionpool.py", line 344, in
_make_request
self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
File "/usr/share/python-wheels/requests-2.7.0-py2.py3-none-
any.whl/requests/packages/urllib3/connectionpool.py", line 314, in
_raise_timeout
if 'timed out' in str(err) or 'did not complete (read)' in str(err): #
Python 2.6
TypeError: __str__ returned non-string (type Error)
Storing debug log for failure in /home/ismael/.pip/pip.log
ismael at mobizz:~$ cat .pip/pip.log
------------------------------------------------------------
/usr/bin/pip run on Thu Aug 27 16:42:47 2015
Downloading/unpacking virtualenvwrapper
Getting page https://pypi.python.org/simple/virtualenvwrapper/
Cleaning up...
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 290, in
run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle,
bundle=self.bundle)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1178, in
prepare_files
url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 194, in
find_requirement
page = self._get_page(main_index_url, req)
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 568, in _get_page
session=self.session,
File "/usr/lib/python2.7/dist-packages/pip/index.py", line 670, in get_page
resp = session.get(url, headers={"Accept": "text/html"})
File "/usr/share/python-wheels/requests-2.7.0-py2.py3-none-
any.whl/requests/sessions.py", line 477, in get
return self.request('GET', url, **kwargs)
File "/usr/lib/python2.7/dist-packages/pip/download.py", line 237, in request
return super(PipSession, self).request(method, url, *args, **kwargs)
File "/usr/share/python-wheels/requests-2.7.0-py2.py3-none-
any.whl/requests/sessions.py", line 465, in request
resp = self.send(prep, **send_kwargs)
File "/usr/share/python-wheels/requests-2.7.0-py2.py3-none-
any.whl/requests/sessions.py", line 573, in send
r = adapter.send(request, **kwargs)
File "/usr/share/python-wheels/requests-2.7.0-py2.py3-none-
any.whl/requests/adapters.py", line 370, in send
timeout=timeout
File "/usr/share/python-wheels/requests-2.7.0-py2.py3-none-
any.whl/requests/packages/urllib3/connectionpool.py", line 544, in urlopen
body=body, headers=headers)
File "/usr/share/python-wheels/requests-2.7.0-py2.py3-none-
any.whl/requests/packages/urllib3/connectionpool.py", line 344, in
_make_request
self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
File "/usr/share/python-wheels/requests-2.7.0-py2.py3-none-
any.whl/requests/packages/urllib3/connectionpool.py", line 314, in
_raise_timeout
if 'timed out' in str(err) or 'did not complete (read)' in str(err): #
Python 2.6
TypeError: __str__ returned non-string (type Error)
ismael at mobizz:~$ pip3 install virtualenv --upgrade
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement virtualenv in
/usr/lib/python3/dist-packages
Downloading/unpacking virtualenv
Cleaning up...
No distributions at all found for virtualenv in /usr/lib/python3/dist-packages
Storing debug log for failure in /home/ismael/.pip/pip.log
ismael at mobizz:~$ cat .pip/pip.log
------------------------------------------------------------
/usr/bin/pip3 run on Thu Aug 27 16:46:24 2015
Getting page https://pypi.python.org/simple/virtualenv/
Could not fetch URL https://pypi.python.org/simple/virtualenv/: connection
error: [X509] PEM lib (_ssl.c:2727)
Will skip URL https://pypi.python.org/simple/virtualenv/ when looking for
download links for virtualenv in /usr/lib/python3/dist-packages
Getting page https://pypi.python.org/simple/
Could not fetch URL https://pypi.python.org/simple/: connection error: [X509]
PEM lib (_ssl.c:2727)
Will skip URL https://pypi.python.org/simple/ when looking for download links
for virtualenv in /usr/lib/python3/dist-packages
Cannot fetch index base URL https://pypi.python.org/simple/
URLs to search for versions for virtualenv in /usr/lib/python3/dist-packages:
* https://pypi.python.org/simple/virtualenv/
Getting page https://pypi.python.org/simple/virtualenv/
Could not fetch URL https://pypi.python.org/simple/virtualenv/: connection
error: [X509] PEM lib (_ssl.c:2727)
Will skip URL https://pypi.python.org/simple/virtualenv/ when looking for
download links for virtualenv in /usr/lib/python3/dist-packages
Could not find any downloads that satisfy the requirement virtualenv in
/usr/lib/python3/dist-packages
Downloading/unpacking virtualenv
Cleaning up...
No distributions at all found for virtualenv in /usr/lib/python3/dist-packages
Exception information:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 290, in
run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle,
bundle=self.bundle)
File "/usr/lib/python3/dist-packages/pip/req.py", line 1177, in prepare_files
raise not_found
File "/usr/lib/python3/dist-packages/pip/req.py", line 1097, in prepare_files
req_to_install, self.upgrade)
File "/usr/lib/python3/dist-packages/pip/index.py", line 277, in
find_requirement
raise DistributionNotFound('No distributions at all found for %s' % req)
pip.exceptions.DistributionNotFound: No distributions at all found for
virtualenv in /usr/lib/python3/dist-packages
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (900, 'testing'), (300, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.1.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=es_UY.utf8, LC_CTYPE=es_UY.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
Versions of packages python-pip depends on:
ii ca-certificates 20150426
ii python 2.7.9-1
ii python-colorama 0.3.3-1
ii python-distlib 0.2.1-1
ii python-html5lib 0.999-3
ii python-pkg-resources 18.0.1-2
ii python-requests 2.7.0-3
ii python-setuptools 18.0.1-2
ii python-six 1.9.0-3
pn python:any <none>
Versions of packages python-pip recommends:
ii build-essential 11.7
pn python-dev-all <none>
ii python-wheel 0.24.0-3
python-pip suggests no packages.
-- no debconf information
More information about the Python-modules-team
mailing list