Question

Python - FMEException: -1: with FMEWorkspaceRunner


Hi Guys,

 

 

I am trying to use the FMEWorkspaceRunner and meeting the following issue:

 

 

>>> import fmeobjects

 

>>> runner = fmeobjects.FMEWorkspaceRunner()

 

Traceback (most recent call last):

 

  File "<interactive input>", line 1, in <module>

 

FMEException: FMEException: -1: 

 

 

So fmeobjects imports fine but I cannot use the fmeobjects.FMEWorkspaceRunner() method.

 

 

I have exhausted all the avenues I could take, so any help is greatly appeciated.

 

 

Cheers,

 

Glen

 

 

 

2 replies

Userlevel 4
Hi

 

 

that is a strange error that I cannot reproduce on my computer:

 

 

C:\\Program Files (x86)\\FME2015.1>fme python

 

>>> import fmeobjects

 

>>> runner = fmeobjects.FMEWorkspaceRunner()

 

>>> print runner

 

<fmeobjects.FMEWorkspaceRunner object at 0x05F510A0>

 

 

First of all I'd make sure that you have not changed the default Python interpreter in FME. If that doesn't help, verify that you have local admin rights on your computer and try again. Last resort would be to re-install FME.

 

 

David
Thanks for the feedback David. I tried re-installing FME but no luck. I tried running a Python script using ERDAS IMAGINE's API and getting strange activity there also. I have both installed on another machine and everything is working fine, so I would say that the issue is with my Python configuration and not related to FME. I tried uninstalling and re-installing Python but agaion no luck. If I ever figure it out I'll add the solution here.

Reply