-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
Pydantic v2.0.0 import error #778
Comments
Yeah this broke it for us as well. Should change this line: https://github.com/RobertCraigie/prisma-client-py/blob/main/requirements/base.txt#L3 to |
You shouldn't even be using
|
No, this is a common bad practice. Premature dependency pinning can cause even more annoying issues, see this blog post for reasoning: https://hynek.me/articles/semver-will-not-save-you/ Especially this part:
If you want to avoid this kind of problem in the future I recommend https://github.com/jazzband/pip-tools, otherwise this issue should only affect new projects. Sorry for the troubles caused here! I'll be pushing a new release that pins the dependency shortly. |
## Change Summary closes #778 ## Checklist - [ ] Unit tests for the changes exist - [ ] Tests pass without significant drop in coverage - [ ] Documentation reflects changes where applicable - [ ] Test snapshots have been [updated](https://prisma-client-py.readthedocs.io/en/latest/contributing/contributing/#snapshot-tests) if applicable ## Agreement By submitting this pull request, I confirm that you can use, modify, copy and redistribute this contribution, under the terms of your choice.
I've published |
Bug description
Just got this error upon installation a few minutes ago:
I think version 2.0.0 got released like 30 minutes ago 😅
Expected behavior
I think we should pin a version dependency on either a
1.x.x
version inprisma-client-py
or update the imports as described in that link above.Environment & setup
The text was updated successfully, but these errors were encountered: