Error when changing any settings in webui #299

Closed
opened 2023-07-07 20:18:06 +07:00 by bluetooth · 4 comments

I followed the installation guide on a new machine, but am getting this error when I try and generate any message or change settings in the webui:

future: <Task finished name='iddfpeauzm_46' coro=<Queue.process_events() done, defined at /root/ai-voice-cloning/venv/lib/python3.10/site-packages/gradio/queueing.py:343> exception=1 validation error for PredictBody
event_id
  Field required [type=missing, input_value={'fn_index': 46, 'data': ...ion_hash': 'iddfpeauzm'}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.1.2/v/missing>
Traceback (most recent call last):
  File "/root/ai-voice-cloning/venv/lib/python3.10/site-packages/gradio/queueing.py", line 347, in process_events
    client_awake = await self.gather_event_data(event)
  File "/root/ai-voice-cloning/venv/lib/python3.10/site-packages/gradio/queueing.py", line 220, in gather_event_data
    data, client_awake = await self.get_message(event, timeout=receive_timeout)
  File "/root/ai-voice-cloning/venv/lib/python3.10/site-packages/gradio/queueing.py", line 456, in get_message
    return PredictBody(**data), True
  File "/root/ai-voice-cloning/venv/lib/python3.10/site-packages/pydantic/main.py", line 150, in __init__
    __pydantic_self__.__pydantic_validator__.validate_python(data, self_instance=__pydantic_self__)
pydantic_core._pydantic_core.ValidationError: 1 validation error for PredictBody
event_id
  Field required [type=missing, input_value={'fn_index': 46, 'data': ...ion_hash': 'iddfpeauzm'}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.1.2/v/missing
I followed the installation guide on a new machine, but am getting this error when I try and generate any message or change settings in the webui: ```bash future: <Task finished name='iddfpeauzm_46' coro=<Queue.process_events() done, defined at /root/ai-voice-cloning/venv/lib/python3.10/site-packages/gradio/queueing.py:343> exception=1 validation error for PredictBody event_id Field required [type=missing, input_value={'fn_index': 46, 'data': ...ion_hash': 'iddfpeauzm'}, input_type=dict] For further information visit https://errors.pydantic.dev/2.1.2/v/missing> Traceback (most recent call last): File "/root/ai-voice-cloning/venv/lib/python3.10/site-packages/gradio/queueing.py", line 347, in process_events client_awake = await self.gather_event_data(event) File "/root/ai-voice-cloning/venv/lib/python3.10/site-packages/gradio/queueing.py", line 220, in gather_event_data data, client_awake = await self.get_message(event, timeout=receive_timeout) File "/root/ai-voice-cloning/venv/lib/python3.10/site-packages/gradio/queueing.py", line 456, in get_message return PredictBody(**data), True File "/root/ai-voice-cloning/venv/lib/python3.10/site-packages/pydantic/main.py", line 150, in __init__ __pydantic_self__.__pydantic_validator__.validate_python(data, self_instance=__pydantic_self__) pydantic_core._pydantic_core.ValidationError: 1 validation error for PredictBody event_id Field required [type=missing, input_value={'fn_index': 46, 'data': ...ion_hash': 'iddfpeauzm'}, input_type=dict] For further information visit https://errors.pydantic.dev/2.1.2/v/missing ```
bluetooth changed title from Error when generating TTS to Error when changing any settings in webui 2023-07-07 20:26:30 +07:00

Same issue. Had an older version before most recent webui.py changes and works fine.

Same issue. Had an older version before most recent webui.py changes and works fine.

Seems more of a Gradio issue than a me thing: https://github.com/gradio-app/gradio/pull/4835

https://github.com/gradio-app/gradio/commit/1c9ebdea5b288bd7358ba6e0d72d8069c021e44a

In which case, you'll need to update Gradio again (or downgrade it, because I don't ever actually update my dependencies).

Seems more of a Gradio issue than a me thing: https://github.com/gradio-app/gradio/pull/4835 [https://github.com/gradio-app/gradio/commit/1c9ebdea5b288bd7358ba6e0d72d8069c021e44a](https://github.com/gradio-app/gradio/commit/1c9ebdea5b288bd7358ba6e0d72d8069c021e44a) In which case, you'll need to update Gradio again (or downgrade it, because I don't ever actually update my dependencies).

anyone fix this issue? I have same kinda problem

anyone fix this issue? I have same kinda problem

@aphixe The dependency needs to be pinned. There may be another that isn't pinned that's broke it as well.
I haven't bothered to guess which version of gradio is right yet or fix it, but that should fix it both for you and for anyone else who will have this issue. I might mess with it later today.

@aphixe The dependency needs to be pinned. There may be another that isn't pinned that's broke it as well. I haven't bothered to guess which version of gradio is right yet or fix it, but that should fix it both for you and for anyone else who will have this issue. I might mess with it later today.
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mrq/ai-voice-cloning#299
There is no content yet.