kivymd / KivyMD

KivyMD is a collection of Material Design compliant widgets for use with Kivy, a framework for cross-platform, touch-enabled graphical applications. https://youtube.com/c/KivyMD https://twitter.com/KivyMD https://habr.com/ru/users/kivymd https://stackoverflow.com/tags/kivymd
https://kivymd.readthedocs.io
MIT License
2.25k stars 674 forks source link

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

Open Femi1984 opened 5 months ago

Femi1984 commented 5 months ago

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
T-Dynamos commented 5 months ago

This is a known issue: https://github.com/T-Dynamos/materialyoucolor-python/issues/4

Femi1984 commented 5 months ago

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

Is there a fix?

T-Dynamos commented 5 months ago

@Femi1984 Till now: use latest python version.