Skip to main content
Solved

Problems with python interpreter

  • May 19, 2025
  • 2 replies
  • 59 views

mr_fme
Enthusiast
Forum|alt.badge.img+9

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::py::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

Best answer by mr_fme

@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!

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

hkingsbury
Celebrity
Forum|alt.badge.img+64
  • Celebrity
  • May 19, 2025

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


mr_fme
Enthusiast
Forum|alt.badge.img+9
  • Author
  • Enthusiast
  • Best Answer
  • May 19, 2025

@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!