Skip to main content

Hi,

I had a script that was running perfectly in FME 2024.1. I upgraded to 2025.0, encountered some issues, and my script stopped working. I then reverted to the previous version, 2024.1. However, my script still doesn't work. When I run it in PyCharm using Python 3.10, it runs perfectly, but in FME I get the following error:

Message Type: fme::internal::_v0:🇵🇾:Exception
Python Exception <SyntaxError>: invalid syntax (functions.py, line 68)

In the FME options, I have the same paths set as before:

  • PYTHONHOME: C:\Users\XXXX\AppData\Local\Programs\Python\Python310

  • Interpreter: "C:\Users\xxxx\AppData\Local\Programs\Python\Python310\python310.dll"

What could be the issue? Could you please help me?

 

Thank´s

Can you share the script? Everything that’s in the python caller including the default FME stuff.

The error message is saying you have a syntax error on line 68

 

If its running fine in PyCharm, then that suggests it isn’t correctly written to work in FME. Python in FME needs to be wrapped in specific classes.
https://support.safe.com/hc/en-us/articles/25407578680077-PythonCaller-Transformer


@hkingsbury,

 

Thank´s your comment.

My problem was python 3.10 folder, specifically functions.py was corrupted.

I changed my python 3.10 folder to another location. 

Works fine!