steep-balloon-41261
10/28/2025, 9:11 PMtall-airline-16756
10/28/2025, 9:11 PMtall-airline-16756
10/28/2025, 9:12 PMtall-airline-16756
10/28/2025, 9:15 PMlangchain_core.pydantic_v1 has been removed in the recent versions of langchain-core. No worries, though! Here’s how you can fix it:
• Try updating your imports to use Pydantic directly. For example, instead of from langchain_core.pydantic_v1 import BaseModel, Field, use from pydantic import BaseModel, Field.
• Make sure your library versions are compatible. The versions that work well together are:
◦ langchain-core==0.3.64
◦ pydantic==2.11.3
◦ langgraph==0.4.8
• To update your dependencies, you can run: pip install --upgrade langchain-core==0.3.64 pydantic==2.11.3 langgraph==0.4.8
• If you’re still seeing the problem, it might be due to some third-party packages importing langchain_core.pydantic_v1. You can check this by searching your environment with: grep -r "langchain_core.pydantic_v1" /path/to/your/venv/lib/python*/site-packages/
• For a fresh start, consider creating a new virtual environment and installing only the necessary packages with the versions pinned as above.
Feel free to reach out if you have any questions or if something else comes up—I’m here to help! Sources: uv.lock | LangChain integration guide | LiveKit Docs