[Pythonmac-SIG] newbie Mac switcher trying to set up django on Intel MacBook Pro Tiger

Nehemiah Dacres vivacarlie at gmail.com
Wed Dec 19 15:50:59 CET 2007


perhaps you should send this to macports. you see, Mac Ports normally
installs stuff in /opt/local/bin. but that is not where this code is being
ran from according to your traceback.
"Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/db/backends/postgresql_psycopg2/base.py",
line 15, in <module>
    raise ImproperlyConfigured("Error loading psycopg2 module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module:
dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/psycopg2/_psycopg.so,
2): Library not loaded: /usr/local/pgsql/lib/libpq.4.dylib"

looks like posgresql isn't installed on the same root that django was
installed. django seems to have ben installed in
Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django,
and did not put PosgreSQL in /usr/local/pgsql/lib/libpq.4.dylib" perhaps you
need to give it the path of your database enngine. try, at the commandline
"locate postgresql81 and see where they put it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20071219/b0c107b8/attachment.htm 


More information about the Pythonmac-SIG mailing list