I have export $ORACLE_HOME
set to the directory containing all the instance client files. And LD_LIBRARY_PATH and DYLD_LIBRARY_PATH set to $ORACLE_HOME/
in my ~/.bash_profile
.
I just can't seem to get past this error when I try import cx_Oracle in python:
ImportError: dlopen(/Library/Python/2.7/site-packages/cx_Oracle.so, 2): Library not loaded: /ade/b/3071542110/oracle/rdbms/lib/libclntsh.dylib.11.1
Referenced from: /Library/Python/2.7/site-packages/cx_Oracle.so
Reason: image not found
My Environment:
- OS X El Capitan - 10.11.2
- Python: 2.7
- Oracle Instant Client - 64-bit:
- instantclient-sdk-macos.x64-11.2.0.4.0.zip
- instantclient-basic-macos.x64-11.2.0.4.0.zip
I can connect to the Oracle database using sqlplus without any issue.