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!

Python

Raghav_DBAJul 16 2016 — edited Jul 19 2016

Hi

I am configuring python for oracle.

I have configured file ln -s libclntsh.so.12.1 libclntsh.so

Python version Python 2.7.5

I have installed python pip by using command python get-pip.py

i have set export LD_RUN_PATH=/u01/app/oracle/product/12.0.1/dbhome_1/instantclient_12_1

I have set Oracle home export ORACLE_HOME=/u01/app/oracle/product/12.0.1/dbhome_1

while install cx_Oracle in oracle user getting below error error

pip install cx_Oracle

Collecting cx_Oracle

  Using cached cx_Oracle-5.2.1.tar.gz

    Complete output from command python setup.py egg_info:

    Traceback (most recent call last):

      File "<string>", line 1, in <module>

      File "/tmp/pip-build-g5MJ3b/cx-Oracle/setup.py", line 162, in <module>

        raise DistutilsSetupError(messageFormat % userOracleHome)

    distutils.errors.DistutilsSetupError: Oracle home (/u01/app/oracle/product/12.0.1/dbhome_1/instantclient_12_1) does not refer to an 10g, 11g or 12c installation.

   

    ----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-g5MJ3b/cx-Oracle/

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 16 2016
Added on Jul 16 2016
1 comment
3,413 views