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

asynckivy IBox #1715

Open yacubus-bishcus opened 5 months ago

yacubus-bishcus commented 5 months ago

Code and Logs

from kivy.uix.appbar import MDTopAppBar

Traceback (most recent call last): File "", line 1, in File myenv/lib/python3.10/site-packages/kivymd/uix/appbar/init.py", line 2, in from .appbar import ( File myenv/lib/python3.10/site-packages/kivymd/uix/appbar/appbar.py", line 550, in import asynckivy File /myenv/lib/python3.10/site-packages/asynckivy/init.py", line 34, in from ._event import event File /myenv/lib/python3.10/site-packages/asynckivy/_event.py", line 5, in from asyncgui import IBox ImportError: cannot import name 'IBox' from 'asyncgui' (/home/jbickus/myenv/lib/python3.10/site-packages/asyncgui.py)

Versions

cristianprice commented 5 months ago

Seems like asyncgui library removed IBox in commit: 4c64603b2479e71ced4f9b8f2b36cd4b68925a69 . This is a party breaker.

Quick solution: pip install asyncgui==0.6.1

ilya2008ss commented 4 months ago

You can't import MD classes from kivy. You have to use kivymd instead.

from kivymd.uix.appbar import MDTopAppBar