python - ipython notebook and psycopg2 don't work together -


i new using mac os, maybe thats why got such troubles.

so firstly found out problem running ipython notebook , solved 2 commands in shell (thx stackoverflow):

export lc_all=en_us.utf-8 export lang=en_us.utf-8 

now after 2 commands can run ipython notebook.

then tried download psycopg2 , after 6 hours found out solution of problem installing package (again thx stackoverflow):

export dyld_library_path=/applications/postgres.app/contents/versions/9.3/lib 

but got new problem: ipython notebook doesn't run in browser after dyl_lybrary_path, can't use both solutions @ same time.

guys, please recommend me cure, don't know how manage ....:(

thanks!

p.s. way in terminal psycopg2 works correctly, problem make work in browser

importerror                               traceback (most recent call last) <ipython-input-1-bd284aa2cf56> in <module>() ----> 1 import psycopg2  /users/kb/anaconda/lib/python2.7/site-packages/psycopg2/__init__.py in <module>()      48 # import dbapi-2.0 stuff top-level module.      49  ---> 50 psycopg2._psycopg import binary, number, string, datetime, rowid      51       52 psycopg2._psycopg import binary, date, time, timestamp  importerror: dlopen(/users/kb/anaconda/lib/python2.7/site-packages/psycopg2/_psycopg.so, 2): library not loaded: libssl.1.0.0.dylib   referenced from: /users/kb/anaconda/lib/python2.7/site-packages/psycopg2/_psycopg.so   reason: image not found 


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -