Menu

#1 import error due to wrong lib path under ubuntu 9.10

open
nobody
None
5
2010-03-10
2010-03-10
Anonymous
No

After installing psignifit under ubuntu 9.10 I get the following error when I try to import psignifit in python:

>>> import psignifit
ImportError: No module named _psipy

Python can't find the _psipy.so library file, probably because it is located in a wrong path (/usr/local/lib/python2.6/dist-packages)

A workaround is to install signifit for the current user only:
python setup.py install --home=~

this makes python copy the _psipy.so in the home directory's lib folder (/home/USER/lib/python/).
Add this path to the PYTHONPATH to be able to import psignifit in python:
export PYTHONPATH=$HOME/lib/python/

Discussion


Log in to post a comment.