Ask Your Question
0

Deluge won't start (six import int2byte, indexbytes)

asked 2015-08-16 14:28:50 -0600

Rabin gravatar image

updated 2015-08-20 16:23:35 -0600

Running the command deluge from the command line, give me this stack trace... which didn't help me much

~ » deluge

[ERROR   ] 22:14:09 ui:168 cannot import name indexbytes
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/deluge/ui/ui.py", line 149, in __init__
    from deluge.ui.gtkui.gtkui import GtkUI
  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 87, 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/lib64/python2.7/site-packages/twisted/internet/ssl.py", line 59, 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/SSL.py", line 10, in <module>
    from six import int2byte, indexbytes
ImportError: cannot import name indexbytes
[ERROR   ] 22:14:09 ui:169 There was an error whilst launching the request UI: gtk
[ERROR   ] 22:14:09 ui:170 Look at the traceback above for more information.
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2015-08-20 16:26:10 -0600

Rabin gravatar image

updated 2015-08-20 16:31:40 -0600

[RESOLVED]

Remove the SIX module with

sudo pip uninstall six # I had to run it twice for some reason.

And re-install it back with

sudo pip install six

More info,

Based on the tip in this github issuepage I found out that there is a miss match between the versions. running the command

> python -c "import six; print(six.__file__, six.__version__)"
('/usr/lib/python2.7/site-packages/six.pyc', '1.2.0')

showed me that I'm loading version 1.2.0, but when checking the version installed i see version 1.9.0

rpm -qa | grep six
python3-six-1.9.0-1.fc22.noarch
python-six-1.9.0-1.fc22.noarch
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-08-16 14:28:50 -0600

Seen: 491 times

Last updated: Aug 20 '15