nipyapi icon indicating copy to clipboard operation
nipyapi copied to clipboard

UnknownTimezoneWarning: tzname EDT identified but not understood

Open automationfirst opened this issue 6 years ago • 5 comments

  • Nipyapi version: 0.13
  • NiFi version: nifi-1.8.0-RC3
  • NiFi-Registry version: NA
  • Python version: 3.7.4
  • Operating System: Windows 2008 Server

Description

I was trying to get the state information of QueryDatabaseTables processor for each of the ProcessGroups on the NiFi Cluster.

NiFi cluster nodes are using EDT timezone. I'm not sure what all issues we might see,if we change the timezone on the NiFi cluster to UTC.

Below is the error I'm seeing.

UnknownTimezoneWarning: tzname EDT identified but not understood. Pass tzinfos argument in order to correctly return a timezone-aware datetime. In a future version, this will raise an exception.

Urgency

This is an urgent issue as the development work is stopped. Updating the state information for each of the processor will be a tedious task

automationfirst avatar Aug 26 '19 09:08 automationfirst

Please describe the exact commands used and the full output, there is not enough information here for me to replicate.

On Mon, 26 Aug 2019, 10:23 automationfirst, [email protected] wrote:

  • Nipyapi version: 0.13
  • NiFi version: nifi-1.8.0-RC3
  • NiFi-Registry version: NA
  • Python version: 3.7.4
  • Operating System: Windows 2008 Server

Description

I was trying to get the state information of QueryDatabaseTables processor for each of the ProcessGroups on the NiFi Cluster.

NiFi cluster nodes are using EDT timezone. I'm not sure what all issues we might see,if we change the timezone on the NiFi cluster to UTC.

Below is the error I'm seeing.

UnknownTimezoneWarning: tzname EDT identified but not understood. Pass tzinfos argument in order to correctly return a timezone-aware datetime. In a future version, this will raise an exception. Urgency

This is an urgent issue as the development work is stopped. Updating the state information for each of the processor will be a tedious task

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Chaffelson/nipyapi/issues/146?email_source=notifications&email_token=ACZAZOHVXWOKI2JTVBCT3PLQGOOKZA5CNFSM4IPNVWPKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HHKT46A, or mute the thread https://github.com/notifications/unsubscribe-auth/ACZAZOAKOIJEOCMYYLTFZQLQGOOKZANCNFSM4IPNVWPA .

Chaffelson avatar Aug 26 '19 19:08 Chaffelson

The command I was running is. We have lot many process groups deployed onto canvas, say > 400 process groups. Also the timezone the node was configured it in EDT.

nipyapi.canvas.list_all_process_groups(pg_id = 'root')

automationfirst avatar Aug 31 '19 07:08 automationfirst

Sorry.. the command I was executing is nipyapi.canvas.list_all_processors(pg_id = 'root')

automationfirst avatar Sep 04 '19 10:09 automationfirst

Ok, can you please provide me the full context of the output this message is appearing in - without an environment matching yours I do not see this message. All my environments run in UTC if that helps you.

Chaffelson avatar Sep 05 '19 03:09 Chaffelson

I get these messages. But does not effect my development.

C:\Users$user\AppData\Local\Continuum\anaconda3\lib\site-packages\dateutil\parser_parser.py:1204: UnknownTimezoneWarning: tzname CDT identified but not understood. Pass tzinfos argument in order to correctly return a timezone-aware datetime. In a future version, this will raise an exception. category=UnknownTimezoneWarning)

To reproduce above, I ran (nipyapi.canvas.get_processor("$Processor_name"))

rajarshnaidu avatar Oct 11 '19 19:10 rajarshnaidu

Closing as old, please reopen if the issue persists

Chaffelson avatar Oct 22 '23 10:10 Chaffelson