LangGraph 1.x: 'ModuleNotFoundError: No module named langgraph.checkpoint.sqlite' (or .postgres): checkpointers are separate pip packages
Install the checkpointer package you import: pip install langgraph-checkpoint-sqlite for langgraph.checkpoint.sqlite / langgraph.checkpoint.sqlite.aio, and pip install langgraph-checkpoint-postgres for langgraph.checkpoint.postgres. pip install langgraph only brings langgraph-checkpoint, which contains the base classes and the in-memory saver (langgraph.checkpoint.memory.MemorySaver / InMemorySaver).
A requirements file with langgraph, langchain-core, langchain-ollama and aiosqlite looks complete: aiosqlite is installed and the container builds fine. The app then crashes at import with ModuleNotFoundError: No module named 'langgraph.checkpoint.sqlite'. Installing aiosqlite doesn't add the LangGraph saver module. Wrapping the postgres import in try/except hides the same problem for Postgres.
Seen with langgraph 1.2.22 and langgraph-checkpoint 4.3.2. Adding langgraph-checkpoint-sqlite 3.1.3 fixed it. Pin it in requirements next to langgraph:
langgraph>=1.0
langgraph-checkpoint-sqlite # SqliteSaver / AsyncSqliteSaver
langgraph-checkpoint-postgres # PostgresSaver / AsyncPostgresSaver (needs psycopg[binary], not psycopg2)