From 5154bae544a414a6e4857a6df4871bc4743d7f3b Mon Sep 17 00:00:00 2001 From: "cybernetus@xda" Date: Tue, 1 Sep 2026 12:49:21 -0300 Subject: [PATCH] fix(deps): switch psycopg2 to psycopg2-binary (#5937) Building psycopg2 from source needs libpq-dev/pg_config, which isn't in the Docker image or most dev hosts, so pip install silently fails and Postgres users hit ModuleNotFoundError at import time. --- requirements.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/requirements.txt b/requirements.txt index 3c5114f53..1f5f2ca16 100644 --- a/requirements.txt +++ b/requirements.txt @@ -51,3 +51,8 @@ pytest-asyncio # TestClient import when only classic httpx is present. Runtime code keeps # using `httpx` above; this is test-client only. httpx2 +# DATABASE_URL defaults to sqlite (core/database.py), but when pointed at an +# external Postgres, SQLAlchemy's postgresql dialect imports psycopg2 inside +# create_engine() and raises ModuleNotFoundError if missing. -binary avoids +# needing libpq-dev/pg_config on the host/image to compile it. +psycopg2-binary