Missing langgraph.store.base #251

Closed
opened 2026-02-20 17:33:40 -05:00 by yindo · 7 comments
Owner

Originally created by @smannathan on GitHub (Sep 30, 2024).

Checked other resources

  • I added a very descriptive title to this issue.
  • I searched the LangGraph/LangChain documentation with the integrated search.
  • I used the GitHub search to find a similar question and didn't find it.
  • I am sure that this is a bug in LangGraph/LangChain rather than my code.
  • I am sure this is better as an issue rather than a GitHub discussion, since this is a LangGraph bug and not a design question.

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

Originally created by @smannathan on GitHub (Sep 30, 2024). ### Checked other resources - [X] I added a very descriptive title to this issue. - [X] I searched the [LangGraph](https://langchain-ai.github.io/langgraph/)/LangChain documentation with the integrated search. - [X] I used the GitHub search to find a similar question and didn't find it. - [X] I am sure that this is a bug in LangGraph/LangChain rather than my code. - [X] I am sure this is better as an issue [rather than a GitHub discussion](https://github.com/langchain-ai/langgraph/discussions/new/choose), since this is a LangGraph bug and not a design question. ### Example Code ```python N/A ``` ### Error Message and Stack Trace (if applicable) ```shell "/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
yindo closed this issue 2026-02-20 17:33:41 -05:00
Author
Owner

@vbarda commented on GitHub (Sep 30, 2024):

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

@vbarda commented on GitHub (Sep 30, 2024): @smannathan could you try creating a virtual environment from scratch and see if the issue persists?
Author
Owner

@fletchertyler914 commented on GitHub (Sep 30, 2024):

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.

@fletchertyler914 commented on GitHub (Sep 30, 2024): 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. <img width="883" alt="Screenshot 2024-09-30 at 14 27 52" src="https://github.com/user-attachments/assets/2c496e77-2e0d-4ee7-80ab-0f180b03827b"> EDIT: @vbarda that seemed to do the trick. Killed my VE and recreated and it worked as expected.
Author
Owner

@vbarda commented on GitHub (Sep 30, 2024):

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

@vbarda commented on GitHub (Sep 30, 2024): > 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. > > <img alt="Screenshot 2024-09-30 at 14 27 52" width="883" src="https://private-user-images.githubusercontent.com/3344498/372199909-2c496e77-2e0d-4ee7-80ab-0f180b03827b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mjc3MjE4NTMsIm5iZiI6MTcyNzcyMTU1MywicGF0aCI6Ii8zMzQ0NDk4LzM3MjE5OTkwOS0yYzQ5NmU3Ny0yZTBkLTRlZTctODBhYi0wZjE4MGIwMzgyN2IucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDkzMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA5MzBUMTgzOTEzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YzEzODY1NWRhYWQ5MmVjYmVmOTkwNDAzOTRlODRkYjMwZjE1MGNiOGFkZjExYzdkZTVkODc5NWM2YzlmMWNhNiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.19pCsWPpOGc0dBLvpLtLXG5egPa4Jf4Og4kgrtkPayU"> > 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
Author
Owner

@smannathan commented on GitHub (Sep 30, 2024):

@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.

@smannathan commented on GitHub (Sep 30, 2024): > @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.
Author
Owner

@vbarda commented on GitHub (Sep 30, 2024):

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

@vbarda commented on GitHub (Sep 30, 2024): 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
Author
Owner

@maxschulz-COL commented on GitHub (Oct 1, 2024):

@vbarda Hey, I pinned my dependency to 1.0.14 and I get the following error:

.../site-packages/langgraph/graph/__init__.py:1: in <module>
    from langgraph.graph.graph import END, START, Graph
.../site-packages/langgraph/graph/graph.py:37: in <module>
    from langgraph.pregel import Channel, Pregel
.../site-packages/langgraph/pregel/__init__.py:91: in <module>
    from langgraph.pregel.loop import AsyncPregelLoop, SyncPregelLoop
.../site-packages/langgraph/pregel/loop.py:86: in <module>
    from langgraph.store.batch import AsyncBatchedStore
.../site-packages/langgraph/store/batch.py:4: in <module>
    from langgraph.store.base import BaseStore, V
E   ImportError: cannot import name 'V' from 'langgraph.store.base' (.../site-packages/langgraph/store/base/__init__.py)

with the following dependency tree

├── langgraph-checkpoint v1.0.14
│   ├── langchain-core v0.2.41 (*)
│   └── msgpack v1.1.0
├── langgraph v0.2.16
│   ├── langchain-core v0.2.41 (*)
│   └── langgraph-checkpoint v1.0.14 (*)

Any advice what I could do without pinning the upper bound to "langgraph-checkpoint<=1.0.12"?

@maxschulz-COL commented on GitHub (Oct 1, 2024): @vbarda Hey, I pinned my dependency to `1.0.14` and I get the following error: ``` from langgraph.graph import StateGraph .../site-packages/langgraph/graph/__init__.py:1: in <module> from langgraph.graph.graph import END, START, Graph .../site-packages/langgraph/graph/graph.py:37: in <module> from langgraph.pregel import Channel, Pregel .../site-packages/langgraph/pregel/__init__.py:91: in <module> from langgraph.pregel.loop import AsyncPregelLoop, SyncPregelLoop .../site-packages/langgraph/pregel/loop.py:86: in <module> from langgraph.store.batch import AsyncBatchedStore .../site-packages/langgraph/store/batch.py:4: in <module> from langgraph.store.base import BaseStore, V E ImportError: cannot import name 'V' from 'langgraph.store.base' (.../site-packages/langgraph/store/base/__init__.py) ``` with the following dependency tree ``` ├── langgraph-checkpoint v1.0.14 │ ├── langchain-core v0.2.41 (*) │ └── msgpack v1.1.0 ├── langgraph v0.2.16 │ ├── langchain-core v0.2.41 (*) │ └── langgraph-checkpoint v1.0.14 (*) ``` Any advice what I could do without pinning the upper bound to `"langgraph-checkpoint<=1.0.12"`?
Author
Owner

@vbarda commented on GitHub (Oct 1, 2024):

@vbarda Hey, I pinned my dependency to 1.0.14 and I get the following error:

.../site-packages/langgraph/graph/__init__.py:1: in <module>
    from langgraph.graph.graph import END, START, Graph
.../site-packages/langgraph/graph/graph.py:37: in <module>
    from langgraph.pregel import Channel, Pregel
.../site-packages/langgraph/pregel/__init__.py:91: in <module>
    from langgraph.pregel.loop import AsyncPregelLoop, SyncPregelLoop
.../site-packages/langgraph/pregel/loop.py:86: in <module>
    from langgraph.store.batch import AsyncBatchedStore
.../site-packages/langgraph/store/batch.py:4: in <module>
    from langgraph.store.base import BaseStore, V
E   ImportError: cannot import name 'V' from 'langgraph.store.base' (.../site-packages/langgraph/store/base/__init__.py)

with the following dependency tree

├── langgraph-checkpoint v1.0.14
│   ├── langchain-core v0.2.41 (*)
│   └── msgpack v1.1.0
├── langgraph v0.2.16
│   ├── langchain-core v0.2.41 (*)
│   └── langgraph-checkpoint v1.0.14 (*)

Any advice what I could do without pinning the upper bound to "langgraph-checkpoint<=1.0.12"?

@maxschulz-COL you should either use latest langgraph version (>=0.2.29) or pin langgraph-checkpoint <=1.0.12. hope this helps!

@vbarda commented on GitHub (Oct 1, 2024): > @vbarda Hey, I pinned my dependency to `1.0.14` and I get the following error: > > ``` > .../site-packages/langgraph/graph/__init__.py:1: in <module> > from langgraph.graph.graph import END, START, Graph > .../site-packages/langgraph/graph/graph.py:37: in <module> > from langgraph.pregel import Channel, Pregel > .../site-packages/langgraph/pregel/__init__.py:91: in <module> > from langgraph.pregel.loop import AsyncPregelLoop, SyncPregelLoop > .../site-packages/langgraph/pregel/loop.py:86: in <module> > from langgraph.store.batch import AsyncBatchedStore > .../site-packages/langgraph/store/batch.py:4: in <module> > from langgraph.store.base import BaseStore, V > E ImportError: cannot import name 'V' from 'langgraph.store.base' (.../site-packages/langgraph/store/base/__init__.py) > ``` > > with the following dependency tree > > ``` > ├── langgraph-checkpoint v1.0.14 > │ ├── langchain-core v0.2.41 (*) > │ └── msgpack v1.1.0 > ├── langgraph v0.2.16 > │ ├── langchain-core v0.2.41 (*) > │ └── langgraph-checkpoint v1.0.14 (*) > ``` > > Any advice what I could do without pinning the upper bound to `"langgraph-checkpoint<=1.0.12"`? @maxschulz-COL you should either use latest langgraph version (`>=0.2.29`) or pin `langgraph-checkpoint <=1.0.12`. hope this helps!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#251