oracle / python-cx_Oracle

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

importing problem #643

Closed likhithpindi1 closed 1 year ago

likhithpindi1 commented 1 year ago
  1. What versions are you using? 11g
  1. Describe the problem

D:\DBS>python -m pip install cx_Oracle --upgrade Requirement already satisfied: cx_Oracle in c:\users\likhi\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (8.3.0)

problem:

import cx_Oracle Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'cx_Oracle'

  1. Show the directory listing where your Oracle Client libraries are installed (e.g. the Instant Client directory). Is it 64-bit or 32-bit? C:\oraclexe\app\oracle\product\11.2.0\server

  2. Show what the PATH environment variable (on Windows) or LD_LIBRARY_PATH (on Linux) is set to? path :C:\oraclexe\app\oracle\product\11.2.0\server

  3. Show any Oracle environment variables set (e.g. ORACLE_HOME, ORACLE_BASE)

C:\oraclexe\app\oracle\product\11.2.0\server

cjbj commented 1 year ago

Can you show us two consecutive python calls in the same terminal window, the first doing the install and the second where you call 'import cx_Oracle'. If you are not running the second python call in the same terminal, please share how you are running it.

Other comments:

stale[bot] commented 1 year ago

This issue has been automatically marked as inactive because it has not been updated recently. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 1 year ago

This issue has been automatically closed because it has not been updated for a month.