Skip to main content
Question

Python error for DateTimeCalculator

  • February 3, 2020
  • 1 reply
  • 12 views

jhu_20
Contributor
Forum|alt.badge.img+7

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

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

ebygomm
Influencer
Forum|alt.badge.img+46
  • 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