Coder Social home page Coder Social logo

Comments (9)

gbaian10 avatar gbaian10 commented on September 15, 2024 1

Update pydantic to 2.7.4 will solve the problem.

from langchain.

tarvindersi avatar tarvindersi commented on September 15, 2024

I am using Python 3.12.3 and still having the same issue.

from langchain.

vkadel1111 avatar vkadel1111 commented on September 15, 2024

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?

from langchain.

znruss avatar znruss commented on September 15, 2024

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. pydantic/pydantic#9612 (comment)

from langchain.

tarvindersi avatar tarvindersi commented on September 15, 2024

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).

from langchain.

dennicLiu avatar dennicLiu commented on September 15, 2024

The issue still persists.

from langchain.

housejester avatar housejester commented on September 15, 2024

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.

from langchain.

namiraprita avatar namiraprita commented on September 15, 2024

I'm also using Python 3.12.3 and still having the same issue.

from langchain.

znruss avatar znruss commented on September 15, 2024

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.

from langchain.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.