jeudi 3 avril 2014

When I attempt to runserver, why do I get an ImportError Reason: image not found when I attempt to?


Vote count:

0




I upgraded from osX 10.7 to 10.9 and all my PostgreSQL database calls started failing.


I upgraded to psycopg2 version 2.5.2 via

$ sudo pip install --upgrade psycopg2


When I try to runserver, I get an importError.



$ python manage.py runserver
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psycopg2/_psycopg.so, 2): Library not loaded: /usr/local/lib/libpq.5.4.dylib
Referenced from: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psycopg2/_psycopg.so
Reason: image not found


What does this mean?

It seems that Python is attempting to load: /usr/local/lib/libpq.5.4.dylib


But the file is not there, how do I correct this?



asked 1 min ago






Aucun commentaire:

Enregistrer un commentaire