I'm trying to connect to the oracle database in python using cx_Oracle. But I'm stuck with the below error.
For reference my code
def runQuery(self,query):
with cx_Oracle.connect(config.username,config.password,config.dsn,encoding=config.encoding) as connection:
try:
print(connection.version)
except cx_Oracle.Error as error:
print(error)
Config File
username = 'dummy'
password = 'dummy'
dsn = 'dummy@//localhost:1521/ORCLCDB.localdomain'
port = 1512
encoding = 'UTF-8'
For additional knowledge, using the docker image of the oracle database for this purpose.
May I know how can clear the issue and proceed and could someone please help to find what is missing in my implementation.

client version 32-bit or 64-bit, checkLD_LIBRARY_PATH...Please try the suggestions first.LD_LIBRARY_PATHvariable and see if it's pointing to the location where your instant client is installed. If not, export or set it based on your OS.