File "bot.py", line 2, in
from graia.application import GraiaMiraiApplication, Session
File "/usr/local/lib/python3.6/dist-packages/graia/application/init.py", line 7, in
from contextlib import asynccontextmanager
ImportError: cannot import name 'asynccontextmanager'
复现步骤:
该 BUG 会在进行以下操作后出现:
python3 bot.py
之后报错
发生错误的代码
File "bot.py", line 2, in
from graia.application import GraiaMiraiApplication, Session
File "/usr/local/lib/python3.6/dist-packages/graia/application/init.py", line 7, in
控制台日志输出截图:
File "bot.py", line 2, in
from graia.application import GraiaMiraiApplication, Session
File "/usr/local/lib/python3.6/dist-packages/graia/application/init.py", line 7, in
from contextlib import asynccontextmanager
ImportError: cannot import name 'asynccontextmanager'
运行环境:
描述你遇到的问题:
File "bot.py", line 2, in
from graia.application import GraiaMiraiApplication, Session
File "/usr/local/lib/python3.6/dist-packages/graia/application/init.py", line 7, in
from contextlib import asynccontextmanager
ImportError: cannot import name 'asynccontextmanager'
复现步骤:
该 BUG 会在进行以下操作后出现:
发生错误的代码
File "bot.py", line 2, in
from graia.application import GraiaMiraiApplication, Session
File "/usr/local/lib/python3.6/dist-packages/graia/application/init.py", line 7, in
控制台日志输出截图:
File "bot.py", line 2, in
from graia.application import GraiaMiraiApplication, Session
File "/usr/local/lib/python3.6/dist-packages/graia/application/init.py", line 7, in
from contextlib import asynccontextmanager
ImportError: cannot import name 'asynccontextmanager'
运行环境:
mirai-core
版本: 最新版mirai-api-http
版本:最新版graia-application-mirai
版本: 最新版额外信息: