Page 1 of 1

Can't run deluge: no module named gi

Posted: Wed Jun 27, 2012 4:35 am
by tim-m89

Code: Select all

% deluge
/usr/local/lib/python2.7/site-packages/gtk-2.0/gtk/__init__.py:40: RuntimeWarning: tp_compare didn't return -1 or -2 for exception
  from gtk import _gtk
ImportError: No module named gi
[ERROR   ] 16:35:14 ui:168 No module named gi
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/deluge-1.3.5-py2.7.egg/deluge/ui/ui.py", line 150, in __init__
    ui = GtkUI(args)
  File "/usr/local/lib/python2.7/site-packages/deluge-1.3.5-py2.7.egg/deluge/ui/gtkui/gtkui.py", line 229, in __init__
    self.menubar = MenuBar()
  File "/usr/local/lib/python2.7/site-packages/deluge-1.3.5-py2.7.egg/deluge/ui/gtkui/menubar.py", line 75, in __init__
    "menuitem_max_connections", "menuitem_upload_slots"):
ImportError: No module named gi
[ERROR   ] 16:35:14 ui:169 There was an error whilst launching the request UI: gtk
[ERROR   ] 16:35:14 ui:170 Look at the traceback above for more information.
Any ideas? I have asked on FreeBSD forums too without any response yet.

Re: Can't run deluge: no module named gi

Posted: Wed Jun 27, 2012 12:38 pm
by Cas
Have you got python-gobject installed?

Re: Can't run deluge: no module named gi

Posted: Thu Jun 28, 2012 7:47 am
by tim-m89
On FreeBSD this is provided by devel/py-gobject. I have this and have tried reinstalling it too with no luck.

Re: Can't run deluge: no module named gi

Posted: Thu Jun 28, 2012 11:51 am
by Cas
Did you see this freebsd mailing list post: http://osdir.com/ml/freebsd-python/2012 ... 00134.html

Also devel/py-gobject doesn't sound correct, looking at http://www.freebsd.org/ports/net-p2p.ht ... -1.3.5_1,1 py27-gobject-2.28.6_1 is what is required.

Re: Can't run deluge: no module named gi

Posted: Sun Jul 01, 2012 12:44 am
by tim-m89
Thanks that post on the mailing list fixed it.