Sunday, October 27, 2013

Psycopg2 on Mac OS X (Snow Leopard)

I'm working my way through my first non-tutorial Django project. I
plan to deploy it (at least initially) on Heroku. I'm at the point
where I have my basic structure laid out and am proceeding to model
definition. Heroku's default database is PostgreSQL, which I'm
comfortable with, and seems to be installed properly there. The
locally built psycopg2 module (2.5.1) is missing libssl, however:

(venv)topten% python manage.py shell
ImportError: dlopen(/Users/skip/heroku/topten/venv/lib/python2.7/site-packages/psycopg2/_psycopg.so,
2): Library not loaded: libssl.1.0.0.dylib
Referenced from:
/Users/skip/heroku/topten/venv/lib/python2.7/site-packages/psycopg2/_psycopg.so
Reason: image not found

Looking on my Mac running Snow Leopard (10.6.8), I only see 0.9.x
versions of libssl in /usr/lib. I have no libssl in my MacPorts
directory (/opt/local/lib).

Where did whatever built psycopg2 (pip?) get the idea that I had
libssl 1.0? More importantly, how can I get past this bump in the
road?

Thanks,

Skip Montanaro

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CANc-5UwY67Yh%3DoJJO%3D2TjOighTOK8xiviQz4oei3NS4oEVdK%3Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment