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 "", line 1, in File "/usr/lib/python2.7/dist-packages/requests/__init__.py", line 68, in _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 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. -- To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/546c435d.9040...@debian.org
Re: Building Python without SSLv3 breaks requests
Hello Yannick, thanks for this report! On Wednesday 19 November 2014 00:45:19 Yannick Roehlly wrote: > 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? This breakage is related to urllib3, specifically the SNI support for Python 2. It is showing without using urllib3.contrib.pyonpenssl due to the monkey patch machinery to make requests.package.urllib3 == urllib3. I can patch http://sources.debian.net/src/python-urllib3/1.9.1-2/urllib3/contrib/pyopenssl.py/#L72 to not raise any AttributeError if SSLv3 support is disabled. Kind regards, -- Daniele Tricoli 'Eriol' http://mornie.org -- To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/1429442.KxPtxmVTCJ@mornie
Building Python without SSLv3 breaks requests
Hi, The building of Python 2 without SSLv3 support breaks requests: >>> import requests Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.7/dist-packages/requests/__init__.py", line 68, in _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 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? Regards, Yannick -- To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/18419377.FolxtsGgSG@tardis
ITP: pyrecord -- Pythonic record types
Package: wnpp Severity: wishlist Owner: Ghislain Antony Vaillant * Package name : pyrecord Version : 1.0.0~rc1 Upstream Author : Gustavo Narea * URL : https://pythonhosted.org/pyrecord/ * License: Apache-2.0 Programming Lang: Python Description : Pythonic record types Long description taken from PyPI: A record (aka "struct" in C) is a pre-defined collection of values where each is accessed by a unique name. Depending on the nature of the data, records may be a superior alternative to dictionaries and instances of custom classes. . PyRecord allows you to use records in Python v2.7 to v3.x and PyPy v2, and can be thought of as an improved namedtuple. Considering the nature of this package, it should probably be maintained under the Debian Python Team umbrella. Cheers, - Ghis