Package: khal Version: 1:0.10.4~ds-3 Followup-For: Bug #1019744 X-Debbugs-Cc: mar...@mdosch.de
Dear Maintainer, while I can easily work around by specifying the timezone when adding events on the CLI the TUI interface ikhal fails when saving an event: ikhal /usr/lib/python3/dist-packages/khal/khalendar/khalendar.py:153: PytzUsageWarning: The localize method is no longer necessary, as this time zone supports the fold attribute (PEP 495). For more details on migrating to a PEP 495-compliant implementation, see https://pytz-deprecation- shim.readthedocs.io/en/latest/migration.html localized_events = self.get_localized(localize(start), localize(end)) /usr/lib/python3/dist-packages/khal/khalendar/event.py:541: PytzUsageWarning: The localize method is no longer necessary, as this time zone supports the fold attribute (PEP 495). For more details on migrating to a PEP 495-compliant implementation, see https://pytz-deprecation- shim.readthedocs.io/en/latest/migration.html start_local_datetime = self._locale['local_timezone'].localize( /usr/lib/python3/dist-packages/khal/khalendar/event.py:543: PytzUsageWarning: The localize method is no longer necessary, as this time zone supports the fold attribute (PEP 495). For more details on migrating to a PEP 495-compliant implementation, see https://pytz-deprecation- shim.readthedocs.io/en/latest/migration.html end_local_datetime = self._locale['local_timezone'].localize( /usr/lib/python3/dist-packages/khal/khalendar/event.py:546: PytzUsageWarning: The localize method is no longer necessary, as this time zone supports the fold attribute (PEP 495). For more details on migrating to a PEP 495-compliant implementation, see https://pytz-deprecation- shim.readthedocs.io/en/latest/migration.html day_start = self._locale['local_timezone'].localize( /usr/lib/python3/dist-packages/khal/khalendar/event.py:549: PytzUsageWarning: The localize method is no longer necessary, as this time zone supports the fold attribute (PEP 495). For more details on migrating to a PEP 495-compliant implementation, see https://pytz-deprecation- shim.readthedocs.io/en/latest/migration.html day_end = self._locale['local_timezone'].localize( /usr/lib/python3/dist-packages/khal/khalendar/khalendar.py:162: PytzUsageWarning: The localize method is no longer necessary, as this time zone supports the fold attribute (PEP 495). For more details on migrating to a PEP 495-compliant implementation, see https://pytz-deprecation- shim.readthedocs.io/en/latest/migration.html self._backend.get_localized_calendars(localize(start), localize(end)), Traceback (most recent call last): File "/usr/lib/python3/dist-packages/khal/ui/__init__.py", line 1358, in start_pane loop.run() File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 287, in run self._run() File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 385, in _run self.event_loop.run() File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 790, in run self._loop() File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 827, in _loop self._watch_files[fd]() File "/usr/lib/python3/dist-packages/urwid/raw_display.py", line 416, in <lambda> wrapper = lambda: self.parse_input( File "/usr/lib/python3/dist-packages/urwid/raw_display.py", line 515, in parse_input callback(processed, processed_codes) File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 412, in _update self.process_input(keys) File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 513, in process_input k = self._topmost_widget.keypress(self.screen_size, k) File "/usr/lib/python3/dist-packages/urwid/wimp.py", line 651, in keypress return self._current_widget.keypress(size, key) File "/usr/lib/python3/dist-packages/urwid/container.py", line 1135, in keypress return self.body.keypress( (maxcol, remaining), key ) File "/usr/lib/python3/dist-packages/urwid/container.py", line 2316, in keypress key = w.keypress((mc,) + size[1:], key) File "/usr/lib/python3/dist-packages/khal/ui/editor.py", line 530, in keypress return super().keypress(size, key) File "/usr/lib/python3/dist-packages/khal/ui/widgets.py", line 376, in keypress key = super().keypress(size, key) File "/usr/lib/python3/dist-packages/urwid/listbox.py", line 968, in keypress key = focus_widget.keypress((maxcol,),key) File "/usr/lib/python3/dist-packages/urwid/container.py", line 2316, in keypress key = w.keypress((mc,) + size[1:], key) File "/usr/lib/python3/dist-packages/urwid/wimp.py", line 543, in keypress self._emit('click') File "/usr/lib/python3/dist-packages/urwid/widget.py", line 461, in _emit signals.emit_signal(self, name, self, *args) File "/usr/lib/python3/dist-packages/urwid/signals.py", line 265, in emit result |= self._call_callback(callback, user_arg, user_args, args) File "/usr/lib/python3/dist-packages/urwid/signals.py", line 295, in _call_callback return bool(callback(*args_to_pass)) File "/usr/lib/python3/dist-packages/khal/ui/editor.py", line 510, in save self.collection.update(self.event) File "/usr/lib/python3/dist-packages/khal/khalendar/khalendar.py", line 172, in update event.etag = self._storages[event.calendar].update(event.href, event, event.etag) File "/usr/lib/python3/dist-packages/khal/khalendar/vdir.py", line 251, in update if not isinstance(item.raw, str): File "/usr/lib/python3/dist-packages/khal/khalendar/event.py", line 382, in raw timezone = create_timezone(tzinfo, self.start) File "/usr/lib/python3/dist-packages/khal/khalendar/event.py", line 858, in create_timezone for one, two in iter(tz._tzinfos.items()) AttributeError: '_PytzShimTimezone' object has no attribute '_tzinfos' -- System Information: Debian Release: bookworm/sid APT prefers testing APT policy: (900, 'testing'), (600, 'unstable'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'experimental'), (1, 'experimental-debug') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.19.0-1-amd64 (SMP w/8 CPU threads; PREEMPT) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages khal depends on: ii python3 3.10.6-1 ii python3-atomicwrites 1.4.0-2 ii python3-click 8.0.3-1 ii python3-click-log 0.3.2-1 ii python3-configobj 5.0.6-5 ii python3-dateutil 2.8.1-6 ii python3-icalendar 4.0.3-5 ii python3-pkg-resources 59.6.0-1.2 ii python3-tz 2022.2.1-1 ii python3-tzlocal 4.2-1 ii python3-urwid 2.1.2-2+b2 ii python3-xdg 0.27-2 Versions of packages khal recommends: ii python3-setproctitle 1.3.1-1 Versions of packages khal suggests: pn khal-doc <none> -- debconf-show failed