Skip to main content
Question

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

  • July 14, 2023
  • 1 reply
  • 48 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

weihong
Contributor
Forum|alt.badge.img+1
  • Contributor
  • April 2, 2024

same problem. Have you solved it?


Reply


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