Ask Your Question

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

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

Rabin gravatar image

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

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/", line 149, in __init__
    from deluge.ui.gtkui.gtkui import GtkUI
  File "/usr/lib/python2.7/site-packages/deluge/ui/gtkui/", line 1, in <module>
    from gtkui import start
  File "/usr/lib/python2.7/site-packages/deluge/ui/gtkui/", line 87, in <module>
    from deluge.ui.client import client
  File "/usr/lib/python2.7/site-packages/deluge/ui/", line 37, in <module>
    from twisted.internet import reactor, ssl, defer
  File "/usr/lib64/python2.7/site-packages/twisted/internet/", line 59, in <module>
    from OpenSSL import SSL
  File "/usr/lib/python2.7/site-packages/OpenSSL/", line 8, in <module>
    from OpenSSL import rand, crypto, SSL
  File "/usr/lib/python2.7/site-packages/OpenSSL/", 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

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

Rabin gravatar image

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


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
edit flag offensive delete link more

Question Tools

1 follower


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

Seen: 498 times

Last updated: Aug 20 '15