-
-
Notifications
You must be signed in to change notification settings - Fork 180
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
Update to Pydantic 2.0 #358
Comments
For now you are blocked on this by agent-search. The latest version Because agent-search (0.0.9) depends on pydantic (>=1.10.13,<2.0.0)
and no versions of agent-search match >0.0.9,<0.0.10, agent-search (>=0.0.9,<0.0.10) requires pydantic (>=1.10.13,<2.0.0).
So, because langroid depends on both pydantic (2.5.3) and agent-search (^0.0.9), version solving failed. |
I'm surprised this is the only blocker (if so, that's a minor one, since agent-search is just an extra and we can work around that)... I was expecting a lot of similar conflicts. |
I haven't run into a situation where I had multiple conflicts before so I'm not sure how the Poetry resolver handles this. It's quite possible that it hit the first conflict and quit without reporting the others. So removing agent-search may bring out other conflicts. |
On a quick scan through requirements files it looks like all the other dependencies have I happen to be the maintainer of camel-converter and meilisearch-python-sdk, and one of the meilisearch client maintainers so I know for sure that is the case on those 😄 |
@sanders41 finally got this done in PR #498 -- langroid now works with Pydantic v1 or v2 |
Thanks for the heads up @pchalasani. Do you know how long you plan to support Pydantic v1? My current tentative plan in my libraries is to drop support for it with a release in Oct/Nov when Python 3.8 goes EOL and doing a release for that. Will this cause issues for you, or could you pin to versions < the new major version? If it will cause issues I could continue to support it for a while longer. As a side note, I noticed you are using both the |
Installing langroid by default installs pydantic 2.x, so discontinuing meilisearch v1 support shouldn't be an issue.
That would be great, thanks. |
At some point :)
The text was updated successfully, but these errors were encountered: