From 7dc0a5740e6f629d995e5e9e9169b5c0efb36113 Mon Sep 17 00:00:00 2001 From: Chris Woo Date: Mon, 22 Aug 2022 18:19:34 -0700 Subject: [PATCH] Upgrade python-dateutil for py3.9 support (#32) Was getting this error in the dateutil lib ``` Traceback (most recent call last): File "/Users/cwoo/src/opsreview/pull_alerts.py", line 230, in print_all_incidents( File "/Users/cwoo/src/opsreview/pull_alerts.py", line 82, in print_all_incidents formatted_incidents = get_formatted_incidents(recent_incidents) File "/Users/cwoo/src/opsreview/pull_alerts.py", line 127, in get_formatted_incidents formatted_incident.created_on = dateutil.parser.parse(incident.created_at).astimezone(LOCAL_TZ) File "/Users/cwoo/src/opsreview/venv/lib/python3.10/site-packages/dateutil/parser.py", line 1008, in parse return DEFAULTPARSER.parse(timestr, **kwargs) File "/Users/cwoo/src/opsreview/venv/lib/python3.10/site-packages/dateutil/parser.py", line 410, in parse if (isinstance(tzinfos, collections.Callable) or AttributeError: module 'collections' has no attribute 'Callable' ``` Upgrading the lib resolves it --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 7f658e0..b5caeae 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ pygerduty==0.38.3 -python-dateutil==2.4.2 +python-dateutil==2.8.2 prettytable==2.5.0