Exceptions with 26.4.2 - Due to custom panels?

I updated my console to 26.4.2, along with all the system updates and now I get a bunch of exceptions. I built several custom panels a few months ago and I suspect that they might not be playing well with the latest update. Can you look at the errors and tell me if it’s a customization issue or something else?

If it’s my poor coding, I’ll remove the customizations and work on them when I have time.

Thanks!

Ken

Traceback (most recent call last):
  File "/home/kennethhoke/wfpiconsole/venv/lib/python3.11/site-packages/kivy/lang/builder.py", line 245, in create_handler
    return eval(value, idmap), bound_list
           ^^^^^^^^^^^^^^^^^^
  File "/home/kennethhoke/wfpiconsole/user/customPanels.kv", line 128, in <module>
    text: app.CurrentConditions.System['Time']
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'Time'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/kennethhoke/wfpiconsole/venv/lib/python3.11/site-packages/kivy/lang/builder.py", line 699, in _apply_rule
    value, bound = create_handler(
                   ^^^^^^^^^^^^^^^
  File "/home/kennethhoke/wfpiconsole/venv/lib/python3.11/site-packages/kivy/lang/builder.py", line 248, in create_handler
    raise BuilderException(rule.ctx, rule.line,
kivy.lang.builder.BuilderException: Parser: File "/home/kennethhoke/wfpiconsole/user/customPanels.kv", line 128:
...
    126:        size_hint_x: (262/262)
    127:    TimeDateField:
>>  128:        text: app.CurrentConditions.System['Time']
    129:        pos_hint: {'x': 0/262, 'y': 3/202}
    130:        size_hint_x: (262/262)
...
KeyError: 'Time'
  File "/home/kennethhoke/wfpiconsole/venv/lib/python3.11/site-packages/kivy/lang/builder.py", line 245, in create_handler
    return eval(value, idmap), bound_list
           ^^^^^^^^^^^^^^^^^^
  File "/home/kennethhoke/wfpiconsole/user/customPanels.kv", line 128, in <module>
    text: app.CurrentConditions.System['Time']
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/kennethhoke/wfpiconsole/main.py", line 621, in <module>
    wfpiconsole_app.run()
  File "/home/kennethhoke/wfpiconsole/venv/lib/python3.11/site-packages/kivy/app.py", line 955, in run
    self._run_prepare()
  File "/home/kennethhoke/wfpiconsole/venv/lib/python3.11/site-packages/kivy/app.py", line 925, in _run_prepare
    root = self.build()
           ^^^^^^^^^^^^
  File "/home/kennethhoke/wfpiconsole/main.py", line 195, in build
    self.screen_manager.add_widget(CurrentConditions())
                                   ^^^^^^^^^^^^^^^^^^^
  File "/home/kennethhoke/wfpiconsole/main.py", line 488, in __init__
    self.add_panels()
  File "/home/kennethhoke/wfpiconsole/main.py", line 551, in add_panels
    self.ids[panel_id].add_widget(eval(primary_panel + 'Panel')())
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kennethhoke/wfpiconsole/panels/template.py", line 29, in __init__
    super().__init__(**kwargs)
  File "/home/kennethhoke/wfpiconsole/venv/lib/python3.11/site-packages/kivy/uix/relativelayout.py", line 274, in __init__
    super(RelativeLayout, self).__init__(**kw)
  File "/home/kennethhoke/wfpiconsole/venv/lib/python3.11/site-packages/kivy/uix/floatlayout.py", line 65, in __init__
    super(FloatLayout, self).__init__(**kwargs)
  File "/home/kennethhoke/wfpiconsole/venv/lib/python3.11/site-packages/kivy/uix/layout.py", line 76, in __init__
    super(Layout, self).__init__(**kwargs)
  File "/home/kennethhoke/wfpiconsole/venv/lib/python3.11/site-packages/kivy/uix/widget.py", line 366, in __init__
    self.apply_class_lang_rules(
  File "/home/kennethhoke/wfpiconsole/venv/lib/python3.11/site-packages/kivy/uix/widget.py", line 470, in apply_class_lang_rules
    Builder.apply(
  File "/home/kennethhoke/wfpiconsole/venv/lib/python3.11/site-packages/kivy/lang/builder.py", line 545, in apply
    self._apply_rule(
  File "/home/kennethhoke/wfpiconsole/venv/lib/python3.11/site-packages/kivy/lang/builder.py", line 714, in _apply_rule
    raise BuilderException(rule.ctx, rule.line,
kivy.lang.builder.BuilderException: Parser: File "/home/kennethhoke/wfpiconsole/user/customPanels.kv", line 128:
...
    126:        size_hint_x: (262/262)
    127:    TimeDateField:
>>  128:        text: app.CurrentConditions.System['Time']
    129:        pos_hint: {'x': 0/262, 'y': 3/202}
    130:        size_hint_x: (262/262)
...
BuilderException: Parser: File "/home/kennethhoke/wfpiconsole/user/customPanels.kv", line 128:
...
    126:        size_hint_x: (262/262)
    127:    TimeDateField:
>>  128:        text: app.CurrentConditions.System['Time']
    129:        pos_hint: {'x': 0/262, 'y': 3/202}
    130:        size_hint_x: (262/262)
...
KeyError: 'Time'
  File "/home/kennethhoke/wfpiconsole/venv/lib/python3.11/site-packages/kivy/lang/builder.py", line 245, in create_handler
    return eval(value, idmap), bound_list
           ^^^^^^^^^^^^^^^^^^
  File "/home/kennethhoke/wfpiconsole/user/customPanels.kv", line 128, in <module>
    text: app.CurrentConditions.System['Time']
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/home/kennethhoke/wfpiconsole/venv/lib/python3.11/site-packages/kivy/lang/builder.py", line 699, in _apply_rule
    value, bound = create_handler(
                   ^^^^^^^^^^^^^^^
  File "/home/kennethhoke/wfpiconsole/venv/lib/python3.11/site-packages/kivy/lang/builder.py", line 248, in create_handler
    raise BuilderException(rule.ctx, rule.line,

Sorry I changed some variable names. Date and Time in app.CurrentConditions.System have been changed to lower case: app.CurrentConditions.System['time'] and app.CurrentConditions.System['date']

Thanks! I’ll make the changes.