Hello everybody,
Last year i was programing some scripts in python that use the FME module call fmeobjects. Now, I am using FME 2017 (last version) and I want to use these scripts but they show me some errors.
Before I put the following lines in my code to import the libraries:
fmePydPath = "C:\\apps\\FME\\fmeobjects\\python27" #Python FME
fmePath = "C:\\apps\\FME\\" #FME
if fmePydPath not in sys.path: sys.path.append(fmePydPath) #Try to add path
if fmePath not in sys.path: sys.path.append(fmePath) #Try to add path
Someone knows the directory for the new site? because I read that the directory is now in "C:\Program Files\FME" so i tried to put this code:
fmePydPath = "C:\\Program Files\\FME\\fmeobjects\\python27" #Python FME
fmePath = "C:\\Program Files\\FME\\" #FME
if fmePydPath not in sys.path: sys.path.append(fmePydPath) #Try to add path
if fmePath not in sys.path: sys.path.append(fmePath) #Try to add path
but i get the next error:
"ImportError: DLL load failed: %1 is not a valid win32 application."
Thanks for your help,
David M.