Warum kann Python keine freigegebenen Objekte finden, die sich in Verzeichnissen in sys.path befinden?

Ich versuche, import pycurl:

$ python -c "import pycurl"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: libcurl.so.4: cannot open shared object file: No such file or directory

Nun libcurl.so.4 ist in /usr/local/lib. Wie Sie sehen können, ist dies in der sys.Pfad:

$ python -c "import sys; print sys.path"
['', '/usr/local/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg', 
'/usr/local/lib/python25.zip', '/usr/local/lib/python2.5', 
'/usr/local/lib/python2.5/plat-linux2', '/usr/local/lib/python2.5/lib-tk', 
'/usr/local/lib/python2.5/lib-dynload', 
'/usr/local/lib/python2.5/sitepackages', '/usr/local/lib', 
'/usr/local/lib/python2.5/site-packages']

Jede Hilfe wird sehr geschätzt.

InformationsquelleAutor der Frage | 2009-07-08

Schreibe einen Kommentar