Python not finding modules

M

Mani Chandra

Hey!
I installed a few python modules through the freebsd ports, but when I try to import them in the interpreter it says "module xxx not found". This seems to happen for some modules and not for the others. ex:- I installed psyco and parallel python which seem to be found but then scipy, PIL aren't being imported. Below is my $PYTHONPATH

['', '/usr/local/lib/python2.5/site-packages/setuptools-0.6c7-py2.5.egg', '/usr/local/lib/python25.zip', '/usr/local/lib/python2.5', '/usr/local/lib/python2.5/plat-freebsd6', '/usr/local/lib/python2.5/lib-tk', '/usr/local/lib/python2.5/lib-dynload', '/usr/local/lib/python2.5/site-packages', '/usr/local/lib/python2.5/site-packages/gtk-2.0', '/usr/local/lib/vtk/python', '/usr/local/lib/python2.5/site-packages']

The scipy libs are located at "/usr/local/lib/python2.4/site-packages/scipy" so I manually added this path to the PYTHONPATH but it still doesn't seem to find it.

Can someone please help me out here?:)

ps Also does including a directory in PYTHONPATH include all of it's sub-directories too?



Download prohibited? No problem. CHAT from any browser, without download. Go to http://in.messenger.yahoo.com/webmessengerpromo.php/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Python not finding modules 0
Python not processing .pth files 0
PYTHONPATH on OS X 4
TypeError in date_parse.py 3
Error loading modules 4
python import error 7
python import sys.path 1
import cherrypy2 5

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top