ImportError: No module named gobject

General support for problems installing or using Deluge
Post Reply
josiah47
New User
New User
Posts: 3
Joined: Thu Oct 25, 2007 11:59 pm

ImportError: No module named gobject

Post by josiah47 »

Hello,
Im running Gentoo Linux with everything updated to newest released in portage.
I emerge deluge with no problems.
When I try to start in within xfce4 it gives the following lines

File "/usr/bin/deluge", line 46 in <module>
import deluge.interface
File "/usr/lib/python2.5/site-packages/deluge/interface.py", line 35. in <module>
import gobject
ImportError: No module named gobject

Any thoughts anyone?
andar
Top Bloke
Top Bloke
Posts: 1050
Joined: Fri Jun 08, 2007 8:38 pm
Location: Victoria, BC
Contact:

Re: ImportError: No module named gobject

Post by andar »

josiah47 wrote:Hello,
Im running Gentoo Linux with everything updated to newest released in portage.
I emerge deluge with no problems.
When I try to start in within xfce4 it gives the following lines

File "/usr/bin/deluge", line 46 in <module>
import deluge.interface
File "/usr/lib/python2.5/site-packages/deluge/interface.py", line 35. in <module>
import gobject
ImportError: No module named gobject

Any thoughts anyone?

Code: Select all

# emerge pygobject
josiah47
New User
New User
Posts: 3
Joined: Thu Oct 25, 2007 11:59 pm

Re: ImportError: No module named gobject

Post by josiah47 »

Ok i did that upgraded one version.
but then i get this
Traceback (most recent call last):
File "/usr/bin/deluge", line 46, in <module>
import deluge.interface
File "/usr/lib/python2.5/site-packages/deluge/interface.py", line 38, in <module>
import gtk
File "/usr/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py", line 48, in <module>
from gtk import _gtk
ImportError: No module named cairo

but i have the latest one emerged
josiah47
New User
New User
Posts: 3
Joined: Thu Oct 25, 2007 11:59 pm

Re: ImportError: No module named gobject

Post by josiah47 »

Ok i remerged pycairo
and now it starts up
thanks for your help
Toffer
New User
New User
Posts: 4
Joined: Sun Feb 15, 2009 10:47 pm

Re: ImportError: No module named gobject

Post by Toffer »

I've got exactly the same error as the subject title on this one, I also use freshly updated Gentoo.
I've re-emerged python, run python-updater, re-emerged pygtk, pygobject and deluge, and still get:
kristoffer@desktop ~ $ deluge
[INFO ] 10:18:18 main:85 Deluge ui 1.0.7
[DEBUG ] 10:18:18 main:86 options: {'config': None, 'logfile': None, 'ui': None}
[DEBUG ] 10:18:18 main:87 args: []
Traceback (most recent call last):
File "/usr/local/bin/deluge", line 8, in <module>
load_entry_point('deluge==1.0.7', 'console_scripts', 'deluge')()
File "/usr/local/lib/python2.5/site-packages/deluge/main.py", line 89, in start_ui
from deluge.ui.ui import UI
File "/usr/local/lib/python2.5/site-packages/deluge/ui/ui.py", line 26, in <module>
import deluge.configmanager
File "/usr/local/lib/python2.5/site-packages/deluge/configmanager.py", line 26, in <module>
import gobject
ImportError: No module named gobject
I've googled and read for several days, trying various suggested fixes, but nothing works. And I'm not too familiar with linux, so perhaps there is some obvious stuff i've missed?

In advance, thank you for all help, hints or suggestions!
Post Reply