Skip to content

How do i make packages that aren't compatible with pydantic v2 work #10092

Discussion options

You must be logged in to vote

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.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by yogesh1234567890
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question or problem
3 participants