Using FME 2025 and ArcPro 3.1.7 and the python environment located in C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3, (3.9.16) the python code below works.
Using FM 2025, and ArcPro 3.3.5 and the python environment C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3 (3.11.8), it fails to load the necessary DLLs when importing fmeobjects and crashes.
Switching back to ArcPro 3.1.7 it works again. Can anyone help me import fmeobjects using ArcPro 3.3.5? What am I missing?
import os
import sys
os.environ['PATH'] = r'C:\Program Files\FME' + os.pathsep + os.environ['PATH']
sys.path.append(r'C:\Program Files\FME\python')
try:
import fmeobjects
print(dir(fmeobjects))
runner = fmeobjects.FMEWorkspaceRunner()
except ImportError as e:
print(f"Error: {e}")