kivymd/KivyMD

Trying to run the sample code from kivymd website and I get a type error

Opened this issue · 3 comments

Description of the Bug

Traceback (most recent call last):
File "test_run.py", line 1, in
from kivymd.app import MDApp
File "/home/femi/.local/lib/python3.8/site-packages/kivymd/app.py", line 65, in
from kivymd.theming import ThemeManager
File "/home/femi/.local/lib/python3.8/site-packages/kivymd/theming.py", line 49, in
from materialyoucolor.utils.color_utils import argb_from_rgba_01
File "/home/femi/.local/lib/python3.8/site-packages/materialyoucolor/utils/color_utils.py", line 1, in
from materialyoucolor.utils.math_utils import matrix_multiply, clamp_int
File "/home/femi/.local/lib/python3.8/site-packages/materialyoucolor/utils/math_utils.py", line 53, in
def matrix_multiply(row: list[float], matrix: list[list[float]]) -> list[float]:
TypeError: 'type' object is not subscriptable

Code and Logs

from kivymd.app import MDApp
from kivymd.uix.label import MDLabel


class MainApp(MDApp):
    def build(self):
        return MDLabel(text="Hello, World", halign="center")


MainApp().run()




### Versions

* OS: ubuntu 20.04
* Python: 3.8
* Kivy: v2.3.0
* KivyMD:  2.0.1.dev0

This is a known issue: T-Dynamos/materialyoucolor-python#4

Is there a fix?

@Femi1984 Till now: use latest python version.