You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "<path-to-project>\Majsoul-QQBot\main.py", line 66, in
bot.run(port=17580)
File "<path-to-site-packages>\mirai\bot.py", line 197, in run
MiraiRunner(self).run(host, port, asgi_server, **kwargs)
File "<path-to-site-packages>\mirai\bot.py", line 255, in run
if not asgi_serve(
File "<path-to-site-packages>\mirai\asgi.py", line 205, in asgi_serve
run(app, host=host, port=port, debug=True, **kwargs)
TypeError: run() got an unexpected keyword argument 'debug'
改下requirements.txt的事,我就不提Pull Request了
The text was updated successfully, but these errors were encountered:
根据uvicorn更新日志
Version 0.19.0
...
Removed
Remove the --debug flag (encode/uvicorn#1640) 14/09/22
Remove the DebugMiddleware (encode/uvicorn#1697) 07/10/22
现在通过pip快速安装依赖后,运行main.py会产生如下错误:
Traceback (most recent call last):
File "<path-to-project>\Majsoul-QQBot\main.py", line 66, in
bot.run(port=17580)
File "<path-to-site-packages>\mirai\bot.py", line 197, in run
MiraiRunner(self).run(host, port, asgi_server, **kwargs)
File "<path-to-site-packages>\mirai\bot.py", line 255, in run
if not asgi_serve(
File "<path-to-site-packages>\mirai\asgi.py", line 205, in asgi_serve
run(app, host=host, port=port, debug=True, **kwargs)
TypeError: run() got an unexpected keyword argument 'debug'
改下requirements.txt的事,我就不提Pull Request了
The text was updated successfully, but these errors were encountered: