Unknown error preventing demo from running

#5
by rliu - opened
Columbia University Computer Vision Lab org

Encountering this bug a few days ago and couldn't figure out what's wrong. Could be a issue with gradio version? Would it be possible to take a look @radames ?

/home/user/.pyenv/versions/3.10.12/lib/python3.10/site-packages/pydantic/main.py:894: PydanticDeprecatedSince20:

The `dict` method is deprecated; use `model_dump` instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.0.2/migration/

Task exception was never retrieved
future: <Task finished name='j8jlevnxl6c_4' coro=<Queue.process_events() done, defined at /home/user/.pyenv/versions/3.10.12/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': 4, 'data': [...on_hash': 'j8jlevnxl6c'}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.1.2/v/missing>
Traceback (most recent call last):
  File "/home/user/.pyenv/versions/3.10.12/lib/python3.10/site-packages/gradio/queueing.py", line 347, in process_events
    client_awake = await self.gather_event_data(event)
  File "/home/user/.pyenv/versions/3.10.12/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 "/home/user/.pyenv/versions/3.10.12/lib/python3.10/site-packages/gradio/queueing.py", line 456, in get_message
    return PredictBody(**data), True
  File "/home/user/.pyenv/versions/3.10.12/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': 4, 'data': [...on_hash': 'j8jlevnxl6c'}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.1.2/v/missing

hi @rliu , I guess it's fixed now right?
Probably updating to latest Gradio version would fix the Pydantic problem

Sign up or log in to comment