Skip to main content
Solved

Python creator "outdated package" error

  • November 26, 2024
  • 4 replies
  • 29 views

poonam21
Contributor
Forum|alt.badge.img+7

Hi folks,

 

I’m trying to execute a python script using Python Creator. The flow is running as expected also with expected outcome, but its giving this error - 

I have checked the updates is FME package but still not working.

Not getting why this error is occuring.

 

If anyone has any idea about it, kindly help.

 

Thanks in advance.

 

 

 

 

 

Best answer by ebygomm

I’ve seen that message where the Class to Process Features entry doesn’t match what’s in the code window.

 

It doesn’t look like the code you are using is set up correctly for a pythoncreator, you would need something like this

 

import shutil
import os
from datetime import datetime

def FeatureCreator(feature):
    <code here>

 

View original
Did this help you find an answer to your question?

4 replies

david_r
Evangelist
  • November 26, 2024

Can you share a print screen of your PythonCreator, and perhaps also the code.


poonam21
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • November 26, 2024

Below is the python script.

 

 


ebygomm
Influencer
Forum|alt.badge.img+31
  • Influencer
  • Best Answer
  • November 26, 2024

I’ve seen that message where the Class to Process Features entry doesn’t match what’s in the code window.

 

It doesn’t look like the code you are using is set up correctly for a pythoncreator, you would need something like this

 

import shutil
import os
from datetime import datetime

def FeatureCreator(feature):
    <code here>

 


poonam21
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • November 26, 2024

Hey ​@ebygomm Got that!!

I was not using class in python script.

 

Thankyou so much.


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