langchain-ai / langgraph

Build resilient language agents as graphs.
https://langchain-ai.github.io/langgraph/
MIT License
5.89k stars 928 forks source link

Missing langgraph.store.base #1914

Closed smannathan closed 2 hours ago

smannathan commented 3 hours ago

Checked other resources

Example Code

N/A

Error Message and Stack Trace (if applicable)

"/opt/homebrew/lib/python3.10/site-packages/langgraph/checkpoint/serde/jsonplus.py", line 29, in <module>
    from langgraph.store.base import Item
ModuleNotFoundError: No module named 'langgraph.store.base'

Description

I encountered a ModuleNotFoundError when running a script that imports langgraph.store.base. It seems that the module is missing from the installed package, even though langgraph is installed.

System Info

langgraph==0.2.29 langgraph-checkpoint==1.0.13

vbarda commented 2 hours ago

@smannathan could you try creating a virtual environment from scratch and see if the issue persists?

fletchertyler914 commented 2 hours ago

Just updated to the latest release (hoping it would fix an issue with passing state to tools and getting a pydantic validation error), and hit this on top of it.

Screenshot 2024-09-30 at 14 27 52

EDIT: @vbarda that seemed to do the trick. Killed my VE and recreated and it worked as expected.

vbarda commented 2 hours ago

Just updated to the latest release (hoping it would fix an issue with passing state to tools and getting a pydantic validation error), and hit this on top of it.

Screenshot 2024-09-30 at 14 27 52

EDIT: @vbarda that seemed to do the trick. Killed my VE and recreated and it worked as expected.

great, happy it's working. we're also pushing a quick fix in the next update to make sure folks don't need to make a new venv

smannathan commented 2 hours ago

@smannathan could you try creating a virtual environment from scratch and see if the issue persists?

I updated the requirements.txt to install checkpoint first and then langgraph.

langgraph-checkpoint==1.0.13 langgraph==0.2.29

It is working fine now.

vbarda commented 2 hours ago

hi all -- the issue is fixed in langgraph-checkpoint==1.0.14 and doesn't require clearing the venv. let me know if you run into any issues