Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when running demo of spatialRGPT #21

Open
mc451742 opened this issue Mar 7, 2025 · 0 comments
Open

Issue when running demo of spatialRGPT #21

mc451742 opened this issue Mar 7, 2025 · 0 comments

Comments

@mc451742
Copy link

mc451742 commented Mar 7, 2025

The web can be displayed normally. When clicking submit, the error shows up:

ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/home/yc27979/anaconda3/envs/srgpt-demo/lib/python3.10/site-packages/pydantic/type_adapter.py", line 271, in _init_core_attrs
    self.core_schema = _getattr_no_parents(self._type, '__pydantic_core_schema__')
  File "/home/yc27979/anaconda3/envs/srgpt-demo/lib/python3.10/site-packages/pydantic/type_adapter.py", line 55, in _getattr_no_parents
    raise AttributeError(attribute)
AttributeError: __pydantic_core_schema__
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(<some type>) 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant