it took me 2 days to solve the error which i was getting while importing
cx_Oracle
error was
ImportError: /lib/libc.so.6: version `GLIBC_2.4' not found (required by
/usr/lib/python2.3/lib-dynload/cx_Oracle.so)
Solution on Debian
1) apt-get install python2.3-dev (to get config files )
2) set the ORACLE_HOME path on debian root user ( i put in .bashrc file)
ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
(as i installed oracle 10 g on my debian machine)
3) i downloaded the source from
http://www.cxtools.net/default.aspx?nav=cxorlb
(Source code only)
4) tar xvzf cx_Oracle-4.2.tar.gz
5) cd cx_Oracle-4.2
6) python setup.py build
7)python setup.py install
8) on my machine it loaded the file "cx_Oracle.so" at
/usr/lib/python2.3/site-packages
9) but my python module path was at /usr/lib/python2.3/lib-dynload/
so i copied cx_Oracle.so at the above location
cp /usr/lib/python2.3/site-packages/cx_Oracle.so
/usr/lib/python2.3/site-packages
then it worked fine
Mukhtar (maw...@gm...)
|