GraiaProject / Application

一个设计精巧, 协议实现完备的, 基于 mirai-api-http 的即时聊天软件自动化框架.
https://graia-document.vercel.app/
GNU Affero General Public License v3.0
438 stars 63 forks source link

python代码bot.py运行出错,./mcl可以登陆成功 #126

Closed lgy-1587 closed 3 years ago

lgy-1587 commented 3 years ago

描述你遇到的问题:

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 会在进行以下操作后出现:

  1. 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' 运行环境:

额外信息:

GreyElaina commented 3 years ago

u b u n t u 1 6

GreyElaina commented 3 years ago

更新python解决问题

lgy-1587 commented 3 years ago

更新python解决问题

我现在是python3.6了,需要更新到python3.8吗

GreyElaina commented 3 years ago

更 更**的

lgy-1587 commented 3 years ago

更 更**的

更新的吗