CalDAV sync not working
Description:
When using CalDAV as the sync source, the program is stuck on "First synchronization". Running it from the terminal gave out the following error:
[INFO] Sync: Sync tasks with remote
Exception in thread Thread-1 (sync):
Traceback (most recent call last):
File "/usr/lib/python3.12/threading.py", line 1075, in _bootstrap_inner
self.run()
File "/usr/lib/python3.12/threading.py", line 1012, in run
self._target(*self._args, **self._kwargs)
File "/usr/share/errands/errands/lib/sync/sync.py", line 53, in sync
self.provider.sync()
File "/usr/share/errands/errands/lib/sync/providers/caldav.py", line 215, in sync
self.__sync_lists()
File "/usr/share/errands/errands/lib/sync/providers/caldav.py", line 235, in __sync_lists
self.__update_local_list(cal, list)
File "/usr/share/errands/errands/lib/sync/providers/caldav.py", line 298, in __update_local_list
color = cal.get_property(caldav.elements.ical.CalendarColor())
^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'caldav.elements' has no attribute 'ical'
Additional info:
This issue is not present in the Flatpak of the app that's on the same version.
Searching for the error message led me to this issue at python-caldav. Looks like ensuring caldav.elements.ical is imported could fix this.
- package version(s): 46.2.6-2
- config and/or log files:
- link to upstream bug report, if any: https://github.com/mrvladus/Errands/issues/364
Steps to reproduce:
- Setup CalDAV sync from the sync settings
- Initiate first sync with the "Sync/Fetch tasks" menu item
- Keeps on spinning while the program only displays "First synchronization"