0

I downloaded the Oracle Instant Client and specified the Path in environment variable as in the first screenshot. enter image description here

cx_Oracle is imported successfully as shown in the second screenshot. enter image description here

I was trying to connect to Oracle DB hosted in AWS using the code as below: enter image description here

The log message returns:

32-bit Oracle Client library cannot be loaded: "The specified module could not be found".

Is my argument for cx_Oracle.connect or my path in the environment variables wrong? Python, WHL and Instant Client are all 32-bits.

agrm
  • 3,735
  • 4
  • 26
  • 36
Alen Liu
  • 1
  • 1
  • 1
  • I've embedded your images into your post. Just a friendly tip: Write code, commands and error messages as text, not as images. As you can see, the text in your images is pretty much unreadable. :o) – agrm Dec 26 '17 at 01:06
  • This happened the same with me with Oracle on Linux. Follow the link in the error which maintains further instructions per operating system. – Parfait Dec 26 '17 at 03:14

2 Answers2

0

From you’re screenshot you seem to use a 32bits python, if yes you also need to use a 32bits Oracle Instant client. Here you’re 32bits Python try to find 32bits oracle libraries and can’t find them.

Cyrille MODIANO
  • 2,246
  • 2
  • 21
  • 33
0

Oracle Instant Client require the presence of the correct Visual Studio redistributable according to documentation of installation: https://oracle.github.io/odpi/doc/installation.html#windows. Please check dependences dlls of oci.dll on your system.

karol
  • 380
  • 1
  • 5
  • 16