Skip to main content

I have old workspace and received the following Python error message after upgraded to FME 2019.2 and didn't install any Python 2.x. Any suggestion for getting around the issue ? Thanks.

Python Exception <NameError>: name 'unicode' is not defined

Traceback (most recent call last):

File "<string>", line 26, in input

NameError: name 'unicode' is not defined

Error encountered while calling method `input'

DateTimeCalculator_2_PythonCaller (PythonFactory): PythonFactory failed to process feature

A fatal error has occurred. Check the logfile above for details

Is this the custom "DateTimeCalculator"? If so, the best way forward would be to replace with the native DateTimeCalculator

 

There is information here about the change that needs to be made to avoid the python error if for some reason you need to keep the custom transformer

 

https://hub.safe.com/publishers/pacific-spatial-solutions/transformers/datetimecalculator#comments


Reply