-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't find libclntsh.so #15
Comments
Hi @tkossak, I need a bit more information to reproduce this. Which Linux distribution? |
I use:
|
On python 3.7 I also have such an error
but it is because the real error is not shown. |
From @tkossak on #14 :
Do you know why cx_oracle_on_ctypes can't find libclntsh.so library? Standard cx_Oracle can find it without me manually exporting LD_LIBRARY_PATH (because i have proper path set in /etc/ld.so.conf.d/oracle.conf), but somehow cx_oracle_on_ctypes ignores this path.
$ python -c 'import cx_Oracle'
$ export PYTHONPATH=/home/kossak/apps/cx_oracle_on_ctypes
$ python -c 'import cx_Oracle'
Traceback (most recent call last):
File "/home/kossak/apps/cx_oracle_on_ctypes/cx_Oracle/oci.py", line 2, in
from cx_Oracle.oci_generated_12 import *
File "/home/kossak/apps/cx_oracle_on_ctypes/cx_Oracle/oci_generated_12.py", line 613, in
_libs["libclntsh.so.12.1"] = load_library("libclntsh.so.12.1")
File "/home/kossak/apps/cx_oracle_on_ctypes/cx_Oracle/oci_generated_12.py", line 367, in load_library
raise ImportError("%s not found." % libname)
ImportError: libclntsh.so.12.1 not found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/kossak/apps/cx_oracle_on_ctypes/cx_Oracle/oci.py", line 5, in
from cx_Oracle.oci_generated_11 import *
File "/home/kossak/apps/cx_oracle_on_ctypes/cx_Oracle/oci_generated_11.py", line 596, in
_libs["libclntsh.so.11.1"] = load_library("libclntsh.so.11.1")
File "/home/kossak/apps/cx_oracle_on_ctypes/cx_Oracle/oci_generated_11.py", line 366, in load_library
raise ImportError("%s not found." % libname)
ImportError: libclntsh.so.11.1 not found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/kossak/apps/cx_oracle_on_ctypes/cx_Oracle/oci.py", line 8, in
from cx_Oracle.oci_generated_10 import *
File "/home/kossak/apps/cx_oracle_on_ctypes/cx_Oracle/oci_generated_10.py", line 596, in
_libs["libclntsh.so.10.1"] = load_library("libclntsh.so.10.1")
File "/home/kossak/apps/cx_oracle_on_ctypes/cx_Oracle/oci_generated_10.py", line 366, in load_library
raise ImportError("%s not found." % libname)
ImportError: libclntsh.so.10.1 not found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "/home/kossak/apps/cx_oracle_on_ctypes/cx_Oracle/init.py", line 13, in
from cx_Oracle.connection import Connection
File "/home/kossak/apps/cx_oracle_on_ctypes/cx_Oracle/connection.py", line 4, in
from cx_Oracle import oci
File "/home/kossak/apps/cx_oracle_on_ctypes/cx_Oracle/oci.py", line 10, in
raise Exception("Could not import oracle libraries version 12, 11 or 10. Giving up. Don't forget to set your ORACLE_HOME and LD_LIBRARY_PATH.")
Exception: Could not import oracle libraries version 12, 11 or 10. Giving up. Don't forget to set your ORACLE_HOME and LD_LIBRARY_PATH.
$ export LD_LIBRARY_PATH=/opt/oracle/oracle/product/12.1.0/client_1/lib
$ python -c 'import cx_Oracle'
$ echo $?
0
The text was updated successfully, but these errors were encountered: