FS#39388 - [deluge] [python2-pyopenssl] can't start deluge

Attached to Project: Arch Linux
Opened by Konstantin Krasavin (HarD) - Thursday, 13 March 2014, 18:39 GMT
Last edited by Felix Yan (felixonmars) - Friday, 14 March 2014, 04:05 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Ionut Biru (wonder)
Jan Alexander Steffens (heftig)
Felix Yan (felixonmars)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 6
Private No

Details

Description:

After today update (maybe pyopenssl) deluge cann't start.

Additional info:
* deluge 1.3.6-4
* pyopenssl 0.14-1
* log start

deluge-gtk
Traceback (most recent call last):
File "/usr/bin/deluge-gtk", line 9, in <module>
load_entry_point('deluge==1.3.6', 'gui_scripts', 'deluge-gtk')()
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 351, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2363, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2088, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/lib/python2.7/site-packages/deluge/ui/gtkui/__init__.py", line 1, in <module>
from gtkui import start
File "/usr/lib/python2.7/site-packages/deluge/ui/gtkui/gtkui.py", line 75, in <module>
from deluge.ui.client import client
File "/usr/lib/python2.7/site-packages/deluge/ui/client.py", line 37, in <module>
from twisted.internet import reactor, ssl, defer
File "/usr/lib/python2.7/site-packages/twisted/internet/ssl.py", line 25, in <module>
from OpenSSL import SSL
File "/usr/lib/python2.7/site-packages/OpenSSL/__init__.py", line 8, in <module>
from OpenSSL import rand, crypto, SSL
File "/usr/lib/python2.7/site-packages/OpenSSL/rand.py", line 11, in <module>
from OpenSSL._util import (
File "/usr/lib/python2.7/site-packages/OpenSSL/_util.py", line 3, in <module>
from cryptography.hazmat.bindings.openssl.binding import Binding
ImportError: No module named cryptography.hazmat.bindings.openssl.binding


Steps to reproduce: start deluge
This task depends upon

Closed by  Felix Yan (felixonmars)
Friday, 14 March 2014, 04:05 GMT
Reason for closing:  Fixed
Additional comments about closing:  extra/python2-pyopenssl 0.14-2
Comment by disabled (Lykve) - Thursday, 13 March 2014, 19:28 GMT
this looks related to the recent update of pyopenssl.
Current workaround: pip2 install cryptography.
Comment by Andrew Rowland (ce1984) - Thursday, 13 March 2014, 19:30 GMT
Same problem occured after doing a system upgrade. I downgraded python2-pyopenssl (0.14-1 -> 0.13.1-1) on both machines (I have the daemon on a seperate machine) and everything is working again.
Comment by Konstantin Krasavin (HarD) - Thursday, 13 March 2014, 19:38 GMT
0.14 was in testing or not?
Comment by Andrew Rowland (ce1984) - Thursday, 13 March 2014, 20:16 GMT
python2-pyopenssl is in the extra repository if that's what you mean.
Comment by Boris B. (borisb) - Thursday, 13 March 2014, 21:00 GMT
I have the same error on a fully up-to-date system. Deluge also at first complained 'No module named six', however installing 'python2-six' fixed it. Note that 'python2-six' is not a dependency, hard or optional.
Comment by Levente Polyak (anthraxx) - Thursday, 13 March 2014, 23:45 GMT
I can confirm that this is a bug with the python2-pyopenssl (0.14-1) package.
The new 0.14 version has 2 hard dependencies [1] that are missing in the python2-pyopenssl depends: python2-six>=1.5.2 [2] and python2-cryptography>=0.2.1 [3].
However python2-cryptography [3] is not available in the arch repositories (as Lykve pointed out, there is a workaround: pip2 install cryptography)

[1] https://github.com/pyca/pyopenssl/blob/release-0.14/setup.py
[2] https://pypi.python.org/pypi/six
[3] https://pypi.python.org/pypi/cryptography/0.2.1
Comment by Doug Newgard (Scimmia) - Friday, 14 March 2014, 03:06 GMT
Ug, and cryptography needs cffi (from the AUR), which needs pycparser (from the AUR), which needs ply (from the AUR). It's going to mean adding 8 packages to the repos to get this going again.
Comment by Felix Yan (felixonmars) - Friday, 14 March 2014, 03:17 GMT
@Scimmia
Yeah, accidentally I have all the dependencies installed myself, so I didn't notice the change. python-ply already added to [extra], and others on the way.

Loading...