mirror of
https://github.com/langchain-ai/langchain-postgres.git
synced 2026-07-16 01:33:18 -04:00
Poetry Conflict: Importing Langchain-Postgres v^0.0.3 (current) + LangGraph v^0.0.48 (current) #12
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @WesGBrooks on GitHub (May 9, 2024).
I'm upgrading an existing streamlit based LCEL project to leverage LangGraph. The former project is heavily dependent upon langchain-postgres, especially for user account management via supabase postgres.
I was working through the new langgraph docs, to the point of adding memory. I started to evaluate switching to a sqlite db for simple memory management, but when looking at the docs for Checkpointing, it recommends using postgres for production workflows - which brings me back here.
When running
poetry add langchain-potgres, it currently installs and forces langgraph 0.0.32, which seems significantly behind the current version of 0.0.48:[package.dependencies]
langgraph = ">=0.0.32,<0.0.33"
When installing via git (
poetry add git+https://github.com/langchain-ai/langchain-postgres.git), the dependency is loosened to this, which is what I see in the current poetry project in this repo:[package.dependencies]
langgraph = "^0.0.32"
This still forces poetry to install langgraph at its lowest level dependency of 0.0.32.
Is there truly a dependency conflict for langchain-postgres with langgraph after 0.0.48? Or can the dependency be updated? Would love to be able to use langchain-postgres for langgraph checkpoints reliably. Would also love if the capability were documented/included in the next version of langgraph checkpoints (docs | repo)!
@eyurtsev commented on GitHub (May 17, 2024):
Yeah the implementation was indeed tied to a specific version. The base implementation in langgraph has changed since so it's not compatible with the newest langgraph version. I have removed it from langchain-postgres (at least temporarily) to avoid confusing users.
@eyurtsev commented on GitHub (Jun 10, 2024):
Closed as newest version of package no longer pins langgraph