Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Femi1984 opened this issue Jun 14, 2024 · 3 comments
Open
Assignees

Comments

@Femi1984
Copy link

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 T-Dynamos self-assigned this Jun 15, 2024
@T-Dynamos
Copy link
Collaborator

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

@Femi1984
Copy link
Author

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

Is there a fix?

@T-Dynamos
Copy link
Collaborator

@Femi1984 Till now: use latest python version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants