Comments (9)
Update pydantic to 2.7.4 will solve the problem.
from langchain.
I am using Python 3.12.3 and still having the same issue.
from langchain.
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.
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.
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.
The issue still persists.
from langchain.
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.
I'm also using Python 3.12.3 and still having the same issue.
from langchain.
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)
- PydanticOutputParser Doesn't Parse Dates in Unions HOT 4
- When using GraphCypherQAChain to fetch documents from Neo4j, the embeddings field is also returned, which consumes all context window tokens HOT 2
- _InactiveRpcError of RPC HOT 1
- No module named 'langchain_community.document_loaders'; 'langchain_community' is not a package HOT 2
- DocumentDBVectorSearch and metadata filtering HOT 7
- create_react_agent validation error when using PipelinePromptTemplate
- AzureAIDocumentIntelligenceLoader does not load all PDF pages HOT 2
- Passing transformer's pipeline to HuggingFacePipeline does not initialize the HuggingFacePipeline correctly.
- [FEATURE REQUEST] langchain-openai - max_tokens (vs max_context?) ability to use full LLM contexts and account for user-messages automatically. HOT 2
- with_structured_output format depends on whether we're using pydantic proper or pydantic.v1 namespace HOT 2
- hunyuan message include chinese signature error
- DOC: <Issue related to /v0.2/docs/tutorials/sql_qa/> HOT 1
- ChatGoogleGenerativeAI does not support streaming HOT 2
- ChatHuggingFace using local model with HuggingFacePipeline wrongly checks for available inference endpoints HOT 7
- I am getting this error HOT 4
- Prepare for pydantic 2 migration by refactoring vanilla @root_validator() usage HOT 1
- DOC: <Issue related to /v0.2/docs/tutorials/rag/> HOT 11
- Add Document ID back to AzureSearch Documents HOT 1
- Spec out API for all required vs. all possible input variables HOT 2
- RedisChatMessageHistory encountering issues in Redis standalone mode on Windows.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from langchain.