Skip to main content
Question

Python error for DateTimeCalculator

  • February 3, 2020
  • 1 reply
  • 8 views

jhu_20
Contributor
Forum|alt.badge.img+4

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

1 reply

ebygomm
Influencer
Forum|alt.badge.img+38
  • Influencer
  • February 3, 2020

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings