Skip to main content
Question

PythonFactory failed to load python symbol `FeatureProcessor'


Greetings,

I have selected the Esri ArcGIS Python 3.7 option, in Translation.

I am getting a Python symbol error??

Any ideas how to resolve this issue??

 

The error msg is:

PythonFactory failed to load python symbol `FeatureProcessor'
Factory proxy not initialized
PythonCaller_2 (PythonFactory): PythonFactory failed to process feature
PythonCaller_2 (PythonFactory): A fatal error has occurred. 

Regards,

Clive

 

 

 

6 replies

david_r
Evangelist
  • May 18, 2021

Check that the Python code in your PythonCaller or PythonCreator has either a function or a class with the name "FeatureProcessor" (case sensitive).


  • Author
  • May 18, 2021
david_r wrote:

Check that the Python code in your PythonCaller or PythonCreator has either a function or a class with the name "FeatureProcessor" (case sensitive).

Hi David,

This code used to work, it is suddenly throwing an error.

Regards,

Clive

import fme
 import fmeobjects
 import requests
 
 def processFeature(feature):
 
   resp = requests.post(FME_MacroValues['PortalURL']+"/Portal/sharing/rest/generateToken?f=pjson&client=referer&expiration=60", data={"username":FME_MacroValues['UserName'], "password":FME_MacroValues['password'], "referer":FME_MacroValues['PortalURL']+"/server/rest"})
 
   feature.setAttribute("response", str(resp.json()))

 


  • Author
  • May 18, 2021

I finally figured out what was throwing the error.

The class to process, had a type...

😨 Seriously

 


david_r
Evangelist
  • May 18, 2021
clives-bmh wrote:

I finally figured out what was throwing the error.

The class to process, had a type...

😨 Seriously

 

That's the most common reason for this error message, indeed :-)


harmen
Contributor
Forum|alt.badge.img+9
  • Contributor
  • November 24, 2022
clives-bmh wrote:

I finally figured out what was throwing the error.

The class to process, had a type...

😨 Seriously

 

@clives-bmh​ : I'm pretty new to Python and got the same error.

Can you explain / show what you mean with "The class to process, had a type' ?

Thanks!

 

(maybe @david_r​ , you can explain it?)


david_r
Evangelist
  • November 24, 2022
harmen wrote:

@clives-bmh​ : I'm pretty new to Python and got the same error.

Can you explain / show what you mean with "The class to process, had a type' ?

Thanks!

 

(maybe @david_r​ , you can explain it?)

Can you please post a screenshot of the PythonCaller configuration.


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