File tree Expand file tree Collapse file tree 4 files changed +8
-10
lines changed
Expand file tree Collapse file tree 4 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 133133# set lib_dir; instead set LD_LIBRARY_PATH or configure ldconfig before running
134134# Python.
135135lib_dir = None
136- if platform .system () == "Darwin" and platform . machine () == "x86_64" :
136+ if platform .system () == "Darwin" :
137137 lib_dir = os .environ .get ("HOME" ) + "/Downloads/instantclient_19_8"
138138elif platform .system () == "Windows" :
139139 lib_dir = r"C:\oracle\instantclient_19_14"
Original file line number Diff line number Diff line change @@ -209,9 +209,7 @@ def get_admin_connection():
209209
210210
211211def get_oracle_client ():
212- if (
213- platform .system () == "Darwin" and platform .machine () == "x86_64"
214- ) or platform .system () == "Windows" :
212+ if platform .system () == "Darwin" or platform .system () == "Windows" :
215213 return get_value (
216214 "PYO_SAMPLES_ORACLE_CLIENT_PATH" , "Oracle Instant Client Path"
217215 )
Original file line number Diff line number Diff line change @@ -1807,9 +1807,9 @@ <h4> 10.1 Review the Oracle Client library path</h4>
18071807if platform.system() == "Windows":
18081808 instant_client_dir = r"C:\Oracle\instantclient_19_14"
18091809
1810- # On macOS (Intel x86) set the directory to your Instant Client directory
1811- if platform.system() == "Darwin" and platform.machine() == "x86_64" :
1812- instant_client_dir = os.environ.get("HOME")+"/Downloads/instantclient_19_8 "
1810+ # On macOS set the directory to your Instant Client directory
1811+ if platform.system() == "Darwin":
1812+ instant_client_dir = os.environ.get("HOME")+"/Downloads/instantclient_23_3 "
18131813
18141814# You must always call init_oracle_client() to use thick mode
18151815oracledb.init_oracle_client(lib_dir=instant_client_dir)</ pre >
Original file line number Diff line number Diff line change 4444if platform .system () == "Windows" :
4545 instant_client_dir = r"C:\Oracle\instantclient_19_14"
4646
47- # On macOS (Intel x86) set the directory to your Instant Client directory
48- if platform .system () == "Darwin" and platform . machine () == "x86_64" :
47+ # On macOS set the directory to your Instant Client directory
48+ if platform .system () == "Darwin" :
4949 instant_client_dir = (
50- os .environ .get ("HOME" ) + "/Downloads/instantclient_19_8 "
50+ os .environ .get ("HOME" ) + "/Downloads/instantclient_23_3 "
5151 )
5252
5353# You must always call init_oracle_client() to use thick mode in any platform
You can’t perform that action at this time.
0 commit comments