Package: python-gevent
Version: 1.0.1-1
Severity: normal
Dear Maintainer,
with current python2.7 (2.7.8-10) from Jessie, the SSL support in
python-gevent is broken for at least two reasons:
1. References no longer existing ssl._ssl.sslwrap()
gevent.ssl.SSLSocket.connect() tries to use ssl._ssl.sslwrap() which
no longer exists in Python 2.7.8 (it did exist in Python 2.7.3,
shipped by wheezy):
sascha@vm-android:~$ python
Python 2.7.8 (default, Oct 7 2014, 17:59:21)
[GCC 4.9.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gevent.ssl
>>> import gevent.socket
>>> sock = gevent.socket.socket()
>>> ssl_sock = gevent.ssl.SSLSocket(sock)
>>> ssl_sock.connect(('bugs.debian.org', 443))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/gevent/ssl.py", line 329, in connect
self._sslobj = _ssl.sslwrap(self._sock, False, self.keyfile,
self.certfile,
AttributeError: 'module' object has no attribute 'sslwrap'
2. References ssl.SSLContext which gets introduced by Python 2.7.9
When given an already-connected socket, gevent.ssl.SSLSocket.__init__()
tries to reference SSLContext which doesn't exist in Python 2.7.8 yet
(gets introduced by 2.7.9):
sascha@vm-android:~$ python
Python 2.7.8 (default, Oct 7 2014, 17:59:21)
[GCC 4.9.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gevent.ssl
>>> import gevent.socket
>>> sock = gevent.socket.socket()
>>> sock.connect(('bugs.debian.org', 443))
>>> ssl_sock = gevent.ssl.SSLSocket(sock)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/gevent/ssl.py", line 84, in __init__
ctx = SSLContext(ssl_version)
NameError: global name 'SSLContext' is not defined
-- System Information:
Debian Release: jessie/sid
APT prefers testing-updates
APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.16-2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages python-gevent depends on:
ii libc6 2.19-11
ii python 2.7.8-1
ii python-greenlet 0.4.2-1+b2
python-gevent recommends no packages.
Versions of packages python-gevent suggests:
pn python-gevent-dbg <none>
pn python-gevent-doc <none>
pn python-openssl <none>
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]