How do i make packages that aren't compatible with pydantic v2 work #10092
-
First Check
Commit to Help
Example Codealembic==1.11.2
fastapi==0.101.1
uvicorn==0.23.2
fastapi_pagination==0.12.8
pandas==2.0.3
fastapi_utils==0.2.1 DescriptionERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. How do i make this work as some packages don't support pydantic v2 Operating SystemmacOS Operating System DetailsNo response FastAPI Version0.101.1 Pydantic Version2.1.1 Python Version3.10.9 Additional ContextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Sadly, you don't. Or, well, you can, but it won't be fun. One option is to vendor the different dependencies you have that are conflicting with Pydantic. If the parts of those dependencies that you're using don't conflict with Pydantic 2.x, then import them as you would any other package. Or, if they do conflict then you'll have to modify the vendored dependency in some way. Vendoring is the process of bringing a dependency into the source control of your project. |
Beta Was this translation helpful? Give feedback.
-
fastapi-utils 0.2.1 requires pydantic<2.0,>=1.0, but you have pydantic 2.7.0 which is incompatible How to resolve this installation issue unable to install fastapi-utils in pydantic 2.7.0 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. pls provide solution |
Beta Was this translation helpful? Give feedback.
Sadly, you don't. Or, well, you can, but it won't be fun. One option is to vendor the different dependencies you have that are conflicting with Pydantic. If the parts of those dependencies that you're using don't conflict with Pydantic 2.x, then import them as you would any other package. Or, if they do conflict then you'll have to modify the vendored dependency in some way.
Vendoring is the process of bringing a dependency into the source control of your project.