Skip to main content
Solved

FME Python startup script - module not found error

  • August 24, 2021
  • 1 reply
  • 218 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.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

david_r
Celebrity
  • 8392 replies
  • 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.