Skip to main content
Solved

No module named 'pyfme' error


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:

Best answer by geosander

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

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

2 replies

geosander
Forum|alt.badge.img+7
  • Best Answer
  • March 13, 2019

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


  • Author
  • March 13, 2019
geosander wrote:

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.


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