I will add an answer to @froZieglers. When I came to the cx_Oracle page, there wasnβt "... Unicode ..." - an option to download. Fortunately, compiling it from the source was not a big problem, I expected.
Here's a summary of what I did (Ubuntu 12.04 LTS, 64 bit):
- Install a suitable Oracle XE rpm client server with a foreign one (11g, 64bit, etc.).
- it sets th
/u01/... , I needed to adjust .profile too.
- download cx_Oracle source-tar , untar, cd to
- I made the
ln -s command in so-lib on Oracle, as said in the BUILD text file
- Set Python headers with
sudo aptitude install python-dev - Compile with
python setup.py build - Install using
sudo python setup.by install- First attempt failed with
distutils.errors.DistutilsSetupError: cannot locate an Oracle software installation - fixed
setup.py with setting userOracleHome = "/u01/app/oracle/product/11.2.0/xe" after os.getenv("ORACLE_HOME") sudo python setup.by install then worked
- Check with
python -c 'import cx_Oracle' .
source share