Skip to content
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

Connecting to Oracle error with oracledb #550

Open
bnewman-tech opened this issue Nov 1, 2023 · 2 comments
Open

Connecting to Oracle error with oracledb #550

bnewman-tech opened this issue Nov 1, 2023 · 2 comments

Comments

@bnewman-tech
Copy link

What language are you using?

Python

What version are you using?

0.3.2 on a Macbook M1 Max Machine

What database are you using?

Oracle

What dataframe are you using?

Pandas and/or Polars

Can you describe your bug?

I am trying to use oracledb thin mode driver with connector-x without installing the Oracle Client. Is this possible and if so, what I am doing wrong?

Example query / code
import connectorx as cx

ENGINE_PATH = "oracle+oracledb://username:password@host:post/service_name"
query = "select * from table"  # query string

cx.read_sql(ENGINE_PATH, query)

What is the error?

[2023-11-01T02:17:30Z ERROR r2d2] DPI Error: DPI-1047: Cannot locate a 64-bit Oracle Client library:
"dlopen(libclntsh.dylib, 0x0001): tried: 'libclntsh.dylib' (no such file),
'/System/Volumes/Preboot/Cryptexes/OSlibclntsh.dylib' (no such file), '/usr/lib/libclntsh.dylib'
'(no such file, not in dyldcache), 'libclntsh.dylib' (no such file), '/usr/lib/libclntsh.dylib'
(no such file, not in dyld cache)". See https://oracle.github.io/odpi/doc/installation.html#macos for help

@johalnes
Copy link

I'm wondering about the same thing! Any progress?

@bnewman-tech
Copy link
Author

Good morning,

I wanted to talk a moment to follow up on this and see if it is possible to use the thin driver https://oracle.github.io/python-oracledb/?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants