apache wsgi venv: libclntsh.so not found but on console it is #160
Replies: 2 comments 2 replies
-
Trying to run the testing script as user www-data like apache does, the library is found too:
|
Beta Was this translation helpful? Give feedback.
-
Try setting the library search path using 'ldconfig' instead of LD_LIBRARY_PATH. Check the python-oracledb installation instructions. Passing the environment variable through web server configurations and environments is notoriously delicate.
|
Beta Was this translation helpful? Give feedback.
-
Hi there,
My application is called via apache wsgi and uses a venv.
I need to use thick client and have installed instantclient under /opt/oracle.
But
oracledb.init_oracle_client()
throws the following error (with DPI_DEBUG_LEVEL = 64)Testing with a small script called by root in the same venv the call works flawesly
import oracledb
db_config = {...}
oracledb.init_oracle_client()
connection = oracledb.connect(**db_config)
print("Database version:", connection.version)
connection.close()
As of
oracledb knows about the library path but doesn't find the librarys?
What's my problem?
Beta Was this translation helpful? Give feedback.
All reactions