[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Building Python without SSLv3 breaks requests



On 11/19/2014 12:45 AM, Yannick Roehlly wrote:
Hi,

The building of Python 2 without SSLv3 support breaks requests:

import requests
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "/usr/lib/python2.7/dist-packages/requests/__init__.py", line 68, in
<module>
     _attach_namespace(urllib3, 'requests.packages')
   File "/usr/lib/python2.7/dist-packages/requests/__init__.py", line 63, in
_attach_namespace
     module = __import__(name)
   File "/usr/lib/python2.7/dist-packages/urllib3/contrib/pyopenssl.py", line
73, in <module>
     ssl.PROTOCOL_SSLv3: OpenSSL.SSL.SSLv3_METHOD,
AttributeError: 'module' object has no attribute 'PROTOCOL_SSLv3'

and maybe other packages or software (for instance, a local install of Vim's
YouCompleteMe embedding it's own Python requests does not work).

Should bugs be reported against the broken packages or should the SSLv3
disabling in Python 2 be done with corrections?

without the patch, the python2.7 autopkg tests fail. see

  http://ci.debian.net/packages/p/python2.7/unstable/amd64/

I'll wait for the -12 results. I think it would be better to test for this attribute first before using it.


Reply to: