Skip to main content
Solved

Problems with python interpreter


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!

View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, 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+55
  • 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!


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