Trying to setup postgres with the postgres mac app and hit this error, which I haven\'t been able to solve. Any thoughts?
ImportError: dlopen(/Users/Crai
This problem cost me the whole morning to solve. I found the discussion on http://initd.org/psycopg/articles/2010/11/11/links-about-building-psycopg-mac-os-x/ really helpful. Thanks to Jurie's answer, the solution to my problem (in Mac) is as below:
Install openssl 1.0.0 using brew:
brew install openssl
using the following command:
export DYLD_LIBRARY_PATH=/usr/local/Cellar/openssl/**1.0.1x**/lib
replace 1.0.1x part with your current version. For me it is 1.0.1h.
Hope this helps!
EDIT: After one day, I found that the second command has to be entered every time when needing to connect to database, so not a permanent solution to this problem.