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

while loading model i get error on ubuntu 24 #10

Open
namdroid opened this issue Nov 11, 2024 · 1 comment
Open

while loading model i get error on ubuntu 24 #10

namdroid opened this issue Nov 11, 2024 · 1 comment

Comments

@namdroid
Copy link

File "/home/dev/vixttsdemo/.env/lib/python3.10/site-packages/pydantic/_internal/_generate_schema.py", line 558, 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.

@namdroid namdroid changed the title while loading model i get error: while loading model i get error on ubuntu 24 Nov 11, 2024
@namdroid
Copy link
Author

pip install --upgrade pydantic==2.8.2
pip install --upgrade pydantic-core==2.20.1
pip install --upgrade fastapi==0.112.4

works

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