So I have an FME workflow i need to run on a linux machine. I've managed to get the FME engine installed and i can run workbenches via the command line, however when i try to run a python script to run my workbench i get the following error:
ImportError: libfmeobj.so: cannot open shared object file: No such file or directory
Does anyone have any experience running FME workspaces via python on ubuntu?
I've copied my python script from a previous post from Ken's. Although i have a small amendment to check the OS which the script is being run on:
import sys, os, platform
# Set variables based on operating system:
operating_system = platform.system()
if operating_system == "Windows":
sys.path.append("C:\\Program Files\\FME\\fmeobjects\\python27")
directory = "E:\FME_Workbenches\PythonTesting"
else:
sys.path.append("/opt/fme/fmeobjects/python27")
directory = "/opt/PythonTesting/"
import fmeobjects
#initiate FMEWorkspaceRunner Class
runner = fmeobjects.FMEWorkspaceRunner()
#Full path to Workspace, example comes from the FME 2014 Training Full Dataset
workspace = directory + "\PythonShutdownScript.fmw"
print(workspace)
The above works fine on a windows machine...not so much on ubuntu...am i missing files?
Cheers
Hugh