Your message dated Sat, 14 Nov 2026 19:20:53 +0000
with message-id <[email protected]>
and subject line Bug#1151148: fixed in khal 1:0.14.1+ds-2
has caused the Debian Bug report #1151148,
regarding khal: FTBFS against python 3.15rc2 (several date parsing errors)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1151148: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1151148
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: src:khal
Version: 1:0.14.0+ds-1
User: [email protected]
Usertags: python3.15
Tags: ftbfs, forky, sid
Severity: important

Hi!

While rebuilding the python related packages against the Python 3.15rc2 version we found that khal fails to build from source:
https://debusine.debian.net/debian/r-python-python3.15/artifact/4856282/

In the log, there are several tests failing, apparently due to date parsing errors:

=================================== FAILURES =================================== ________________________ test_new_interactive_extensive ________________________

runner = <tests.cli_test.CustomCliRunner object at 0x7f15a99cc9f0>

    @freeze_time("2015-6-1 8:00")
    def test_new_interactive_extensive(runner):
        runner = runner(print_new="path", default_calendar=False)

        result = runner.invoke(
            main_khal,
            "new -i 15:00 15:30".split(),
            "?\ninvalid\ntwo\n"
            "Unicce Name\n"
            "\n"
            "Europe/London\n"
            "bar\n"
            "l\non a boat\n"
            "p\nweekly\n"
            "1.1.2018\n"
            "a\n30m\n"
            "c\nwork\n"
            "n\n",
        )
      assert not result.exception
E       assert not SystemExit(1)
E        +  where SystemExit(1) = <Result SystemExit(1)>.exception

tests/cli_test.py:1069: AssertionError
------------------------------ Captured log call -------------------------------
CRITICAL khal:cli.py:273 Could not parse "01.06. 15:00 01.06. 15:30".
Please check your configuration or run `khal printformats` to see if this does match your configured [long](date|time|datetime)format. If you suspect a bug, please file an issue at https://github.com/pimutils/khal/issues/ _______________________________ test_issue_1056 ________________________________

runner = <tests.cli_test.CustomCliRunner object at 0x7f15a99cfac0>

    @freeze_time("2015-6-1 8:00")
    def test_issue_1056(runner):
"""if an ansi escape sequence is contained in the output, we can't parse it
        properly"""

        runner = runner(print_new="path", default_calendar=False)

        result = runner.invoke(
            main_khal,
            "new -i".split(),
            "two\n"
            "new event\n"
            "now\n"
            "Europe/London\n"
            "None\n"
            "t\n"  # edit datetime range
            "\n"
            "n\n",
        )
      assert "error parsing range" not in result.output
E assert 'error parsing range' not in "calendar: two\nsummary: new event\ndatetime range: now\ntimezone [Europe/Berlin]: Europe/London\ndescription (or 'None'): None\n/tmp/pytest-of-sbuild/pytest-0/test_issue_10560/calendar2/61UPW4BTXJL113QXECJKRR1NC1CYWGVHPNPJ.ics\nevent saved\nEdit? do[n]e [s]ummary [d]escription da[t]etime range re[p]eat [l]ocation\n[c]ategories [a]larm [D]elete [u]rl: t\ndatetime range [01.06. 09:00 01.06. 10:00]: \nerror parsing range\nEdit? do[n]e [s]ummary [d]escription da[t]etime range re[p]eat [l]ocation\n[c]ategories [a]larm [D]elete [u]rl: n\n"
E
E         'error parsing range' is contained here:
E           calendar: two
E           summary: new event
E           datetime range: now
E           timezone [Europe/Berlin]: Europe/London
E           description (or 'None'): None
E /tmp/pytest-of-sbuild/pytest-0/test_issue_10560/calendar2/61UPW4BTXJL113QXECJKRR1NC1CYWGVHPNPJ.ics
E           event saved
E Edit? do[n]e [s]ummary [d]escription da[t]etime range re[p]eat [l]ocation
E           [c]ategories  [a]larm  [D]elete  [u]rl: t
E           datetime range [01.06. 09:00 01.06. 10:00]:
E           error parsing range
E Edit? do[n]e [s]ummary [d]escription da[t]etime range re[p]eat [l]ocation
E           [c]ategories  [a]larm  [D]elete  [u]rl: n

tests/cli_test.py:1092: AssertionError
________________________ test_construct_event_format_de ________________________

    @freeze_time("20140216T120000")
    def test_construct_event_format_de():
        for data_list, vevent_expected in test_set_format_de:
vevent = _construct_event(data_list.split(), locale=LOCALE_BERLIN)
          assert _replace_uid(vevent).to_ical() == vevent_expected
E AssertionError: assert b'BEGIN:VEVENT\r\nSUMMARY:16.08. \xc3\x84wes\xc3\xb6me Event\r\nDTSTART;VALUE=DATE:20140815\r\nDTEND;VALUE=DATE:20140816\r\nDTSTAMP:20140216T120000Z\r\nUID:E41JRQX2DB4P1AQZI86BAT7NHPBHPRIIHQKA\r\nEND:VEVENT\r\n' == b'BEGIN:VEVENT\r\nSUMMARY:\xc3\x84wes\xc3\xb6me Event\r\nDTSTART;VALUE=DATE:20140815\r\nDTEND;VALUE=DATE:20140817\r\nDTSTAMP:20140216T120000Z\r\nUID:E41JRQX2DB4P1AQZI86BAT7NHPBHPRIIHQKA\r\nEND:VEVENT\r\n'
E
E             At index 22 diff: b'1' != b'\xc3'
E
E             Full diff:
E - (b'BEGIN:VEVENT\r\nSUMMARY:\xc3\x84wes\xc3\xb6me Event\r\nDTSTART;VALUE=DATE:20' E ? ------- E + (b'BEGIN:VEVENT\r\nSUMMARY:16.08. \xc3\x84wes\xc3\xb6me Event\r\nDTSTART;VALUE='
E             ?                            +++++++
E - b'140815\r\nDTEND;VALUE=DATE:20140817\r\nDTSTAMP:20140216T120000Z\r\nUID:E41' E ? ^ ------- E + b'DATE:20140815\r\nDTEND;VALUE=DATE:20140816\r\nDTSTAMP:20140216T120000Z\r\n'
E             ?    +++++++                                  ^
E             -  b'JRQX2DB4P1AQZI86BAT7NHPBHPRIIHQKA\r\nEND:VEVENT\r\n')
E + b'UID:E41JRQX2DB4P1AQZI86BAT7NHPBHPRIIHQKA\r\nEND:VEVENT\r\n')
E             ?    +++++++

tests/parse_datetime_test.py:468: AssertionError
__________________ test__construct_event_format_de_complexer ___________________

    @freeze_time("2014-02-16 12:00:00")
    def test__construct_event_format_de_complexer():
        for data_list, vevent in test_set_format_de_complexer:
event = _construct_event(data_list.split(), locale=LOCALE_BERLIN)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/parse_datetime_test.py:526:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/parse_datetime_test.py:47: in _construct_event
    info = eventinfofstr(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

info_string = '15.06. Äwesöme Event'
locale = {'default_timezone': <DstTzInfo 'Europe/Berlin' LMT+0:53:00 STD>, 'local_timezone': <DstTzInfo 'Europe/Berlin' LMT+0:53:00 STD>, 'dateformat': '%d.%m.', 'longdateformat': '%d.%m.%Y', ...}
default_event_duration = datetime.timedelta(seconds=3600)
default_dayevent_duration = datetime.timedelta(days=1), adjust_reasonably = True

    def eventinfofstr(
        info_string: str,
        locale: LocaleConfiguration,
        default_event_duration: dt.timedelta,
        default_dayevent_duration: dt.timedelta,
        adjust_reasonably: bool = False,
    ) -> dict[str, Any]:
"""parses a string of the form START [END | DELTA] [TIMEZONE] [SUMMARY] [:: DESCRIPTION] into a dictionary with keys: dtstart, dtend, timezone, allday,
        summary, description
        """
        description = None
        if " :: " in info_string:
            info_string, description = info_string.split(" :: ")

        parts = info_string.split(" ")
        summary = None
        start: dt.datetime | dt.date | None = None
        end: dt.datetime | dt.date | None = None
        tz: pytz.BaseTzInfo | None = None
        allday: bool = False
        for i in reversed(range(1, len(parts) + 1)):
            try:
                start, end, allday = guessrangefstr(
                    " ".join(parts[0:i]),
                    locale,
                    default_timedelta_datetime=default_event_duration,
                    default_timedelta_date=default_dayevent_duration,
                    adjust_reasonably=adjust_reasonably,
                )
            except (ValueError, DateTimeParseError):
                continue
            if start is not None and end is not None:
                try:
                    # next element is a valid Olson db timezone string
                    tz = pytz.timezone(parts[i])
                    i += 1
except (pytz.UnknownTimeZoneError, UnicodeDecodeError, IndexError):
                    tz = None
                summary = " ".join(parts[i:])
                break

        if start is None or end is None:
          raise DateTimeParseError(
                f'Could not parse "{info_string}".\nPlease check your '
"configuration or run `khal printformats` to see if this does " "match your configured [long](date|time|datetime)format.\nIf you "
                "suspect a bug, please file an issue at "
                "https://github.com/pimutils/khal/issues/ "
            )
E khal.exceptions.DateTimeParseError: Could not parse "15.06. Äwesöme Event". E Please check your configuration or run `khal printformats` to see if this does match your configured [long](date|time|datetime)format. E If you suspect a bug, please file an issue at https://github.com/pimutils/khal/issues/

khal/parse_datetime.py:492: DateTimeParseError
________________________________ test_leap_year ________________________________

    def test_leap_year():
        for data_list, vevent in test_set_leap_year:
            with freeze_time("1999-1-1"):
                with pytest.raises(DateTimeParseError):
event = _construct_event(data_list.split(), locale=LOCALE_BERLIN)
            with freeze_time("2016-1-1 20:21:22"):
event = _construct_event(data_list.split(), locale=LOCALE_BERLIN)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/parse_datetime_test.py:546:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/parse_datetime_test.py:47: in _construct_event
    info = eventinfofstr(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

info_string = '29.02. Äwesöme Event'
locale = {'default_timezone': <DstTzInfo 'Europe/Berlin' LMT+0:53:00 STD>, 'local_timezone': <DstTzInfo 'Europe/Berlin' LMT+0:53:00 STD>, 'dateformat': '%d.%m.', 'longdateformat': '%d.%m.%Y', ...}
default_event_duration = datetime.timedelta(seconds=3600)
default_dayevent_duration = datetime.timedelta(days=1), adjust_reasonably = True

    def eventinfofstr(
        info_string: str,
        locale: LocaleConfiguration,
        default_event_duration: dt.timedelta,
        default_dayevent_duration: dt.timedelta,
        adjust_reasonably: bool = False,
    ) -> dict[str, Any]:
"""parses a string of the form START [END | DELTA] [TIMEZONE] [SUMMARY] [:: DESCRIPTION] into a dictionary with keys: dtstart, dtend, timezone, allday,
        summary, description
        """
        description = None
        if " :: " in info_string:
            info_string, description = info_string.split(" :: ")

        parts = info_string.split(" ")
        summary = None
        start: dt.datetime | dt.date | None = None
        end: dt.datetime | dt.date | None = None
        tz: pytz.BaseTzInfo | None = None
        allday: bool = False
        for i in reversed(range(1, len(parts) + 1)):
            try:
                start, end, allday = guessrangefstr(
                    " ".join(parts[0:i]),
                    locale,
                    default_timedelta_datetime=default_event_duration,
                    default_timedelta_date=default_dayevent_duration,
                    adjust_reasonably=adjust_reasonably,
                )
            except (ValueError, DateTimeParseError):
                continue
            if start is not None and end is not None:
                try:
                    # next element is a valid Olson db timezone string
                    tz = pytz.timezone(parts[i])
                    i += 1
except (pytz.UnknownTimeZoneError, UnicodeDecodeError, IndexError):
                    tz = None
                summary = " ".join(parts[i:])
                break

        if start is None or end is None:
          raise DateTimeParseError(
                f'Could not parse "{info_string}".\nPlease check your '
"configuration or run `khal printformats` to see if this does " "match your configured [long](date|time|datetime)format.\nIf you "
                "suspect a bug, please file an issue at "
                "https://github.com/pimutils/khal/issues/ "
            )
E khal.exceptions.DateTimeParseError: Could not parse "29.02. Äwesöme Event". E Please check your configuration or run `khal printformats` to see if this does match your configured [long](date|time|datetime)format. E If you suspect a bug, please file an issue at https://github.com/pimutils/khal/issues/

khal/parse_datetime.py:492: DateTimeParseError
_______________________________ test_description _______________________________

    def test_description():
        for data_list, vevent in test_set_description:
            with freeze_time("2014-02-16 12:00:00"):
event = _construct_event(data_list.split(), locale=LOCALE_BERLIN)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/parse_datetime_test.py:582:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/parse_datetime_test.py:47: in _construct_event
    info = eventinfofstr(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

info_string = '15.06. Äwesöme Event'
locale = {'default_timezone': <DstTzInfo 'Europe/Berlin' LMT+0:53:00 STD>, 'local_timezone': <DstTzInfo 'Europe/Berlin' LMT+0:53:00 STD>, 'dateformat': '%d.%m.', 'longdateformat': '%d.%m.%Y', ...}
default_event_duration = datetime.timedelta(seconds=3600)
default_dayevent_duration = datetime.timedelta(days=1), adjust_reasonably = True

    def eventinfofstr(
        info_string: str,
        locale: LocaleConfiguration,
        default_event_duration: dt.timedelta,
        default_dayevent_duration: dt.timedelta,
        adjust_reasonably: bool = False,
    ) -> dict[str, Any]:
"""parses a string of the form START [END | DELTA] [TIMEZONE] [SUMMARY] [:: DESCRIPTION] into a dictionary with keys: dtstart, dtend, timezone, allday,
        summary, description
        """
        description = None
        if " :: " in info_string:
            info_string, description = info_string.split(" :: ")

        parts = info_string.split(" ")
        summary = None
        start: dt.datetime | dt.date | None = None
        end: dt.datetime | dt.date | None = None
        tz: pytz.BaseTzInfo | None = None
        allday: bool = False
        for i in reversed(range(1, len(parts) + 1)):
            try:
                start, end, allday = guessrangefstr(
                    " ".join(parts[0:i]),
                    locale,
                    default_timedelta_datetime=default_event_duration,
                    default_timedelta_date=default_dayevent_duration,
                    adjust_reasonably=adjust_reasonably,
                )
            except (ValueError, DateTimeParseError):
                continue
            if start is not None and end is not None:
                try:
                    # next element is a valid Olson db timezone string
                    tz = pytz.timezone(parts[i])
                    i += 1
except (pytz.UnknownTimeZoneError, UnicodeDecodeError, IndexError):
                    tz = None
                summary = " ".join(parts[i:])
                break

        if start is None or end is None:
          raise DateTimeParseError(
                f'Could not parse "{info_string}".\nPlease check your '
"configuration or run `khal printformats` to see if this does " "match your configured [long](date|time|datetime)format.\nIf you "
                "suspect a bug, please file an issue at "
                "https://github.com/pimutils/khal/issues/ "
            )
E khal.exceptions.DateTimeParseError: Could not parse "15.06. Äwesöme Event". E Please check your configuration or run `khal printformats` to see if this does match your configured [long](date|time|datetime)format. E If you suspect a bug, please file an issue at https://github.com/pimutils/khal/issues/

khal/parse_datetime.py:492: DateTimeParseError

Please note that while we ran into this error during the rebuild against Python 3.15, that doesn't mean that the root cause for the failure is necessarily the new Python version.

Setting the severity to important for now. Once Python 3.15 is released and later added to python3-defaults, this bug will become release critical.

--
Regards,
Marga

--- End Message ---
--- Begin Message ---
Source: khal
Source-Version: 1:0.14.1+ds-2
Done: Nico Della Torre <[email protected]>

We believe that the bug you reported is fixed in the latest version of
khal, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Nico Della Torre <[email protected]> (supplier of updated khal package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Fri, 13 Nov 2026 21:15:19 +0100
Source: khal
Architecture: source
Version: 1:0.14.1+ds-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <[email protected]>
Changed-By: Nico Della Torre <[email protected]>
Closes: 1149368 1151148
Changes:
 khal (1:0.14.1+ds-2) unstable; urgency=medium
 .
   * Team upload.
 .
   [ Arto Jantunen ]
   * Apply Fedora patch for Python 3.15 support (Closes: #1149368)
 .
   [ Nico Della Torre ]
   * Fix test_convert_to_date with urwid >= 4.2.5 (Closes: #1151148)
Checksums-Sha1:
 6243357042dcbebd1f7e16bafe8d859f0ad2ff6c 2541 khal_0.14.1+ds-2.dsc
 eeebfcade2fc18bc2224e9d7448ea6fc4cd8e1b0 11664 khal_0.14.1+ds-2.debian.tar.xz
 cb4e49f7e5a7c7a6305852fc8f39e513f3caea98 9027 khal_0.14.1+ds-2_source.buildinfo
Checksums-Sha256:
 f392a009d84cb1c28b2b20d30b36d4509fa60c78f5c033614d97b4bfb2e3677c 2541 
khal_0.14.1+ds-2.dsc
 0de3fb09c747e4593c636299f472211dfcc572958cdaba7a730de1b1976ac444 11664 
khal_0.14.1+ds-2.debian.tar.xz
 a251f1d663e20b0bcc7000183b820e779a2a429eee2c44609a137efa7f912ace 9027 
khal_0.14.1+ds-2_source.buildinfo
Files:
 5d40d53c9a5487a787e32323aaf458f4 2541 utils optional khal_0.14.1+ds-2.dsc
 273195fdb07c4b855d3f12cc60eeb28c 11664 utils optional 
khal_0.14.1+ds-2.debian.tar.xz
 e9283dfa497d14494e5fd4733f1180dc 9027 utils optional 
khal_0.14.1+ds-2_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEj23hBDd/OxHnQXSHMfMURUShdBoFAmr4rywACgkQMfMURUSh
dBoAuQ//Rhrv7fTi35U/7rXFThB1fyWlUY6MnacYTnGcZyi56JyIkE9UfGSkL5ub
KCq75J958/jOkxOtZI5brhZfTr0euhY50ETFb0LdSeqFGBjHTTeGOEolb9YwkSHH
fGei3E1VrRUSwAHs6FJ6rp7tqr39295zdGSXpe5IOfnThFHI4Rk6AoumaIdNoaIa
a+rvHBvEZjRXHz24TYf0T/76peMZzOaz9Edd6AexgkKzSqsGICtYL7mU4Z8rBoN9
4tNPzTnhZhdSGmVqVGm5xtPHAt4PSkeUoXwPhqpCjoSFu2oTQnXhGmc6kn2RlGIK
UWgQItYbkwLWhrVCGsVcXJICS2mQptlHdyG+jG+huJM4tvZVULqT2T8hkyHu57hn
NwqD7Y9vYJwhXeCs4bP2oo5FIxc99fC68f/G/tTnyEr1ixncJKcEE+lJ2vgTWyi6
K/dqqDvvjo6Sv17R0ZSw+UihGw9qUdYDR2Idyt5+u4MkkhPUnrWkSg9Y0iGSA81l
haY+1RITf4KD556D5OE/UQV8ZhZUdbYLIEhwOwVJKfReAvW9er7yUA+RkGUCYrsw
0n7nWUk7d7jo/WtobxHcM+VFOQBUtwoYK1LiCWUhasT/g0A1rLxxqW7d2OwFF3VI
IpgkZYt9ebfS6GKgohJ4B3PhIgjEl51QGHOz0bL2WGLH52qu5Ho=
=lwLV
-----END PGP SIGNATURE-----

Attachment: pgpbowIqMylBx.pgp
Description: PGP signature


--- End Message ---

Reply via email to