LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 07-14-2007, 10:18 AM   #1
kummiliim
Member
 
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.


Hi.

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

Code:
bash-3.1$ ./exaile
Traceback (most recent call last):
  File "exaile.py", 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 pygobject.py 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
GERSON
LQ Newbie
 
Registered: Dec 2008
Posts: 1

Rep: Reputation: 0
Cool

HI

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.

Love.
 
  


Reply


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


All times are GMT -5. The time now is 02:34 AM.

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