Hi.
I am trying to run a fme workspace using python 3.7, but I always get:
AttributeError: module 'fmeobjects' has no attribute 'FMEWorkspaceRunner' .
In the script I added dir(fmeobjects) and I get:
>'__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__']
I have read several treads in the forum but I cannot found any reason why I don't get all the attributes in fmeobjects. Neither how to solve it. Is my script incomplete? Is there a bug somewhere? Any suggestions?
My python compiler is Anaconda => Spyder (Python 3.7)
My script is:
import sys
sys.path.append(r"C:\\Program Files\\FME\\fmeobjects\\python37")
import fmeobjects
print(dir(fmeobjects))
workspace = r"C:\\Users\\Fredr\\OneDrive\\Documents\\FME\\Workspaces\\Delay.fmw"
runner = fmeobjects.FMEWorkspaceRunner.run(workspace)