For further information visit https://errors.pydantic.dev/2.1.2/v/missing
成功运行了,但是在点击选择起始点的时候出现这个问题,我怀疑可能是我浏览器设置的问题?
嘿!我遇到了同样的问题。您找到修复方法了吗?
yes, I find the path: "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\bin\Hostx64\x64"
And add this to the torch_utils.custom_ops.py._find_compiler_bindir
def _find_compiler_bindir(): patterns = [ 'C:/Program Files*/Microsoft Visual Studio/*/Professional/VC/Tools/MSVC/*/bin/Hostx64/x64', 'C:/Program Files*/Microsoft Visual Studio/*/BuildTools/VC/Tools/MSVC/*/bin/Hostx64/x64', 'C:/Program Files*/Microsoft Visual Studio/*/Community/VC/Tools/MSVC/*/bin/Hostx64/x64', 'C:/Program Files*/Microsoft Visual Studio */vc/bin', 'D:/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.36.32532/bin/Hostx64/x64' ] for pattern in patterns: matches = sorted(glob.glob(pattern)) if len(matches): return matches[-1] return None
It may just work at the situation what I met.
我在Linux上。知道如何在 Linux 上做到这一点吗? 该代码在两周前运行良好。但现在我突然遇到了这个问题。 :(
(draggan) bogon:DragGAN zhaoyajie$ python gradio_app.py --device mps
Loading networks from "/Users/zhaoyajie/draggan/checkpoints-pkl/ada/afhqcat.pkl"...
Registering hook for: b256
To create a public link, set share=True in launch().
Task exception was never retrieved future: <Task finished name='wkwpzbk9md_3' coro=<Queue.process_events() done, defined at /Users/zhaoyajie/miniconda3/envs/draggan/lib/python3.11/site-packages/gradio/queueing.py:343> exception=1 validation error for PredictBody event_id Field required [type=missing, input_value={'data': [None, None, 20,...ion_hash': 'wkwpzbk9md'}, input_type=dict] For further information visit https://errors.pydantic.dev/2.3/v/missing> Traceback (most recent call last): File "/Users/zhaoyajie/miniconda3/envs/draggan/lib/python3.11/site-packages/gradio/queueing.py", line 347, in process_events client_awake = await self.gather_event_data(event) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/zhaoyajie/miniconda3/envs/draggan/lib/python3.11/site-packages/gradio/queueing.py", line 220, in gather_event_data data, client_awake = await self.get_message(event, timeout=receive_timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/zhaoyajie/miniconda3/envs/draggan/lib/python3.11/site-packages/gradio/queueing.py", line 456, in get_message return PredictBody(**data), True ^^^^^^^^^^^^^^^^^^^ File "/Users/zhaoyajie/miniconda3/envs/draggan/lib/python3.11/site-packages/pydantic/main.py", line 165, 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={'data': [None, None, 20,...ion_hash': 'wkwpzbk9md'}, input_type=dict] For further information visit https://errors.pydantic.dev/2.3/v/missing Task exception was never retrieved future: <Task finished name='wkwpzbk9md_6' coro=<Queue.process_events() done, defined at /Users/zhaoyajie/miniconda3/envs/draggan/lib/python3.11/site-packages/gradio/queueing.py:343> exception=1 validation error for PredictBody event_id Field required [type=missing, input_value={'data': [None, 'data:ima...ion_hash': 'wkwpzbk9md'}, input_type=dict] For further information visit https://errors.pydantic.dev/2.3/v/missing> Traceback (most recent call last): File "/Users/zhaoyajie/miniconda3/envs/draggan/lib/python3.11/site-packages/gradio/queueing.py", line 347, in process_events client_awake = await self.gather_event_data(event) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/zhaoyajie/miniconda3/envs/draggan/lib/python3.11/site-packages/gradio/queueing.py", line 220, in gather_event_data data, client_awake = await self.get_message(event, timeout=receive_timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/zhaoyajie/miniconda3/envs/draggan/lib/python3.11/site-packages/gradio/queueing.py", line 456, in get_message return PredictBody(**data), True ^^^^^^^^^^^^^^^^^^^ File "/Users/zhaoyajie/miniconda3/envs/draggan/lib/python3.11/site-packages/pydantic/main.py", line 165, 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={'data': [None, 'data:ima...ion_hash': 'wkwpzbk9md'}, input_type=dict] For further information visit https://errors.pydantic.dev/2.3/v/missing Task exception was never retrieved future: <Task finished name='wkwpzbk9md_9' coro=<Queue.process_events() done, defined at /Users/zhaoyajie/miniconda3/envs/draggan/lib/python3.11/site-packages/gradio/queueing.py:343> exception=1 validation error for PredictBody event_id Field required [type=missing, input_value={'data': [None, 1], 'even...ion_hash': 'wkwpzbk9md'}, input_type=dict] For further information visit https://errors.pydantic.dev/2.3/v/missing> Traceback (most recent call last): File "/Users/zhaoyajie/miniconda3/envs/draggan/lib/python3.11/site-packages/gradio/queueing.py", line 347, in process_events client_awake = await self.gather_event_data(event) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/zhaoyajie/miniconda3/envs/draggan/lib/python3.11/site-packages/gradio/queueing.py", line 220, in gather_event_data data, client_awake = await self.get_message(event, timeout=receive_timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/zhaoyajie/miniconda3/envs/draggan/lib/python3.11/site-packages/gradio/queueing.py", line 456, in get_message return PredictBody(**data), True ^^^^^^^^^^^^^^^^^^^ File "/Users/zhaoyajie/miniconda3/envs/draggan/lib/python3.11/site-packages/pydantic/main.py", line 165, 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={'data': [None, 1], 'even...ion_hash': 'wkwpzbk9md'}, input_type=dict] For further information visit https://errors.pydantic.dev/2.3/v/missing Task exception was never retrieved future: <Task finished name='wkwpzbk9md_8' coro=<Queue.process_events() done, defined at /Users/zhaoyajie/miniconda3/envs/draggan/lib/python3.11/site-packages/gradio/queueing.py:343> exception=1 validation error for PredictBody event_id Field required [type=missing, input_value={'data': ['human/stylegan...ion_hash': 'wkwpzbk9md'}, input_type=dict] For further information visit https://errors.pydantic.dev/2.3/v/missing> Traceback (most recent call last): File "/Users/zhaoyajie/miniconda3/envs/draggan/lib/python3.11/site-packages/gradio/queueing.py", line 347, in process_events client_awake = await self.gather_event_data(event) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/zhaoyajie/miniconda3/envs/draggan/lib/python3.11/site-packages/gradio/queueing.py", line 220, in gather_event_data data, client_awake = await self.get_message(event, timeout=receive_timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/zhaoyajie/miniconda3/envs/draggan/lib/python3.11/site-packages/gradio/queueing.py", line 456, in get_message return PredictBody(**data), True ^^^^^^^^^^^^^^^^^^^ File "/Users/zhaoyajie/miniconda3/envs/draggan/lib/python3.11/site-packages/pydantic/main.py", line 165, 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={'data': ['human/stylegan...ion_hash': 'wkwpzbk9md'}, input_type=dict] For further information visit https://errors.pydantic.dev/2.3/v/missing Task exception was never retrieved future: <Task finished name='wkwpzbk9md_11' coro=<Queue.process_events() done, defined at /Users/zhaoyajie/miniconda3/envs/draggan/lib/python3.11/site-packages/gradio/queueing.py:343> exception=1 validation error for PredictBody event_id Field required [type=missing, input_value={'data': [], 'event_data'...ion_hash': 'wkwpzbk9md'}, input_type=dict] For further information visit https://errors.pydantic.dev/2.3/v/missing> Traceback (most recent call last): File "/Users/zhaoyajie/miniconda3/envs/draggan/lib/python3.11/site-packages/gradio/queueing.py", line 347, in process_events client_awake = await self.gather_event_data(event) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/zhaoyajie/miniconda3/envs/draggan/lib/python3.11/site-packages/gradio/queueing.py", line 220, in gather_event_data data, client_awake = await self.get_message(event, timeout=receive_timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/zhaoyajie/miniconda3/envs/draggan/lib/python3.11/site-packages/gradio/queueing.py", line 456, in get_message return PredictBody(**data), True ^^^^^^^^^^^^^^^^^^^ File "/Users/zhaoyajie/miniconda3/envs/draggan/lib/python3.11/site-packages/pydantic/main.py", line 165, 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={'data': [], 'event_data'...ion_hash': 'wkwpzbk9md'}, input_type=dict] For further information visit https://errors.pydantic.dev/2.3/v/missing
Hi, I am having the same issue. Has anyone found a fix? I don't understand what the error is. Thanks!
Has anyone been able to fix this annoying bug 🤯 on Linux?
I finally found the problem 🎉 guys, its the pydantic version that has a breaking change. Replace your latest version of pydantic with
pip install pydantic==1.10.11
I finally found the problem 🎉 guys, its the pydantic version that has a breaking change. Replace your latest version of pydantic with
pip install pydantic==1.10.11
Thank you! This works!