-
Notifications
You must be signed in to change notification settings - Fork 12
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
Dependency Conflict: Gradio and Pydantic in demo-srpgt Environment #12
Comments
pydantic==2.9.0 |
Could you check if fastapi version 0.112.0 is installed? I will update the dependencies soon. |
I met the same problem and yes I see fastapi 0.112.4 in my environment.
This works for me too. |
I got the similar question, which produces:
Just follow the guidance from README to reproduce the demo of spatialRGPT. My environment is: Not sure why it does not work. |
Description
It seems like the demo-srpgt environment may not fully resolve the dependency conflict between Gradio and Pydantic. While the README provides a solution for this, I encountered issues after successfully building the Gradio demo. Upon running it, any submission triggers a pydantic error.
An error I am now seeing is
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.
Steps to Reproduce
1. Follow the instructions in the README to set up the demo-srpgt environment.
2. Build and run the Gradio demo.
3. Attempt any interaction in the demo.
4. Observe the error related to Pydantic
If there’s an existing solution for this issue that I might have overlooked, please let me know. Alternatively, guidance on resolving this dependency conflict would be greatly appreciated.
The text was updated successfully, but these errors were encountered: