dashzero icon indicating copy to clipboard operation
dashzero copied to clipboard

error starting main.py

Open Luckyman7471 opened this issue 5 years ago • 0 comments

Hello,

Unfortunately, I always get the following error message when I start the main.py Does anyone have any idea what the problem is here

Traceback (most recent call last): File "kivy/properties.pyx", line 2023, in kivy.properties.ColorProperty.convert File "kivy/properties.pyx", line 2041, in kivy.properties.ColorProperty.parse_list ValueError: Invalid value for color (got [])

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/home/pi/.local/lib/python3.7/site-packages/kivy/lang/builder.py", line 701, in _apply_rule setattr(widget_set, key, value) File "kivy/weakproxy.pyx", line 35, in kivy.weakproxy.WeakProxy.setattr File "kivy/properties.pyx", line 498, in kivy.properties.Property.set File "kivy/properties.pyx", line 527, in kivy.properties.Property.set File "kivy/properties.pyx", line 2025, in kivy.properties.ColorProperty.convert ValueError: MDTabsLabel.color has an invalid format (got [])

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "main.py", line 104, in MainApp().run() File "/home/pi/.local/lib/python3.7/site-packages/kivy/app.py", line 949, in run self._run_prepare() File "/home/pi/.local/lib/python3.7/site-packages/kivy/app.py", line 919, in _run_prepare root = self.build() File "main.py", line 83, in build self.root = MainScreen(config) File "main.py", line 31, in init self.navigation = Navigation(config['rooms']) File "/home/pi/dashzero-master/gui/core/navigation.py", line 28, in init self.add_widget(NavigationItem(room)) File "/home/pi/dashzero-master/gui/core/navigation.py", line 8, in init super(NavigationItem, self).init(**kwargs) File "/home/pi/.local/lib/python3.7/site-packages/kivy/uix/boxlayout.py", line 145, in init super(BoxLayout, self).init(**kwargs) File "/home/pi/.local/lib/python3.7/site-packages/kivy/uix/layout.py", line 76, in init super(Layout, self).init(**kwargs) File "/home/pi/.local/lib/python3.7/site-packages/kivymd/uix/tab.py", line 374, in init self.tab_label = MDTabsLabel(tab=self) File "/home/pi/.local/lib/python3.7/site-packages/kivymd/uix/tab.py", line 328, in init super().init(**kwargs) File "/home/pi/.local/lib/python3.7/site-packages/kivy/uix/behaviors/togglebutton.py", line 84, in init super(ToggleButtonBehavior, self).init(**kwargs) File "/home/pi/.local/lib/python3.7/site-packages/kivy/uix/behaviors/button.py", line 121, in init super(ButtonBehavior, self).init(**kwargs) File "/home/pi/.local/lib/python3.7/site-packages/kivy/uix/label.py", line 318, in init super(Label, self).init(**kwargs) File "/home/pi/.local/lib/python3.7/site-packages/kivy/uix/widget.py", line 361, in init rule_children=rule_children) File "/home/pi/.local/lib/python3.7/site-packages/kivy/uix/widget.py", line 465, in apply_class_lang_rules rule_children=rule_children) File "/home/pi/.local/lib/python3.7/site-packages/kivy/lang/builder.py", line 543, in apply rule_children=rule_children) File "/home/pi/.local/lib/python3.7/site-packages/kivy/lang/builder.py", line 712, in _apply_rule e), cause=tb) kivy.lang.builder.BuilderException: Parser: File "", line 19: ... 17: ) 18: color:

19: self.text_color_active if self.state == 'down' else self.text_color_normal 20: on_x: self._trigger_update_tab_indicator() 21: on_width: self._trigger_update_tab_indicator() ... ValueError: MDTabsLabel.color has an invalid format (got []) File "/home/pi/.local/lib/python3.7/site-packages/kivy/lang/builder.py", line 701, in _apply_rule setattr(widget_set, key, value) File "kivy/weakproxy.pyx", line 35, in kivy.weakproxy.WeakProxy.setattr File "kivy/properties.pyx", line 498, in kivy.properties.Property.set File "kivy/properties.pyx", line 527, in kivy.properties.Property.set File "kivy/properties.pyx", line 2025, in kivy.properties.ColorProperty.convert

Luckyman7471 avatar Jan 21 '21 10:01 Luckyman7471