Closed KulagaIvan closed 3 years ago
Hi,
It looks like a duplicate of https://github.com/slgobinath/gcalendar/issues/6 Can you try installing the dateutil using the following command:
pip3 install -U python-dateutil
Thnx. Everything working now.
gcalendar --debug Failed to connect Google Calendar Traceback (most recent call last): File "/usr/bin/gcalendar", line 11, in
load_entry_point('gcalendar==0.4', 'console_scripts', 'gcalendar')()
File "/usr/lib/python3/dist-packages/gcalendar/main.py", line 213, in main
handle_error(ex, "Failed to connect Google Calendar", args.output, args.debug)
File "/usr/lib/python3/dist-packages/gcalendar/main.py", line 86, in handle_error
raise error
File "/usr/lib/python3/dist-packages/gcalendar/main.py", line 187, in main
calendar_events = g_calendar.list_events(selected_calendars, start_time, end_time, time_zone)
File "/usr/lib/python3/dist-packages/gcalendar/gcalendar.py", line 90, in list_events
start_time, end_time, time_zone)
File "/usr/lib/python3/dist-packages/gcalendar/gcalendar.py", line 113, in retrieve_events
start_date_time = parser.isoparse(event["start"]["dateTime"]).astimezone(time_zone)
AttributeError: module 'dateutil.parser' has no attribute 'isoparse'