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

win11 安装完启动报错TypeError: run() got an unexpected keyword argument 'debug' #225

Closed
alanOO7 opened this issue May 31, 2024 · 3 comments

Comments

@alanOO7
Copy link

alanOO7 commented May 31, 2024

pip 安装完启动报错,
提示 from connexion.apps.flask import FlaskApi, FlaskApp
File "C:\Users\mcnalwan\AppData\Local\anaconda3\envs\paddlelabel\Lib\site-packages\connexion\apps\flask.py", line 11, in
from a2wsgi import WSGIMiddleware
ModuleNotFoundError: Please install connexion using the 'flask' extra
, 通过pip install "connexion[flask]" 安装后启动
提示
Traceback (most recent call last):
File "C:\Users\mcnalwan\AppData\Local\anaconda3\envs\paddlelabel\Lib\site-packages\connexion\middleware\main.py", line 475, in run
import uvicorn
ModuleNotFoundError: No module named 'uvicorn'
通过 pip install "connexion[uvicorn]" 安装后启动
提示
INFO [paddlelabel.config.19]: Database path: sqlite:///C:\Users\mcnalwan.paddlelabel\paddlelabel.db
INFO [paddlelabel.main.119]: Version: 1.0.1
INFO [paddlelabel.main.120]: PaddleLabel is running at http://localhost:17995
Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "C:\Users\mcnalwan\AppData\Local\anaconda3\envs\paddlelabel\Scripts\paddlelabel.exe_main
.py", line 7, in
File "C:\Users\mcnalwan\AppData\Local\anaconda3\envs\paddlelabel\Lib\site-packages\paddlelabel_main
.py", line 122, in run
connexion_app.run(host=configs.host, port=configs.port, debug=configs.debug)
File "C:\Users\mcnalwan\AppData\Local\anaconda3\envs\paddlelabel\Lib\site-packages\connexion\apps\abstract.py", line 281, in run
self.middleware.run(import_string, **kwargs)
File "C:\Users\mcnalwan\AppData\Local\anaconda3\envs\paddlelabel\Lib\site-packages\connexion\middleware\main.py", line 497, in run
uvicorn.run(app, **kwargs)
TypeError: run() got an unexpected keyword argument 'debug'

请问如何处理

@ericosmic
Copy link

linux安装后遇到同样的问题, 怎样解决啊

Copy link

github-actions bot commented Aug 3, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@deyinliwork
Copy link

尝试让环境中的uvicorn版本为0.18.1

pip install uvicorn==0.18.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants