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

asynckivy IBox #1715

Open
yacubus-bishcus opened this issue Jun 21, 2024 · 2 comments
Open

asynckivy IBox #1715

yacubus-bishcus opened this issue Jun 21, 2024 · 2 comments

Comments

@yacubus-bishcus
Copy link

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

  • OS: Ubuntu 20.04.6
  • Python: 3.10.14
  • Kivy: 2.3.0
  • KivyMD: 2.0.1.dev0
@cristianprice
Copy link

cristianprice commented Jun 21, 2024

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

Quick solution: pip install asyncgui==0.6.1

@ilya2008ss
Copy link

ilya2008ss commented Jul 4, 2024

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

from kivymd.uix.appbar import MDTopAppBar

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

3 participants