Question

Python Exception <ModuleNotFoundError>: No module named 'cx_Oracle'

  • 23 April 2021
  • 4 replies
  • 56 views

Hi,

 

I am migrating FME 2017 workspace to 2020 version.

 

in startup script, python script is having import cx_Oracle statement.

 

when i published the workspace on FME Server 2020 version, i get below error.

 

Python Exception <ModuleNotFoundError>: No module named 'cx_Oracle'

 

please share your ideas to fix it.

 


4 replies

Userlevel 4

You'll have to install this module into your FME Server installation, as it is not included. See

If you need a pre-compiled version for Windows, you can find it here: https://www.lfd.uci.edu/~gohlke/pythonlibs/#cx_oracle Take special care to observe the Python version and 32- vs 64-bit versions, both have to match exactly with the Python version you'll be using on FME Server.

You'll have to install this module into your FME Server installation, as it is not included. See

If you need a pre-compiled version for Windows, you can find it here: https://www.lfd.uci.edu/~gohlke/pythonlibs/#cx_oracle Take special care to observe the Python version and 32- vs 64-bit versions, both have to match exactly with the Python version you'll be using on FME Server.

Thanks David for your quick response. Let me try it and share an update.

One question: when i was isntalling FMEsever, there was an option to check python interpreter along with FMEServer. will it help, if i select that and install the FME?

 

You'll have to install this module into your FME Server installation, as it is not included. See

If you need a pre-compiled version for Windows, you can find it here: https://www.lfd.uci.edu/~gohlke/pythonlibs/#cx_oracle Take special care to observe the Python version and 32- vs 64-bit versions, both have to match exactly with the Python version you'll be using on FME Server.

Hi @david_r​ ,

i have executed below command, but still not finding any .pyc files related to cx_oracle package. Any suggestions on my approach?

python -m pip install cx_Oracle --target C:\\Users\\<user>\\Documents\\FME\\Plugins\\Python

Reply