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:
- import kivymd_extensions.akivymd
- created an AKBarChart using this example code https://github.com/subhranil2699/akivymd_codes/blob/main/02_barchart.py
- ran main.py
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