-
-
Notifications
You must be signed in to change notification settings - Fork 170
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 2.0 (complete rewrite) breaks copier #1225
Comments
Hi
Tecnativa/doodba-copier-template#392 (comment) Can you help me please |
As a temporary workaround until we've fixed this problem, please override the installed version of Pydantic in your virtual environment where Copier is installed:
Sorry for the inconvenience. |
This solution work form me using Thanks |
Hi, |
#1229 (comment) seems to indicate that might happen. |
Copier depends on pydantic and imports a private object from it. Pydantic 2 has been rewritten in rust and does not have that private object anymore. See the following link for more details: copier-org/copier#1225 (comment)
You can enter a shell
See #1244. |
FWIW you can enter a shell with a perfectly installable Copier doing: nix shell github:copier-org/copier/v8.0.0 Change that last part for the tag you want. |
Describe the problem
After over a year and two PyCons, the Rust rewrite of Pydandic with 17x+ speedup (last I heard maybe it was 23x?) is out (four hours ago)! Unfortunately, it breaks copier. As much as I hate suggesting it, you might want to do a quick patch release with a version cap, then work on making it work (Unless it's really easy to fix, of course, which it might be).
Also, it's a really bad idea to use things from dependencies that start with underscores. Just saying. :P
(They did an incredible amount of work to try to make sure they didn't break users. Users importing underscore objects doesn't count!)
Template
https://github.com/scientific-python/cookie
(If you want one, that is - you can't even start copier on a fresh install)
To Reproduce
Run copier.
That's all.
Logs
Expected behavior
Not to break when pydantic is installed, or not to install pedantic 2.0.
Screenshots/screencasts/logs
No response
Operating system
macOS
Operating system distribution and version
Any
Copier version
8.0.0
Python version
All
Installation method
pipx+pypi
Additional context
Broken logs at https://github.com/scientific-python/cookie/actions/runs/5426746583/jobs/9869183393
The text was updated successfully, but these errors were encountered: