oracle / python-cx_Oracle

Python interface to Oracle Database now superseded by python-oracledb
https://oracle.github.io/python-cx_Oracle
Other
888 stars 361 forks source link

Installing ODPI-C on Windows #32

Closed nstephenh closed 7 years ago

nstephenh commented 7 years ago

I am trying to use cx_Oracle but am having issues connecting to the Oracle client. Installation succeeded without any problems but when I import I get the error below which refers me to ODPI-C. The documentation of ODPI-C has no installation instructions, simply saying to “include” it in my project. Is this something I need to do and if so, how do I?

  1. What is your version of Python? Is it 32-bit or 64-bit? 32 bit Python 2.7
  2. What is your version of cx_Oracle? 6.0b2
  3. What is your version of the Oracle client (e.g. Instant Client)? How was it installed? Where is it installed? OracleClient 11-2-0-3 x86 r1-6 is installed to c:\oracle\product\11.2.0\client_1
  4. What is your OS and version? Windows 7
  5. What compiler version did you use? For example, with GCC, run I am not aware of having compiled anything
  6. What environment variables did you set? How exactly did you set them? I have not set any, and the bin directory of the OracleClient install was added to my path by the installation.
  7. What exact command caused the problem? Who were you logged in as? import cx_Oracle
  8. What error(s) you are seeing? DPI-1047: Oracle client cannot be loaded: The specified module could not be found. See HTTPS://Oracle.github.io/odpi/doc/installation.html for help.
nstephenh commented 7 years ago

Apparently my problem was that pycharm was not using he appropriate path. Sorry.