Skip to main content

I have an older script that will no longer execute importing pyfme. Any suggestions as to why?

 

Log translation details below:

FME_END_PYTHON: evaluating python script from string...

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

Error executing string `import pyfme

 

Shutdown Python Script details:

That's old, yes :)

The pyfme lib no longer exists. Replace it for fme instead (and for PythonCaller scripts, you'll need fmeobjects).

Also replace pyfme.FME_MacroValues with fme.macroValues. Don't know if your code block above shows all usages of pyfme, but after the replacement, it should work for this part.

Sander


That's old, yes :)

The pyfme lib no longer exists. Replace it for fme instead (and for PythonCaller scripts, you'll need fmeobjects).

Also replace pyfme.FME_MacroValues with fme.macroValues. Don't know if your code block above shows all usages of pyfme, but after the replacement, it should work for this part.

Sander

Thank you! I thought as much, but was having a hard time finding the replacement information you provided. Much appreciated Sander.


Reply