Open k3ybladewielder opened 4 days ago
I have the same issue. No resolution whatsoever.
It can be resolved by downgrading to pydantic==2.9.0
I am also having this problem, no changes in pinned dependencies but suddenly my container is failing.
I can replicate this consistenly on both langchain-google-vertexai==2.0.5
and langchain-google-vertexai==2.0.7
, I've not tested other versions.
This minimal Dockerfile demonstrates the issue:
FROM python:3.11-slim
WORKDIR /app
# Install Poetry
RUN pip install langchain-google-vertexai==2.0.7
CMD ["python", "-c", "from langchain_google_vertexai import ChatVertexAI"]
I encountered the same issue and resolved it by downgrading to pydantic==2.9.0
Thanks for the answer @twiedijk @Luc2357. I tried and works well. I'll wait for the bug fix in the meantime
See https://github.com/langchain-ai/langchain-google/issues/610#issuecomment-2493831993 for more details. TL;DR:
Upgrade back to 2.9 to avoid the issue. But do not that the 2.10 release revealed what could be a genuine bug in the langchain-google
library, as the field annotations are not properly resolved to the correct type.
@k3ybladewielder @Viicos - we experienced the same issue. Would you happen to the have the bug link open within the langchain-google? I notcied https://github.com/langchain-ai/langchain-google/issues/610 is closed.
The original author closed it but it was mentioned that it should be kept open. I do not maintain the library so we'll have to wait for them to reopen it again. In the meanwhile you can probably subscribe to the closed issue. I'm currently working on a fix.
same
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
Using the exact example from documentation the following error occur
System Info
System Information
Package Information
Optional packages not installed
Other Dependencies