mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-11 16:37:40 +00:00
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.
This commit is contained in:
parent
c9dd68d890
commit
5154bae544
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue