Can't connect with python library #333
Replies: 1 comment 8 replies
-
Can you provide more details? Such as the contents of the script that demonstrates the issue? Also include this code: import os
config_dir = os.environ["TNS_ADMIN"]
file_name = os.path.join(config_dir, "tnsnames.ora")
for line in open(file_name):
print(line)
break The full traceback would also be useful. Thanks! |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I was using version 1.x.x and it was working fine, I upgraded to 2.2.0 and it started giving errors on connection. I tried which version worked last, and it was 2.1.1.
2.1.2, 2.2.0 are not working to connect for me.
the error is:
raise error.exc_type(error) from cause oracledb.exceptions.DatabaseError: DPY-4027: no configuration directory to search for tnsnames.ora
I checked that this file is present, the path to TNS_ADMIN is set and all should work fine.
I'm using python 3.9 and macbook pro with ARM processor.
Beta Was this translation helpful? Give feedback.
All reactions