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

Error importing kivymd.color_definitions when using kivymd_extensions.akivymd #1683

Open
BathyMapsAustralia opened this issue Apr 18, 2024 · 2 comments

Comments

@BathyMapsAustralia
Copy link

Description of the Bug

The kivymd.color_definitions module cannot be found in the latest version of kivymd and throws an error when color and palette color are called from the color_definitions module. Upon perusal of the latest kivymd vs v1.1.1, the color_definitions module is not included in the latest version unlike v1.1.1. It appears kivymd_extensions.akivymd still relies on the color_definitions module.

Code example attached
my.zip

Reproducible

My steps were:

Console Logs

Traceback (most recent call last):
File "C:\Users\CobbanT\Documents\kivy\main.py", line 285, in
MyApp().run()
File "C:\Users\CobbanT\AppData\Roaming\Python\Python39\site-packages\kivy\app.py", line 955, in run
self._run_prepare()
File "C:\Anaconda\envs\kivy\lib\site-packages\kivymd\app.py", line 142, in _run_prepare
super()._run_prepare()
File "C:\Users\CobbanT\AppData\Roaming\Python\Python39\site-packages\kivy\app.py", line 925, in _run_prepare
root = self.build()
File "C:\Users\CobbanT\Documents\kivy\main.py", line 147, in build
self.sm.add_widget(Site1Screen(name='site_1'))
File "C:\Users\CobbanT\AppData\Roaming\Python\Python39\site-packages\kivy\uix\relativelayout.py", line 274, in init
super(RelativeLayout, self).init(**kw)
File "C:\Users\CobbanT\AppData\Roaming\Python\Python39\site-packages\kivy\uix\floatlayout.py", line 65, in init
super(FloatLayout, self).init(**kwargs)
File "C:\Users\CobbanT\AppData\Roaming\Python\Python39\site-packages\kivy\uix\layout.py", line 76, in init
super(Layout, self).init(**kwargs)
File "C:\Users\CobbanT\AppData\Roaming\Python\Python39\site-packages\kivy\uix\widget.py", line 366, in init
self.apply_class_lang_rules(
File "C:\Users\CobbanT\AppData\Roaming\Python\Python39\site-packages\kivy\uix\widget.py", line 470, in apply_class_lang_rules
Builder.apply(
File "C:\Users\CobbanT\AppData\Roaming\Python\Python39\site-packages\kivy\lang\builder.py", line 545, in apply
self._apply_rule(
File "C:\Users\CobbanT\AppData\Roaming\Python\Python39\site-packages\kivy\lang\builder.py", line 667, in _apply_rule
self._apply_rule(
File "C:\Users\CobbanT\AppData\Roaming\Python\Python39\site-packages\kivy\lang\builder.py", line 667, in _apply_rule
self._apply_rule(
File "C:\Users\CobbanT\AppData\Roaming\Python\Python39\site-packages\kivy\lang\builder.py", line 667, in _apply_rule
self._apply_rule(
File "C:\Users\CobbanT\AppData\Roaming\Python\Python39\site-packages\kivy\lang\builder.py", line 625, in _apply_rule
cls = Factory_get(cname)
File "C:\Users\CobbanT\AppData\Roaming\Python\Python39\site-packages\kivy\factory.py", line 155, in getattr
module = importlib.import(
File "", line 1109, in import
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 790, in exec_module
File "", line 228, in _call_with_frames_removed
File "C:\Anaconda\envs\kivy\lib\site-packages\kivymd_extensions\akivymd\uix\charts.py", line 17, in
from kivymd.color_definitions import colors, palette
ModuleNotFoundError: No module named 'kivymd.color_definitions'

Versions

  • OS: Microsoft Windows 10 Enterprise Version10.0.19045 Build 19045
  • Python: 3.9
  • Kivy: 2.3.0
  • KivyMD: 2.0.1.dev0
@HeaTTheatR
Copy link
Member

kivymd_extensions.akivymd is not supported with the latest version of the KivyMD library

@BathyMapsAustralia
Copy link
Author

Hi @HeaTTheatR do you know if there are plans to support features available in kivymd_extensions.akivymd in latest versions of kivymd?

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