Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-14-2007, 10:18 AM   #1
Registered: Mar 2007
Location: Tallinn, Estonia
Distribution: Slackware 12.0
Posts: 276

Rep: Reputation: 30
"ImportError: No module named gobject", Exaile fails to run. Python problem.


Decided to install Exaile today. After installing all the dependencies without much problem I Installed the player itself and tried to run it.

bash-3.1$ ./exaile
Traceback (most recent call last):
  File "", line 21, in <module>
    import traceback, sys, gobject
ImportError: No module named gobject
Following recommendations from #exaile@freenet I've tried recompiling both pyGTK and pygobject, no gain.

Following some other thread I also checked if I had in my system which I didn't. Since pygobject itself installs fine, I don't know what to think of this.
Old 12-11-2008, 01:12 PM   #2
LQ Newbie
Registered: Dec 2008
Posts: 1

Rep: Reputation: 0


So I think sometimes the problem has to do with PYTHONPATH in case you already have those bindings installed.

For example if I 'export PYTHONPATH=""' then I can't even 'import pygtk'. If I 'export PYTHONPATH="/usr/local/lib/python2.5/site-packages/"' I can 'import pygtk' but can't 'import gtk' or 'import gobject'.

And finally, what did it for me was 'export PYTHONPATH="/usr/local/lib/python2.5/site-packages/:/usr/local/lib/python
2.5/site-packages/gtk-2.0/"'. After that I could import everything and didn't even need to pay custom taxes.

You can put this export command on your .bash_login. That's what I did.

Maybe it will work for somebody out there.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ImportError: No module named gtk peterkarlos Mandriva 3 02-14-2007 08:27 AM
gDesklets in SuSE 10.0 - "ImportError: No module named os" slong682000 Linux - Software 2 04-10-2006 09:51 PM
Bittorrent. "ImportError: No module named __future__" BashTin Linux - Software 4 09-12-2005 03:07 AM
iPodder: ImportError: No module named wx dr_zayus69 Linux - Software 6 07-06-2005 01:55 AM
Named slave update fails: "Server is not an authority for the domain" usernamenumber Linux - Networking 0 09-29-2004 10:42 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:39 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration