From 872910ae4392f498e5317d8a85d8507a3d711388 Mon Sep 17 00:00:00 2001 From: Om Rajput <150363099+OmRajput17@users.noreply.github.com> Date: Mon, 7 Sep 2026 04:35:41 +0530 Subject: [PATCH] fix(langchain-classic): correct sqlite3 install guidance in SQLiteEntityStore error message (#40248) --- libs/langchain/langchain_classic/memory/entity.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/langchain/langchain_classic/memory/entity.py b/libs/langchain/langchain_classic/memory/entity.py index 29bd33dcec..c52b34385d 100644 --- a/libs/langchain/langchain_classic/memory/entity.py +++ b/libs/langchain/langchain_classic/memory/entity.py @@ -389,7 +389,12 @@ class SQLiteEntityStore(BaseEntityStore): except ImportError as e: msg = ( "Could not import sqlite3 python package. " - "Please install it with `pip install sqlite3`." + "sqlite3 is part of the Python standard library, not a package " + "installable via pip. If it is missing, your Python installation " + "was likely built without SQLite support — check your Python or " + "operating system distributor's instructions for enabling the " + "sqlite3 extension (e.g., recompiling Python with SQLite support, " + "or installing your OS's sqlite3/libsqlite3 development package)." ) raise ImportError(msg) from e