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

Error when run demo #20

Open
HelloAlgorithmBob opened this issue Feb 11, 2025 · 2 comments
Open

Error when run demo #20

HelloAlgorithmBob opened this issue Feb 11, 2025 · 2 comments

Comments

@HelloAlgorithmBob
Copy link

HelloAlgorithmBob commented Feb 11, 2025

ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/mnt/nvme/miniconda3/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 "/mnt/nvme/miniconda3/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

After I run the demo, it can show the web. However, after I upload picture and instruction. It shows connection error.
And in the terminal, there is this error.
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/mnt/nvme/miniconda3/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 "/mnt/nvme/miniconda3/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

@HelloAlgorithmBob HelloAlgorithmBob changed the title urllib.error.HTTPError: HTTP Error 403: rate limit exceeded Error when run demo Feb 11, 2025
@mc451742
Copy link

mc451742 commented Mar 7, 2025

I got the exact same problem when running the demo of spatialRGPT. 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.

@LInk-wayhome
Copy link

pydantic==2.9.0
pydantic-core==2.23.2
gradio==4.43.0
work for me
see #12
it might help you

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

3 participants