Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

data-diff does not work on M1 Mac for Oracle driver #633

Closed
koenvb opened this issue Jun 29, 2023 · 2 comments
Closed

data-diff does not work on M1 Mac for Oracle driver #633

koenvb opened this issue Jun 29, 2023 · 2 comments
Labels
bug Something isn't working stale_immune Immunity to stale bot

Comments

@koenvb
Copy link

koenvb commented Jun 29, 2023

Describe the bug
When running an oracle connection on M1 mac. it cannot find the oracle drivers.

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),     __main__.py:326
                  '/Users/koen.vanbesien/.asdf/installs/python/3.10.12/lib/libclntsh.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/koen.vanbesien/.asdf/installs/python/3.10.12/lib/libclntsh.dylib' (no
                  such file), '/opt/homebrew/lib/libclntsh.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/lib/libclntsh.dylib' (no such file),
                  '/Users/koen.vanbesien/.asdf/installs/python/3.10.12/lib/libclntsh.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/koen.vanbesien/.asdf/installs/python/3.10.12/lib/libclntsh.dylib' (no
                  such file), '/opt/homebrew/lib/libclntsh.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/lib/libclntsh.dylib' (no such file),
                  '/Users/koen.vanbesien/.asdf/installs/python/3.10.12/lib/libclntsh.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/koen.vanbesien/.asdf/installs/python/3.10.12/lib/libclntsh.dylib' (no
                  such file), '/opt/homebrew/lib/libclntsh.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/lib/libclntsh.dylib' (no such file),
                  '/Users/koen.vanbesien/.asdf/installs/python/3.10.12/lib/libclntsh.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/koen.vanbesien/.asdf/installs/python/3.10.12/lib/libclntsh.dylib' (no
                  such file), '/opt/homebrew/lib/libclntsh.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/lib/libclntsh.dylib' (no such file), '/opt/homebrew/lib/libclntsh.dylib' (no such file),
                  '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/lib/libclntsh.dylib' (no such file), '/usr/lib/libclntsh.dylib' (no such file, not in dyld cache), 'libclntsh.dylib' (no such file),
                  '/usr/local/lib/libclntsh.dylib' (no such file), '/usr/lib/libclntsh.dylib' (no such file, not in dyld cache)". See https://cx-oracle.readthedocs.io/en/latest/user_guide/installation.html for help

Describe the environment

Mac M1 Ventura 13.4

** Solution **

Adapt the oracle.py file with the proposed changes here

https://python-oracledb.readthedocs.io/en/latest/user_guide/appendix_c.html#steps-to-upgrade-to-python-oracledb

I edited it like this and it worked

@import_helper("oracle")
def import_oracle():
    #import cx_Oracle
    import oracledb as cx_Oracle
    return cx_Oracle`

Not sure if you can add this by default to the oracle.py driver?

@koenvb koenvb added the bug Something isn't working label Jun 29, 2023
@dlawin dlawin removed the triage label Jul 10, 2023
@dlawin dlawin added the stale_immune Immunity to stale bot label Aug 4, 2023
@dlawin
Copy link
Contributor

dlawin commented Aug 4, 2023

@koenvb could you open a PR with your proposed change?

@glebmezh
Copy link
Contributor

Hi @koenvb,

I'm sorry for the delay in following up on this. Thank you for taking the time to raise this issue!

We made a hard decision to sunset the data-diff package and won't provide further development or support.

Data diffing continues to be provided and has evolved in the Datafold Cloud.

-Gleb

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working stale_immune Immunity to stale bot
Projects
None yet
Development

No branches or pull requests

3 participants