Skip to main content
Solved

PythonFactory failed to load python symbol `FeatureProcessor'

  • February 20, 2018
  • 2 replies
  • 1349 views

kartemann

Hello,

I'm trying to use an external python library, Paramiko to perform some SFTP functionality. I am attempting to use a PythonCaller to run some python that I know works outside of FME. I have python 2.7x64bit installed. I'm running FME 2017.1x64 bit. My python interpreter is set as below:

Here is the PythonCaller configuration:

Here is the python script:

And here is the error:

I'm sure i'm goofing up something simple. Thank you for your help!

Best answer by takashi

Hi @adamradel, because your Python Script doesn't contain a class named 'FeatureProcessor'. If you intend to call the function 'processFeature' here, change the 'Class or Function to Process Features' parameter to the function name to be called.

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

2 replies

takashi
Influencer
  • Best Answer
  • February 21, 2018

Hi @adamradel, because your Python Script doesn't contain a class named 'FeatureProcessor'. If you intend to call the function 'processFeature' here, change the 'Class or Function to Process Features' parameter to the function name to be called.


kartemann
  • Author
  • February 21, 2018
takashi wrote:

Hi @adamradel, because your Python Script doesn't contain a class named 'FeatureProcessor'. If you intend to call the function 'processFeature' here, change the 'Class or Function to Process Features' parameter to the function name to be called.

 

Thank you very much @takashi! That did the trick.

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