Skip to main content
Question

Arcpy in FME Desktop

  • September 28, 2021
  • 1 reply
  • 44 views

mr_fme
Enthusiast
Forum|alt.badge.img+9

hello, i would like to run several python scripts, using the arcpy library inside FME, what have i done so far? I just created published parameters and insert the values of the variables I need, but I'm not able to execute. See attached log. What do I need to set up correctly?

1 reply

debbiatsafe
Safer
Forum|alt.badge.img+20
  • Safer
  • September 29, 2021

Hi @mr_fme​ 

Have you checked out the article on using ArcPy with FME? Based on the logfile, it appears the default value (Python 3.8+) is set for the workspace parameter Python Compatibility. As noted in the article, you will need to set this parameter to the interpreter that is installed by ArcGIS.

In addition, the error in the log file is not an ImportError (as would be the case if arcpy cannot be found) but instead is a SyntaxError. You would need to correct the syntax error(s) before the script can run successfully.


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