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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

cx_Oracle error when used in a cron job

700084Sep 19 2009 — edited Sep 21 2009
Hi everyone,
I've installed cx_Oracle and used it successfully in a number of python scripts, but it's throwing an error when I try to run one of those python scripts as a cron job.

Below is the traceback that I'm logging from the cronjob:
 
<<snipped>>
  import cx_Oracle
  File "build/bdist.linux-i686/egg/cx_Oracle.py", line 7, in <module>
  File "build/bdist.linux-i686/egg/cx_Oracle.py", line 6, in __bootstrap__
ImportError: libclntsh.so.11.1: cannot open shared object file: No such file or directory
Again, the script works fine if I run it manually (i.e. "python script.py"). I've googled around for hours and can't seem to figure this out.

Anyone have suggestions?
It's greatly appreciated.
Serdar

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Oct 19 2009
Added on Sep 19 2009
3 comments
11,294 views