0

I'm using the code linked below to convert ICS files to csv, and one particular calendar gives me

"Traceback (most recent call last): File "ical2csv.py", line 126, in sortedevents = sorted(formatted_events, key=lambda obj: obj.start) TypeError: can't compare offset-naive and offset-aware datetimes"

Is there a way to fix this? I've seen multiple events in the ICS with TZOFFSETTO/TZOFFSETFROM with various timezones, and from what I've found in other questions the problem seems to be timezones aren't defined somewhere, but I'm not very experienced with python.

https://github.com/erikcox/ical2csv/pull/15/commits/8172b653ac24f55be2832950968b3cb5d8755059

FObersteiner
  • 22,500
  • 8
  • 42
  • 72
  • For findability of the question, please add relevant tags such as `python` (I have done so for you now). Also, could you add exemplary data so the problem can be reproduced? – FObersteiner Oct 09 '22 at 10:18

0 Answers0