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'