Replies: 3 comments
-
|
The version of FastAPI that you're using supports using Pydantic 2.x https://github.com/tiangolo/fastapi/blob/040ad986d48bb9a400de804f7f25abb856d85e1a/pyproject.toml#L44 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Since version 0.100.0 FastAPI supports Pydantic v2, please check https://fastapi.tiangolo.com/release-notes/#01000 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Thank you. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
PYPI now has pydantic at 2.x and having two versions of Pydantic at the same time causes conflicts in resolving dependencies for some other packages, because pydantic-1.x and pydantic-2.x use the same namespace 'pydantic'.
I am trying to create the FreeBSD port for FreqTrade https://www.freqtrade.io/, but it requires pydantic-2.x, but FastAPI is one of its dependencies, and it requires pydantic-1.x
2 versions of the same package can't exist simultaneously in the same environment.
Operating System
Other
Operating System Details
FreeBSD
FastAPI Version
0.108.0
Pydantic Version
1.x
Python Version
3.9
Additional Context
There is another discussion mentioning pydantic with unclear outcome.
Beta Was this translation helpful? Give feedback.
All reactions