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

ModuleNotFoundError: No module named 'flask.scaffold' #968

Open
a994862495 opened this issue Oct 25, 2023 · 0 comments
Open

ModuleNotFoundError: No module named 'flask.scaffold' #968

a994862495 opened this issue Oct 25, 2023 · 0 comments

Comments

@a994862495
Copy link

Summary[问题简述(一句话)]
A clear and concise description of what the issue is.
python web.py
Traceback (most recent call last):
File "D:\PythonTools\Anaconda3\envs\voice\lib\site-packages\flask_restx\api.py", line 18, in
from flask.helpers import _endpoint_from_view_func
ImportError: cannot import name '_endpoint_from_view_func' from 'flask.helpers' (D:\PythonTools\Anaconda3\envs\voice\lib\site-packages\flask\helpers.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\PythonProject\MockingBird\web.py", line 1, in
from web import webApp
File "D:\PythonProject\MockingBird\web_init_.py", line 1, in
from web.api import api_blueprint
File "D:\PythonProject\MockingBird\web\api_init_.py", line 2, in
from flask_restx import Api
File "D:\PythonTools\Anaconda3\envs\voice\lib\site-packages\flask_restx_init_.py", line 2, in
from .api import Api # noqa
File "D:\PythonTools\Anaconda3\envs\voice\lib\site-packages\flask_restx\api.py", line 20, in
from flask.scaffold import _endpoint_from_view_func
ModuleNotFoundError: No module named 'flask.scaffold'

Env & To Reproduce[复现与环境]
描述你用的环境、代码版本、模型
os:windows11
python version:3.9.18
torch version:torch-1.9.0+cu102-cp39-cp39-win_amd64

Screenshots[截图(如有)]
If applicable, add screenshots to help
1698252316792

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

1 participant