Package: khal
Version: 1:0.10.4~ds-3
ikhal crashes regularly when creating events, with this backtrace:
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/urwid/container.py", line 1626,
in keypress
key = self.focus.keypress(tsize, 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 503, in
save
self.collection.new(self.event)
File "/usr/lib/python3/dist-packages/khal/khalendar/khalendar.py",
line 208, in new
event.href, event.etag = self._storages[calendar].upload(event)
File "/usr/lib/python3/dist-packages/khal/khalendar/vdir.py", line
212, in upload
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'
---
Also, there are a lot of warnings (not crashes though) when doing almost
anything in ikhal or simply running khal list, like this:
/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