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.26k stars 674 forks source link

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

Open BathyMapsAustralia opened 7 months ago

BathyMapsAustralia commented 7 months ago

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

HeaTTheatR commented 7 months ago

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

BathyMapsAustralia commented 7 months ago

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