Ikaros-521 / AI-Vtuber

AI Vtuber是一个由 【ChatterBot/ChatGPT/claude/langchain/chatglm/text-gen-webui/闻达/千问/kimi/ollama】 驱动的虚拟主播【Live2D/UE/xuniren】,可以在 【Bilibili/抖音/快手/微信视频号/拼多多/斗鱼/YouTube/twitch/TikTok】 直播中与观众实时互动 或 直接在本地进行聊天。它使用TTS技术【edge-tts/VITS/elevenlabs/bark/bert-vits2/睿声】生成回答并可以选择【so-vits-svc/DDSP-SVC】变声;指令协同SD画图。
https://ikaros-521.github.io/Luna-Docs/site/
GNU General Public License v3.0
2.8k stars 430 forks source link

pydantic.errors.PydanticUserError: If you use `@root_validator` with pre=False (the default) you MUST specify `skip_on_failure=True`. Note that `@root_validator` is deprecated and should be replaced with `@model_validator`. #857

Closed albertyu123456789 closed 3 months ago

albertyu123456789 commented 3 months ago

操作系统

Windows

Python 版本

3.10.11

AI Vtuber 版本

20240524

描述问题

pydantic.errors.PydanticUserError: If you use @root_validator with pre=False (the default) you MUST specify skip_on_failure=True. Note that @root_validator is deprecated and should be replaced with @model_validator.

复现步骤

1.開啟"1.双击我启动程序" 2.報錯

期望的结果

No response

截图或日志

pygame 2.5.2 (SDL 2.28.3, Python 3.10.14) Hello from the pygame community. https://www.pygame.org/contribute.html Traceback (most recent call last): File "D:\AI-Vtuber\webui.py", line 13, in from utils.audio import Audio File "D:\AI-Vtuber\utils\audio.py", line 16, in from elevenlabs import generate, play, set_api_key File "D:\AI-Vtuber\Miniconda3\lib\site-packages\elevenlabs__init.py", line 1, in from .api import # noqa F403 File "D:\AI-Vtuber\Miniconda3\lib\site-packages\elevenlabs\api__init__.py", line 2, in from .history import # noqa F403 File "D:\AI-Vtuber\Miniconda3\lib\site-packages\elevenlabs\api\history.py", line 9, in from .voice import VoiceSettings File "D:\AI-Vtuber\Miniconda3\lib\site-packages\elevenlabs\api\voice.py", line 21, in class VoiceClone(API): File "D:\AI-Vtuber\Miniconda3\lib\site-packages\elevenlabs\api\voice.py", line 29, in VoiceClone def computed_files_tuple(cls, values) -> List[str]: File "D:\AI-Vtuber\Miniconda3\lib\site-packages\pydantic\deprecated\class_validators.py", line 243, in root_validator return root_validator()(*args) # type: ignore File "D:\AI-Vtuber\Miniconda3\lib\site-packages\pydantic\deprecated\class_validators.py", line 249, in root_validator raise PydanticUserError( pydantic.errors.PydanticUserError: If you use @root_validator with pre=False (the default) you MUST specify skip_on_failure=True. Note that @root_validator is deprecated and should be replaced with @model_validator.

For further information visit https://errors.pydantic.dev/2.7/u/root-validator-pre-skip

0x648 commented 3 months ago

请正确描述问题