You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I start generate a 3d model from image, an error occured.
How could I fix this problem?
Could someone share all pip installed packages?
Here are logs:
`
C:\WINDOWS\system32>cd /d D:\My_Creation\Unique3D
D:\My_Creation\Unique3D>python app/gradio_local.py --port 7860
Warning! extra parameter in cli is not verified, may cause erros.
Loading pipeline components...: 100%|████████████████████████████████████████████████████| 5/5 [00:00<00:00, 55.09it/s]
You have disabled the safety checker for <class 'custum_3d_diffusion.custum_pipeline.unifield_pipeline_img2mvimg.StableDiffusionImage2MVCustomPipeline'> by passing safety_checker=None. Ensure that you abide to the conditions of the Stable Diffusion license and do not expose unfiltered results in services or applications open to the public. Both the diffusers team and Hugging Face strongly recommend to keep the safety filter enabled in all public facing circumstances, disabling it only for use-cases that involve analyzing network behavior or auditing its results. For more information, please have a look at huggingface/diffusers#254 .
Warning! extra parameter in cli is not verified, may cause erros.
C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\huggingface_hub\file_download.py:1142: FutureWarning: resume_download is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use force_download=True.
warnings.warn(
C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\torch_utils.py:831: UserWarning: TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly. To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage()
return self.fget.get(instance, owner)()
Loading pipeline components...: 100%|██████████████████████████████████████████████████| 5/5 [00:00<00:00, 1671.70it/s]
You have disabled the safety checker for <class 'custum_3d_diffusion.custum_pipeline.unifield_pipeline_img2img.StableDiffusionImageCustomPipeline'> by passing safety_checker=None. Ensure that you abide to the conditions of the Stable Diffusion license and do not expose unfiltered results in services or applications open to the public. Both the diffusers team and Hugging Face strongly recommend to keep the safety filter enabled in all public facing circumstances, disabling it only for use-cases that involve analyzing network behavior or auditing its results. For more information, please have a look at huggingface/diffusers#254 .
Loading pipeline components...: 100%|████████████████████████████████████████████████████| 6/6 [00:11<00:00, 1.91s/it]
Pipelines loaded with dtype=torch.float16 cannot run with cpu device. It is not recommended to move them to cpu as running them will fail. Please make sure to use an accelerator to run the pipeline in inference, due to the lack of support forfloat16 operations on this device in PyTorch. Please, remove the torch_dtype=torch.float16 argument, or use another device for inference.
Pipelines loaded with dtype=torch.float16 cannot run with cpu device. It is not recommended to move them to cpu as running them will fail. Please make sure to use an accelerator to run the pipeline in inference, due to the lack of support forfloat16 operations on this device in PyTorch. Please, remove the torch_dtype=torch.float16 argument, or use another device for inference.
Pipelines loaded with dtype=torch.float16 cannot run with cpu device. It is not recommended to move them to cpu as running them will fail. Please make sure to use an accelerator to run the pipeline in inference, due to the lack of support forfloat16 operations on this device in PyTorch. Please, remove the torch_dtype=torch.float16 argument, or use another device for inference.
Loading pipeline components...: 100%|████████████████████████████████████████████████████████████| 6/6 [00:00<?, ?it/s]
Running on local URL: http://127.0.0.1:7860
To create a public link, set share=True in launch().
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 428, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 78, in call
return await self.app(scope, receive, send)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\fastapi\applications.py", line 1054, in call
await super().call(scope, receive, send)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\applications.py", line 112, in call
await self.middleware_stack(scope, receive, send)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\middleware\errors.py", line 187, in call
raise exc
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\middleware\errors.py", line 165, in call
await self.app(scope, receive, send)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\route_utils.py", line 720, in call
await self.simple_response(scope, receive, send, request_headers=headers)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\route_utils.py", line 736, in simple_response
await self.app(scope, receive, send)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\middleware\exceptions.py", line 62, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
raise exc
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\routing.py", line 714, in call
await self.middleware_stack(scope, receive, send)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\routing.py", line 734, in app
await route.handle(scope, receive, send)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\routing.py", line 288, in handle
await self.app(scope, receive, send)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\routing.py", line 76, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
raise exc
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\routing.py", line 73, in app
response = await f(request)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\fastapi\routing.py", line 291, in app solved_result = await solve_dependencies(
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\fastapi\dependencies\utils.py", line 666, in solve_dependencies
) = await request_body_to_args( # body_params checked above
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\fastapi\dependencies\utils.py", line 891, in request_body_to_args
fields_to_extract = get_cached_model_fields(first_field.type)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\fastapi_compat.py", line 659, in get_cached_model_fields
return get_model_fields(model)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\fastapi_compat.py", line 285, in get_model_fields
return [
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\fastapi_compat.py", line 286, in
ModelField(field_info=field_info, name=name)
File "", line 6, in init
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\fastapi_compat.py", line 111, in post_init
self._type_adapter: TypeAdapter[Any] = TypeAdapter(
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic\type_adapter.py", line 212, in init
core_schema = _get_schema(type, config_wrapper, parent_depth=_parent_depth + 1)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic\type_adapter.py", line 81, in get_schema
schema = gen.generate_schema(type)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic_internal_generate_schema.py", line 502, in generate_schema
schema = self._generate_schema_inner(obj)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic_internal_generate_schema.py", line 737, in _generate_schema_inner
return self._annotated_schema(obj)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic_internal_generate_schema.py", line 1757, in _annotated_schema
schema = self._apply_annotations(source_type, annotations)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic_internal_generate_schema.py", line 1825, in _apply_annotations
schema = get_inner_schema(source_type)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic_internal_schema_generation_shared.py", line 82, in call
schema = self._handler(source_type)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic_internal_generate_schema.py", line 1907, in new_handler
schema = metadata_get_schema(source, get_inner_schema)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic_internal_generate_schema.py", line 1903, in
lambda source, handler: handler(source)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic_internal_schema_generation_shared.py", line 82, in call
schema = self._handler(source_type)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic_internal_generate_schema.py", line 1806, in inner_handler
schema = self._generate_schema_inner(obj)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic_internal_generate_schema.py", line 758, in _generate_schema_inner
return self.match_type(obj)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic_internal_generate_schema.py", line 840, in match_type
return self._match_generic_type(obj, origin)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic_internal_generate_schema.py", line 864, in _match_generic_type
return self._union_schema(obj)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic_internal_generate_schema.py", line 1152, in _union_schema
choices.append(self.generate_schema(arg))
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic_internal_generate_schema.py", line 502, in generate_schema
schema = self._generate_schema_inner(obj)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic_internal_generate_schema.py", line 758, in _generate_schema_inner
return self.match_type(obj)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic_internal_generate_schema.py", line 844, in match_type
return self._unknown_type_schema(obj)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic_internal_generate_schema.py", line 405, in _unknown_type_schema
raise PydanticSchemaGenerationError(
pydantic.errors.PydanticSchemaGenerationError: Unable to generate pydantic-core schema for <class 'starlette.requests.Request'>. Set arbitrary_types_allowed=True in the model_config to ignore this error or implement __get_pydantic_core_schema__ on your type to fully support it.
If you got this error by calling handler() within __get_pydantic_core_schema__ then you likely need to call handler.generate_schema(<some type>) since we do not call __get_pydantic_core_schema__ on <some type> otherwise to avoid infinite recursion.
When I start generate a 3d model from image, an error occured.
How could I fix this problem?
Could someone share all pip installed packages?
Here are logs:
`
C:\WINDOWS\system32>cd /d D:\My_Creation\Unique3D
D:\My_Creation\Unique3D>python app/gradio_local.py --port 7860
Warning! extra parameter in cli is not verified, may cause erros.
Loading pipeline components...: 100%|████████████████████████████████████████████████████| 5/5 [00:00<00:00, 55.09it/s]
You have disabled the safety checker for <class 'custum_3d_diffusion.custum_pipeline.unifield_pipeline_img2mvimg.StableDiffusionImage2MVCustomPipeline'> by passing
safety_checker=None
. Ensure that you abide to the conditions of the Stable Diffusion license and do not expose unfiltered results in services or applications open to the public. Both the diffusers team and Hugging Face strongly recommend to keep the safety filter enabled in all public facing circumstances, disabling it only for use-cases that involve analyzing network behavior or auditing its results. For more information, please have a look at huggingface/diffusers#254 .Warning! extra parameter in cli is not verified, may cause erros.
C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\huggingface_hub\file_download.py:1142: FutureWarning:
resume_download
is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, useforce_download=True
.warnings.warn(
C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\torch_utils.py:831: UserWarning: TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly. To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage()
return self.fget.get(instance, owner)()
Loading pipeline components...: 100%|██████████████████████████████████████████████████| 5/5 [00:00<00:00, 1671.70it/s]
You have disabled the safety checker for <class 'custum_3d_diffusion.custum_pipeline.unifield_pipeline_img2img.StableDiffusionImageCustomPipeline'> by passing
safety_checker=None
. Ensure that you abide to the conditions of the Stable Diffusion license and do not expose unfiltered results in services or applications open to the public. Both the diffusers team and Hugging Face strongly recommend to keep the safety filter enabled in all public facing circumstances, disabling it only for use-cases that involve analyzing network behavior or auditing its results. For more information, please have a look at huggingface/diffusers#254 .Loading pipeline components...: 100%|████████████████████████████████████████████████████| 6/6 [00:11<00:00, 1.91s/it]
Pipelines loaded with
dtype=torch.float16
cannot run withcpu
device. It is not recommended to move them tocpu
as running them will fail. Please make sure to use an accelerator to run the pipeline in inference, due to the lack of support forfloat16
operations on this device in PyTorch. Please, remove thetorch_dtype=torch.float16
argument, or use another device for inference.Pipelines loaded with
dtype=torch.float16
cannot run withcpu
device. It is not recommended to move them tocpu
as running them will fail. Please make sure to use an accelerator to run the pipeline in inference, due to the lack of support forfloat16
operations on this device in PyTorch. Please, remove thetorch_dtype=torch.float16
argument, or use another device for inference.Pipelines loaded with
dtype=torch.float16
cannot run withcpu
device. It is not recommended to move them tocpu
as running them will fail. Please make sure to use an accelerator to run the pipeline in inference, due to the lack of support forfloat16
operations on this device in PyTorch. Please, remove thetorch_dtype=torch.float16
argument, or use another device for inference.Loading pipeline components...: 100%|████████████████████████████████████████████████████████████| 6/6 [00:00<?, ?it/s]
Running on local URL: http://127.0.0.1:7860
To create a public link, set
share=True
inlaunch()
.During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 428, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 78, in call
return await self.app(scope, receive, send)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\fastapi\applications.py", line 1054, in call
await super().call(scope, receive, send)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\applications.py", line 112, in call
await self.middleware_stack(scope, receive, send)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\middleware\errors.py", line 187, in call
raise exc
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\middleware\errors.py", line 165, in call
await self.app(scope, receive, send)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\route_utils.py", line 720, in call
await self.simple_response(scope, receive, send, request_headers=headers)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\gradio\route_utils.py", line 736, in simple_response
await self.app(scope, receive, send)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\middleware\exceptions.py", line 62, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
raise exc
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\routing.py", line 714, in call
await self.middleware_stack(scope, receive, send)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\routing.py", line 734, in app
await route.handle(scope, receive, send)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\routing.py", line 288, in handle
await self.app(scope, receive, send)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\routing.py", line 76, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette_exception_handler.py", line 53, in wrapped_app
raise exc
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\routing.py", line 73, in app
response = await f(request)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\fastapi\routing.py", line 291, in app solved_result = await solve_dependencies(
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\fastapi\dependencies\utils.py", line 666, in solve_dependencies
) = await request_body_to_args( # body_params checked above
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\fastapi\dependencies\utils.py", line 891, in request_body_to_args
fields_to_extract = get_cached_model_fields(first_field.type)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\fastapi_compat.py", line 659, in get_cached_model_fields
return get_model_fields(model)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\fastapi_compat.py", line 285, in get_model_fields
return [
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\fastapi_compat.py", line 286, in
ModelField(field_info=field_info, name=name)
File "", line 6, in init
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\fastapi_compat.py", line 111, in post_init
self._type_adapter: TypeAdapter[Any] = TypeAdapter(
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic\type_adapter.py", line 212, in init
core_schema = _get_schema(type, config_wrapper, parent_depth=_parent_depth + 1)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic\type_adapter.py", line 81, in get_schema
schema = gen.generate_schema(type)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic_internal_generate_schema.py", line 502, in generate_schema
schema = self._generate_schema_inner(obj)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic_internal_generate_schema.py", line 737, in _generate_schema_inner
return self._annotated_schema(obj)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic_internal_generate_schema.py", line 1757, in _annotated_schema
schema = self._apply_annotations(source_type, annotations)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic_internal_generate_schema.py", line 1825, in _apply_annotations
schema = get_inner_schema(source_type)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic_internal_schema_generation_shared.py", line 82, in call
schema = self._handler(source_type)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic_internal_generate_schema.py", line 1907, in new_handler
schema = metadata_get_schema(source, get_inner_schema)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic_internal_generate_schema.py", line 1903, in
lambda source, handler: handler(source)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic_internal_schema_generation_shared.py", line 82, in call
schema = self._handler(source_type)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic_internal_generate_schema.py", line 1806, in inner_handler
schema = self._generate_schema_inner(obj)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic_internal_generate_schema.py", line 758, in _generate_schema_inner
return self.match_type(obj)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic_internal_generate_schema.py", line 840, in match_type
return self._match_generic_type(obj, origin)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic_internal_generate_schema.py", line 864, in _match_generic_type
return self._union_schema(obj)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic_internal_generate_schema.py", line 1152, in _union_schema
choices.append(self.generate_schema(arg))
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic_internal_generate_schema.py", line 502, in generate_schema
schema = self._generate_schema_inner(obj)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic_internal_generate_schema.py", line 758, in _generate_schema_inner
return self.match_type(obj)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic_internal_generate_schema.py", line 844, in match_type
return self._unknown_type_schema(obj)
File "C:\Users\Isidore\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic_internal_generate_schema.py", line 405, in _unknown_type_schema
raise PydanticSchemaGenerationError(
pydantic.errors.PydanticSchemaGenerationError: Unable to generate pydantic-core schema for <class 'starlette.requests.Request'>. Set
arbitrary_types_allowed=True
in the model_config to ignore this error or implement__get_pydantic_core_schema__
on your type to fully support it.If you got this error by calling handler() within
__get_pydantic_core_schema__
then you likely need to callhandler.generate_schema(<some type>)
since we do not call__get_pydantic_core_schema__
on<some type>
otherwise to avoid infinite recursion.For further information visit https://errors.pydantic.dev/2.7/u/schema-for-unknown-type
`
The text was updated successfully, but these errors were encountered: