[Tutor] cx_oracle module problems

Alan Gauld alan.gauld at btinternet.com
Tue Oct 7 23:02:37 CEST 2008


"jeremiah" <jeremiah.jester at panasonic.aero> wrote

> port for Ubuntu. Is there one? Anyone know how to get this properly
> installed?
>
> # sudo python setup.py install
>  File "/usr/lib/python2.5/UserDict.py", line 22, in __getitem__
>    raise KeyError(key)
> KeyError: 'ORACLE_HOME'

Given the error message, do you have ORACLE_HOME defined
as an environment variable for the user account running the script??

Assuming you have Oracle installed on the box you should have
it defined at least for the Oracle admin user ID if not for everyone.
If so try running the script as that user.

HTH,

-- 
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld 




More information about the Tutor mailing list