Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

cx_Oracle installation on Windows - silent failure

103122Jun 26 2009 — edited Dec 19 2009
I just had a surprisingly hard time getting cx_Oracle 5.0.2 installed on a new Vista machine (with Oracle Client 11.1.0.7, Python 2.6) using the windows .msi installer. Eventually, I managed to get it installed only when all the following were true:

- Running as Administrator
- ORACLE_HOME set in Environment Variables (Computer => Properties => Advanced System Settings). Simply issuing "set ORACLE_HOME=c:\app\product\11.1.0\client_1" from the command prompt does not seem to do it.
- Any previous failed installations must be removed, not simply repaired.

If any of these are not true, the installation still appears to work - the installer runs and completes without complaint. Trying to actually "import cx_Oracle", however, gives

ImportError: No module named cx_Oracle

I'm posting this here because, without an error message from the installer or any mention in the documentation or the README, this seems like the sort of sneaky problem that could make newbie Python users quit in frustration. (Also, I'll be able to find it here myself...)

Edited by: catherinedevlin on Jun 26, 2009 11:50 AM

Edited by: catherinedevlin on Jun 26, 2009 1:50 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 16 2010
Added on Jun 26 2009
6 comments
18,587 views