I am getting the following error.
cx_Oracle.DatabaseError: DPI-1047: 64-bit Oracle Client library cannot be loaded: "dlopen(libclntsh.dylib, 1): image not found"
.
One fix that I found was to insert
cx_Oracle.init_oracle_client(lib_dir=path)
which lead to a Oracle Client Library has already been initialized Error.
However I do not call init_oracle_client
anywhere in the code. I am using Python 3.8.11 and cx_Oracle 8.2.1 on a Mac.
When I initially ran the code, I did not have any Oracle Client installed. I then downloaded instantclient_19_8, but using that with init_oracle_client lead to the already initialized error. I saw this here https://cx-oracle.readthedocs.io/en/latest/user_guide/initialization.html.
I am not sure where the cx_Oracle binary is, when I go to the location that has my current anaconda environment, I see a cx_Oracle-doc folder that has readme files. In addition, an oradiag_my_username folder has been created in ~. Not sure what needs to be fixed.