Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 25 May 2013, 10:18
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
exaile - gtk based amarok clone, python install issues
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
cobelloy


Joined: 23 May 2005
Posts: 193
Location: Nth Dinninup W.Australia

PostPosted: Mon 04 Dec 2006, 23:53    Post subject:  exaile - gtk based amarok clone, python install issues  

hi, I would like to install exaile which is just like amarok but for gtk,

http://www.exaile.org/index.rb?command=news

here are its dependancies:

* Python 2.4
* python-gtk2 (2.8.6)
* gstreamer 0.10, gstreamer0.10-plugins-good
* python-gpod (optional for iPod support)
* Optional: gstreamer0.10-plugins-ugly (for mp3 support)
* python-dbus

I have mu's python and py-gtk packages installed, the tarball of gstreamer installed, and the plugins were a deb (since the tarball called for something called liboil, even when it was installed) python gpod I left out since i dont have an ipod.

python dbus has been a real problem so far

i can install dbus from a tarball but the python-dbus (which comes with a python install file) wont install

sh-3.00# python setup.py
Traceback (most recent call last):
File "setup.py", line 9, in ?
from Pyrex.Distutils import build_ext
ImportError: No module named Pyrex.Distutils

i installed dbus and dbus python from debs but exaile would not run, even though it installed fine, i also tried the exaile deb, but that was the same

sh-3.00# exaile
Traceback (most recent call last):
File "/usr/bin/exaile", line 26, in ?
import xl.dbusinterface
File "/usr/share/exaile/xl/dbusinterface.py", line 18, in ?
cobelloy: import dbus
(10:21:50) cobelloy: ImportError: No module named dbus



what am i missing here?
Back to top
View user's profile Send private message 
Liboicl

Joined: 15 Feb 2010
Posts: 89

PostPosted: Mon 17 Jan 2011, 21:33    Post subject:  

I know this is an old post and the poster has probably either solved the problem or gave up, but I ran into a similar problem and thought I might be able to help someone else by providing my solution.

#python
>>>>import sys
>>>>sys.path

Doing this will list all of the paths that python looks for modules in. The most common one is site-packages, but for some reason mine did not look there, so I moved all of the files to dist-packages, which my python did look in. I then deleted site-packages and made an absolute link to dist-packages named site-packages.

I hope this is helpful to any one else running into this problem.

Last edited by Liboicl on Thu 19 Apr 2012, 19:08; edited 1 time in total
Back to top
View user's profile Send private message 
npierce

Joined: 28 Dec 2009
Posts: 637

PostPosted: Fri 13 Apr 2012, 09:36    Post subject:  

Liboicl wrote:
I hope this is helpful to any one else running into this problem.

Yes! It was helpful to me.

I needed to know where python was looking for its modules, so this was exactly what I needed. Thanks Liboicl!

Now, in hopes of helping someone else who is searching for help on a similar problem, here is something else to check when python can't find a module:

A .pet containing modules may have been created by someone using a different version of python than you. If so, it probably won't install them in the appropriate place for your version.

For instance, I installed a dbus-python .pet, but python couldn't find the dbus module. It turned out that the files were installed in /usr/lib/python2.5/site-packages/, which would have been fine if I had been running python2.5, but I was running python2.6. Once I linked the files into /usr/lib/python2.6/site-packages/, python was happy.

(Of course, if there were version incompatibilities it would not be happy, but I would think that would be more likely if trying to use new modules with an old python.)
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0458s ][ Queries: 11 (0.0097s) ][ GZIP on ]