一个优雅且完备的 Python QQ 自动化框架,基于 Mirai API HTTP v2。 Powered by Graia Project.
GNU Affero General Public License v3.0
751
stars
45
forks
source link
ImportError: cannot import name 'adapter_ctx' from 'graia.ariadne.context' #189
Closed
bakaEC closed 2 years ago
问题
小弟不才,移植了个人写的项目之后发现adapter_ctx的Import error,重装MCL和graia-ariadne都试过了,还是如此。
使用环境:
日志 PS C:\Users\Administrator\Desktop\bot> python .\main.py Traceback (most recent call last): File "C:\Users\Administrator\Desktop\bot\main.py", line 8, in
from graia.ariadne.context import adapter_ctx
ImportError: cannot import name 'adapter_ctx' from 'graia.ariadne.context' (C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\graia\ariadne\context.py)