Skip to main content
Solved

FME Python startup script - module not found error

  • August 24, 2021
  • 1 reply
  • 199 views

gis_person

I have been tasked with reviewing another person's FME workbench, which contains a Python start-up script.

 

When I try and run this script (from a PythonCaller transformer) I am receiving the following error i.e. Python Exception <ModuleNotFoundError>: No module named 'fmeutilities' and

ERROR |Error executing string `#global scope variable definitions / initialisations.

 

The script is trying to import the modules 'fmeutilities' and 'fmeoutput' amongst others, which cannot be found on the server that the workbench is running on.

 

I'm not sure if these need to be added via a localised install of Python or not? I can find an fmeobjects module on my server i.e. in the C:\\Program Files\\FME\\fmeobjects\\python37 folder) but non of the other modules the script is trying to import.

 

I am using FME Desktop v2021.1 and the workspace python compatibility setting is set to Python 2.7 and 3 (see attached screenshots for more information).

 

If someone can assist and explain why the error may be occurring that would be much appreciated.

Best answer by david_r

Honestly it looks like you're missing these Python modules that, as far as I can tell, are not part of a standard FME installation. You should probably approach the developer of the workspace and ask for the necessary modules.

View original
Did this help you find an answer to your question?

1 reply

david_r
Celebrity
  • Best Answer
  • August 24, 2021

Honestly it looks like you're missing these Python modules that, as far as I can tell, are not part of a standard FME installation. You should probably approach the developer of the workspace and ask for the necessary modules.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings