Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uvicorn 0.19.0 移除了debug选项导致不兼容 #4

Closed
Sunshine40 opened this issue Oct 24, 2022 · 1 comment
Closed

uvicorn 0.19.0 移除了debug选项导致不兼容 #4

Sunshine40 opened this issue Oct 24, 2022 · 1 comment

Comments

@Sunshine40
Copy link
Contributor

Sunshine40 commented Oct 24, 2022

根据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了

@NekoRabi
Copy link
Owner

NekoRabi commented Nov 6, 2022

谢谢提醒,已将版本固定为 0.17.6

@NekoRabi NekoRabi closed this as completed Nov 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants