Re: cx_oracle and EL Capitan?

Christopher Jones <[email protected]> Tue, 13 Oct 2015 10:18:02 +1100
Newsgroups gmane.comp.python.db.cx-oracle
Message-ID <[email protected]>

On 12/10/2015 10:58 pm, Dominic Giles wrote:
> After upgrading to El Capitan. cx_oracle now appears to have broken.
>
> prior to upgrading my environment worked fine. Now I get the message indicating problems with DYLD_LIBRARY_PATH.
>
> python WaitTime.py
> Traceback (most recent call last):
>    File "WaitTime.py", line 5, in <module>
>      import cx_Oracle
> ImportError: dlopen(/Library/Python/2.7/site-packages/cx_Oracle.so, 2): Library not loaded: /ade/b/2649109290/oracle/rdbms/lib/libclntsh.dylib.11.1
>    Referenced from: /Library/Python/2.7/site-packages/cx_Oracle.so
>    Reason: image not found
>
> previously it worked flawlessly… Sqlplus and jdbc_oci still work.
>
> reinstall of cx_oracle doesn’t make any difference.

Hi Dom,

This is due to El Capitan's SIP.

It's a general issue for all users of Oracle client libraries.
E.g node-oracledb also has the problem: https://github.com/oracle/node-oracledb/issues/231

There are various scripts around that might help:
https://blogs.oracle.com/opal/entry/installing_node_oracledb_on_os
This may or may not have issues.

I'm waiting to hear from our Apple group for their recommendations.

Chris

-- 
http://twitter.com/ghrd

------------------------------------------------------------------------------