-
Notifications
You must be signed in to change notification settings - Fork 148
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
dependency on old pydantic causes conflicts with other packages #495
Comments
@washeck, that's correct; we expect to migrate to pydantic > 2.5 inside |
Well, until this is fixed, we cannot use I understand this is more a problem caused by
|
We have run into this issue as well. Just for the Safety folks here, there are ways to support both Pydantic 2 and 1 in the same version. As Pydantic 2 actually includes the entire v1 lib. This means that you can upgrade to version 2 with minimal changes (mainly import changes) and then migrate to the actual v2 features later down the line. Documentation: https://docs.pydantic.dev/latest/migration/#continue-using-pydantic-v1-features PS. If you want an example of a big project that is facing the same type of issues, you can have a look at Home Assistant and more specifically this issue home-assistant/core#99218 |
Yeah, |
Thanks. Same issue here. |
Hi, thanks for the patience here, we will soon release an update that supports 1.x and 2.x |
A Can you try to install Safety, Pydantic 2.x, and safety_schemas |
@yeisonvargasf Works on NixOS. Thanks a lot! |
@yeisonvargasf didn't work for python:3.12 container:
|
Kindly ask you to take into consideration removing pydantic from your dependencies if it isn't crucial. |
@yeisonvargasf Working for us on Py 3.11 |
Sorry for asking, but we're waiting for the fix. Do you know when will it be available for everyone? |
The upper range limit was removed on Safety |
Great! I believe this can be closed then, right? 🙂 |
Description
safety 3.0.0 depends on pydantic <2, while other packages require v2 (e.g. django-qr-code depends on pydantic >2.5)
What I Did
The text was updated successfully, but these errors were encountered: