babysor / MockingBird

🚀AI拟声: 5秒内克隆您的声音并生成任意语音内容 Clone a voice in 5 seconds to generate arbitrary speech in real-time

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ModuleNotFoundError: No module named 'flask.scaffold'

a994862495 opened this issue · comments

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