Hi.
I've just encountered a mysterious error in a PythonCaller in a workspace :
2018-11-07 20:17:02| 811.7| 3.9|WARN |Python Exception <NameError>: global name 'feature' is not defined2018-11-07 20:17:02| 811.7| 0.0|WARN |Traceback (most recent call last):
File "<string>", line 16, in input
NameError: global name 'feature' is not defined
2018-11-07 20:17:02| 811.7| 0.0|ERROR |Error encountered while calling method `input'
2018-11-07 20:17:36| 843.3| 31.5|FATAL |Delete_temp_file(PythonFactory): PythonFactory failed to process feature
The problem is, that my code in the "Delete_temp_file" PythonCaller transformer doesn't have any variable named "feature" in it (I renamed it from the template's "feature" to "ft") :
import fmeimport fmeobjects
import os
class FeatureProcessor(object):
def __init__(self):
pass
def input(self,ft):
try:
pass
pthnam = ft.getAttribute('tile_temppath')
os.remove(pthnam)
except:
pass
self.pyoutput(ft)
def close(self):
pass
Is the error resulting variable "feature" something that's hardcoded behind the scene ?
Cheers