I have a PythonCaller with a script using the unumerate function.
In my Python IDE, it works fine. In my FME project on my laptop either.
But, when I copy it in a FME project on another computer (VM actually), the enumerate line seems to be passed without an error message.
finalFieldListOutput = r]
with open('formDataOutput.txt') as myFile:
logger.logMessageString("2dans le with IIIIIIIIIIIIIIII")
for number, line in enumerate(myFile, 1):
logger.logMessageString("2dans le for OOOOOOOOOOOOOOOOO")
if 'FieldName:' in line:
logger.logMessageString("2dans le if FFFFFFFFFFFFFFFF")
In the FME logger, there is just "2dans le with IIIIIIIIIIIIIIII".
In all the situation, I'm using Python 2.7. So I cannot see where is the problem.