Open PeteInBrissie opened 1 year ago
Have followed instructions a few times, 64 bit Raspberry Pi Lite. Have also updated to the latest versions of everything including ElevenLabs API. I've run Bump Pydantic over everything and the error persists.
Any thoughts?
Thanks.
pete@raspberrypi:~/bmo $ python ./main.py /home/pete/.local/lib/python3.9/site-packages/pydantic/_internal/_config.py:261: UserWarning: Valid config keys have changed in V2:
- 'underscore_attrs_are_private' has been removed warnings.warn(message, UserWarning) Traceback (most recent call last): File "/home/pete/bmo/./main.py", line 17, in from lib.chatgpt import ChatGPT, Conversation, Message, initial_message File "/home/pete/bmo/lib/chatgpt.py", line 11, in from lib.text_to_speech import TextToSpeech File "/home/pete/bmo/lib/text_to_speech/init.py", line 6, in from lib.text_to_speech.elevenlabs_api import ElevenLabsAPI File "/home/pete/bmo/lib/text_to_speech/elevenlabs_api.py", line 11, in from elevenlabs import generate, Voice, VoiceSettings File "/home/pete/.local/lib/python3.9/site-packages/elevenlabs/init.py", line 1, in from .api import # noqa F403 File "/home/pete/.local/lib/python3.9/site-packages/elevenlabs/api/init.py", line 2, in from .history import # noqa F403 File "/home/pete/.local/lib/python3.9/site-packages/elevenlabs/api/history.py", line 9, in from .voice import VoiceSettings File "/home/pete/.local/lib/python3.9/site-packages/elevenlabs/api/voice.py", line 30, in class VoiceClone(API): File "/home/pete/.local/lib/python3.9/site-packages/elevenlabs/api/voice.py", line 38, in VoiceClone def computed_files_tuple(cls, values) -> List[str]: File "/home/pete/.local/lib/python3.9/site-packages/pydantic/deprecated/class_validators.py", line 222, in root_validator return root_validator()(*__args) # type: ignore File "/home/pete/.local/lib/python3.9/site-packages/pydantic/deprecated/class_validators.py", line 228, in root_validator raise PydanticUserError( pydantic.errors.PydanticUserError: If you use
@root_validator
with pre=False (the default) you MUST specifyskip_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.0.3/u/root-validator-pre-skip
Fixed by downgrading to Pydantic 1.10
Have followed instructions a few times, 64 bit Raspberry Pi Lite. Have also updated to the latest versions of everything including ElevenLabs API. I've run Bump Pydantic over everything and the error persists.
Any thoughts?
Thanks.
pete@raspberrypi:~/bmo $ python ./main.py /home/pete/.local/lib/python3.9/site-packages/pydantic/_internal/_config.py:261: UserWarning: Valid config keys have changed in V2:
@root_validator
with pre=False (the default) you MUST specifyskip_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.0.3/u/root-validator-pre-skip