Skip to main content
Solved

No module named 'pyfme' error

  • March 13, 2019
  • 2 replies
  • 71 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:

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

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.

2 replies

geosander
Forum|alt.badge.img+7
  • 327 replies
  • 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
  • 1 reply
  • 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

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