-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with datetime #38
Comments
Based on the exception text it could be something going wrong inside the icalevents package that the script uses to parse iCal sources. If you can share a minimal example of the source that is producing the error I'd be happy to take a look at it and see if I can find the root cause. Also if you can tell me which Python version and platform you're running the script on that would be useful to know. |
Hi, on python 3.9.2 Ill work on a dataset that I can send over |
Not sure if we are looking at the same cause, but I get the same error from an .ics where the DTSTART timezone is recognized (hence offset-aware) but the DTEND timezone is defined only in a VTIMEZONE component that appears in the .ics after the reference to it (and therefore icalendar ignores the timezone altogether and renders it offset-naive). Basically, it appears that icalendar.Component.from_ical( ) cannot cope with forward references to VTIMEZONEs. I think the fix to icalendar is not hard, but I can't get its out-of-the-box test cases to run successfully so I haven't gotten very far with that. |
Hello,
Trying installing the script for the first time today. Getting this error in the logs:
Error retrieving iCal data (can't compare offset-naive and offset-aware datetimes)
Any thoughts?
The text was updated successfully, but these errors were encountered: