Skip to main content

I have followed the instructions in the below post to run a workspace from python.

https://community.safe.com/s/article/run-an-fme-workspace-from-python-using-fmeworkspac

After a bit of messing about appending the relevant paths I got the fmeobjects to import but when I try to initiate the FMEWorkspaceRunner class I get 'ERRORFMEException: 1: An error has occurred' with no other details.

 

Extract of code below:

import os

import sys

sys.path.append(r"C:\\Program Files\\ArcGIS\\Data Interoperability for ArcGIS Pro")

sys.path.append(r"C:\\Program Files\\ArcGIS\\Data Interoperability for ArcGIS Pro\\fmeobjects\\python39")

sys.path.append(r"C:\\Program Files\\ArcGIS\\Data Interoperability for ArcGIS Pro\\python")

sys.path.append(r"C:\\Program Files\\ArcGIS\\Data Interoperability for ArcGIS Pro\\python\\python39")

os.environn'FME_HOME'] = r"C:\\Program Files\\ArcGIS\\Data Interoperability for ArcGIS Pro"

os.environn'CONDA_DLL_SEARCH_MODIFICATION_ENABLE'] = str(1)

import datetime

import arcpy

import fmebootstrap

import fmeobjects

 

wsRunner = fmeobjects.FMEWorkspaceRunner()

 

I am using the ArcGIS Data Interoperability for ArcGIS Pro

same problem. Have you solved it?


Reply