0
I have schedule a Jenkins Job that executes a python script with a query to Oracle database. But the job returns the following error:
import cx_Oracle
ModuleNotFoundError: No module named 'cx_Oracle'
I have to say, the same script works when it is launched from command line, but it seems Jenkins cannot import cx_Oracle
.
How can I fix it?
At a guess, Jenkins is using a different version or installation of Python than your command line. You need to tell Jenkins to use the correct version of Python that has
cx_Oracle
installed . – Anaksunaman – 2019-06-28T05:53:57.353