Question

Hi, Has anyone else had issue initiating the FMEWorkspaceRunner class in python 3.9?

  • 14 July 2023
  • 1 reply
  • 14 views

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.environ['FME_HOME'] = r"C:\\Program Files\\ArcGIS\\Data Interoperability for ArcGIS Pro"

os.environ['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


1 reply

Badge +1

same problem. Have you solved it?

Reply