You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug khal import path/to/ics fails with: module 'icalendar' has no attribute 'windows_to_olson'
If applicable: Stack Trace
module 'icalendar' has no attribute 'windows_to_olson'
Traceback (most recent call last):
File "/usr/lib/python3.12/site-packages/khal/controllers.py", line 613, in import_ics
vevents = split_ics(ics, random_uid, conf['locale']['default_timezone'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/khal/icalendar.py", line 59, in split_ics
if item['TZID'] in icalendar.windows_to_olson.WINDOWS_TO_OLSON:
^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'icalendar' has no attribute 'windows_to_olson'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.12/site-packages/khal/cli.py", line 464, in import_ics
controllers.import_ics(
File "/usr/lib/python3.12/site-packages/khal/controllers.py", line 615, in import_ics
raise FatalError(error)
khal.exceptions.FatalError: module 'icalendar' has no attribute 'windows_to_olson'
To Reproduce
Steps to reproduce the behavior:
`khal import
Expected behavior
khal should import the ics without failing
OS, version, khal version and how you installed it:
The output of khal --version: khal, version 0.11.3
Installation method [e.g. PyPI, git, OS repo]: distro repo
Describe the bug
khal import path/to/ics
fails with:module 'icalendar' has no attribute 'windows_to_olson'
If applicable: Stack Trace
To Reproduce
Steps to reproduce the behavior:
`khal import
Expected behavior
khal should import the ics without failing
OS, version, khal version and how you installed it:
my redacted config file
pip freeze
]Additional context
Here's an ics that fails, I've validated it with https://icalendar.org/validator.html :
The text was updated successfully, but these errors were encountered: