-
Notifications
You must be signed in to change notification settings - Fork 363
Closed
Labels
Description
-
What versions are you using?
platform.platform: Windows-10-10.0.18362-SP0 sys.maxsize > 2**32: True platform.python_version: 3.6.13 cx_Oracle.version: 8.2.1
-
Is it an error or a hang or a crash?
Error
-
What error(s) or behavior you are seeing?
I can't initialize the client.
I get "DPI-1072: the Oracle Client library version is unsupported".>>> cx_Oracle.init_oracle_client(lib_dir=r"C:\oracle\instantclient_19_11") ODPI [08484] 2021-07-07 10:50:25.266: Context Parameters: ODPI [08484] 2021-07-07 10:50:25.267: Oracle Client Lib Dir: C:\oracle\instantclient_19_11 ODPI [08484] 2021-07-07 10:50:25.270: Environment Variables: ODPI [08484] 2021-07-07 10:50:25.271: PATH => "C:\Users\nicola\.edm\envs\mwe;C:\Users\nicola\.edm\envs\mwe\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Git\cmd;C:\Users\nicola\AppData\Local\Programs\Enthought\edm\;C:\Users\nicola\AppData\Local\Microsoft\WindowsApps;" ODPI [08484] 2021-07-07 10:50:25.285: load in parameter directory ODPI [08484] 2021-07-07 10:50:25.287: load in dir C:\oracle\instantclient_19_11 ODPI [08484] 2021-07-07 10:50:25.289: load with name C:\oracle\instantclient_19_11/oci.dll ODPI [08484] 2021-07-07 10:50:25.292: load by OS successful ODPI [08484] 2021-07-07 10:50:25.297: validating loaded library Traceback (most recent call last): File "<stdin>", line 1, in <module> cx_Oracle.DatabaseError: DPI-1072: the Oracle Client library version is unsupported
I'm using the oracle client version that is recommended in the documentation here (e.g. the archive file is called the same), and I have the latest VS C++ redistributable installed.
>>> # sanity check ... import os; print(os.path.isdir(r"C:\oracle\instantclient_19_11")) True >>> # sanity check ... with open(r"C:\oracle\instantclient_19_11\BASIC_README", "r") as fp: ... print([next(fp) for _ in range(5)]) ... ['Basic Package Information \n', '========================= \n', 'Sat Apr 17 18:29:12 MDT 2021\n', 'Client Shared Library 64-bit - 19.11.0.0.0\n', '\n']
-
Include a runnable Python script that shows the problem.
import cx_Oracle cx_Oracle.init_oracle_client(lib_dir=r"C:\oracle\instantclient_19_11")