[Python-modules-team] Bug#781781: python-urllib3: AttributeError: 'module' object has no attribute 'PROTOCOL_SSLv3'

Simon John debian at the-jedi.co.uk
Mon Jun 1 11:54:23 UTC 2015


I'm on Scratch/Sid and am still getting the old SSLv3 error with the
1.10 packages, did the patch not make it in?

$ python -c 'import requests'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/requests/__init__.py",
line 53, in <module>
    from .packages.urllib3.contrib import pyopenssl
  File
"/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/contrib/pyopenssl.py",
line 43, in <module>
    ssl.PROTOCOL_SSLv3: OpenSSL.SSL.SSLv3_METHOD,
AttributeError: 'module' object has no attribute 'PROTOCOL_SSLv3'

# dpkg --list|egrep -o 'python3?-(urllib3|pip)\s+([0-9\.\-])+'
python-pip                             1.5.6-6
python-urllib3                         1.10.4-1
python3-pip                            1.5.6-6
python3-urllib3                        1.10.4-1

The easiest way to reproduce it is to just type "pip" in a terminal.

Python3 (and pip3) seems to be fine, its only 2.7 that's broken.



More information about the Python-modules-team mailing list