0
votes

I get this exception when trying to open a dialogue:

 Traceback (most recent call last):
   File "kivy\properties.pyx", line 961, in kivy.properties.ObservableDict.__getattr__
 KeyError: '_left_container'
 
 During handling of the above exception, another exception occurred:

   File "kivy\properties.pyx", line 964, in kivy.properties.ObservableDict.__getattr__
 AttributeError: 'super' object has no attribute '__getattr__'

my python code:

    if not self.current_signal or not self.current_signal_characteristics:
        ...
    else:
        _items = [
            TwoLineListItem(text="_char_name", secondary_text="_value")
            for _char_name, _value in self.current_signal_characteristics.items()
        ]

        if not self.characteristics_dialog:
            self.characteristics_dialog = MDDialog(
                title="some str"
                type="simple",
                items=_items,
                buttons=[
                    MDFlatButton(
                        text="OKEJ",
                        theme_text_color="Primary",
                        on_release=lambda _: self.characteristics_dialog.dismiss(force=True),
                    )
                ],
            )
        self.characteristics_dialog.open()

No idea why it's failing I created a pretty much analogical dialog but with TwoLineAvatarListItems and it works just fine