描述你遇到的问题:
import时
Traceback (most recent call last):
File "C:\Viottery\bot\t1.py", line 2, in
from graia.application import GraiaMiraiApplication, Session
File "C:\Users\U235-server\AppData\Roaming\Python\Python39\site-packages\graia\application__init__.py", line 18, in
from graia.application.event.lifecycle import ( # for init lifecycle events
File "C:\Users\U235-server\AppData\Roaming\Python\Python39\site-packages\graia\application\event\lifecycle.py", line 3, in
from graia.broadcast.entities.event import Dispatchable, BaseDispatcher
ImportError: cannot import name 'BaseDispatcher' from 'graia.broadcast.entities.event' (C:\Users\U235-server\AppData\Roaming\Python\Python39\site-packages\graia\broadcast\entities\event.py)
描述你遇到的问题: import时 Traceback (most recent call last): File "C:\Viottery\bot\t1.py", line 2, in
from graia.application import GraiaMiraiApplication, Session
File "C:\Users\U235-server\AppData\Roaming\Python\Python39\site-packages\graia\application__init__.py", line 18, in
from graia.application.event.lifecycle import ( # for init lifecycle events
File "C:\Users\U235-server\AppData\Roaming\Python\Python39\site-packages\graia\application\event\lifecycle.py", line 3, in
from graia.broadcast.entities.event import Dispatchable, BaseDispatcher
ImportError: cannot import name 'BaseDispatcher' from 'graia.broadcast.entities.event' (C:\Users\U235-server\AppData\Roaming\Python\Python39\site-packages\graia\broadcast\entities\event.py)
复现步骤: 该 BUG 会在进行以下操作后出现:
发生错误的代码
控制台日志输出截图:
无控制台输出运行环境:
mirai-core
版本: mcl1.0.5,mc2.7M1mirai-api-http
版本: http2.0.2graia-application-mirai
版本: 0.20.1