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.
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.
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.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.