Open znruss opened 1 month ago
I am using Python 3.12.3 and still having the same issue.
I am using Python 3.12.3 and still having the same issue.
I see the same error with 3.12.3 I'm using the 3.12-slim-bullseye. Is there any workaround?
Interesting. Check that your pydantic/pydantic core is the same version (2.7.3). For base image I'm using 3.12.3-slim arm64v8. Otherwise Pydantic seem to do weekly patches so perhaps (2.7.4) will fix it for you when it comes out. This guy had an additional insight. https://github.com/pydantic/pydantic/pull/9612#issuecomment-2158399679
I am on pydantic 2.7.3. Thank you very much for your reply and pointers. Fingers crossed. I tried downloading a requirements.txt file from a published project and matched everything to it but no luck. It is possible they were using different python version (other than 3.12.3).
The issue still persists.
I am using Python 3.12.3 and still having the same issue.
I see the same error with 3.12.3 I'm using the 3.12-slim-bullseye. Is there any workaround?
I believe the docker images for 3.12-slim-* got bumped to using 3.12.4 a few days ago. Pinning to 3.12.3-slim worked for me.
I'm also using Python 3.12.3 and still having the same issue.
I am using Python 3.12.3 and still having the same issue.
I see the same error with 3.12.3 I'm using the 3.12-slim-bullseye. Is there any workaround?
I believe the docker images for 3.12-slim-* got bumped to using 3.12.4 a few days ago. Pinning to 3.12.3-slim worked for me.
Correct - that's how we found this problem. We solved it by pinning the base docker image to 3.12.3-slim as well.
Update pydantic to 2.7.4 will solve the problem.
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
Langchain fails on import with Python 3.12.4 due to pydantic v1 dependency. Python 3.12.3 is fine.
See https://github.com/pydantic/pydantic/issues/9607 for more info.
System Info
Python version is 3.12.4
Linux Arm64/v8