Can't run deluge: no module named gi

General support for problems installing or using Deluge
Post Reply
tim-m89
New User
New User
Posts: 9
Joined: Sat Jan 23, 2010 3:00 am

Can't run deluge: no module named gi

Post 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.
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

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

Post by Cas »

Have you got python-gobject installed?
tim-m89
New User
New User
Posts: 9
Joined: Sat Jan 23, 2010 3:00 am

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

Post by tim-m89 »

On FreeBSD this is provided by devel/py-gobject. I have this and have tried reinstalling it too with no luck.
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

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

Post 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.
tim-m89
New User
New User
Posts: 9
Joined: Sat Jan 23, 2010 3:00 am

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

Post by tim-m89 »

Thanks that post on the mailing list fixed it.
Post Reply