Solved

No module named 'pyfme' error

  • 13 March 2019
  • 2 replies
  • 11 views

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:

icon

Best answer by geosander 13 March 2019, 22:03

View original

2 replies

Badge +7

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