[Bug 288604] deskutils/py-khal version 0.11.4 depends on devel/py-icalendar < 6.0

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 02 Aug 2025 09:06:22 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288604

            Bug ID: 288604
           Summary: deskutils/py-khal version 0.11.4 depends on
                    devel/py-icalendar < 6.0
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: tant.sinnister@googlemail.com
                CC: jun-g@daemonfreaks.com, wen@FreeBSD.org
                CC: jun-g@daemonfreaks.com, wen@FreeBSD.org

khal fails with the following error

module 'icalendar' has no attribute 'windows_to_olson'
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/khal/controllers.py", line 654,
in import_ics
    vevents = split_ics(ics, random_uid, conf['locale']['default_timezone'])
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/khal/icalendar.py", line 58, 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/local/lib/python3.11/site-packages/khal/cli.py", line 335, in
import_ics
    controllers.import_ics(
  File "/usr/local/lib/python3.11/site-packages/khal/controllers.py", line 656,
in import_ics
    raise FatalError(error)
khal.exceptions.FatalError: module 'icalendar' has no attribute
'windows_to_olson'

This is caused by the update of devel/py-icalendar to version 6.1.1
https://cgit.freebsd.org/ports/commit/?id=d770fe061df0fe5711005a6a2edd82a2ad4bef41

Since in Version 6 icalendar.windows_to_olson got moved to
icalendar.timezone.windows_to_olson

This has already been fixed in version 0.13.0 of khal.
https://github.com/pimutils/khal/commit/5c22b2a202bd6d5ca6772cf33765c8da4c71bce9

-- 
You are receiving this mail because:
You are the assignee for the bug.