fix: add psycopg2-binary to runtime deps (CAR-1422) #20
Reference in New Issue
Block a user
Delete Branch "betty/car-1422-psycopg2-binary"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Root cause
Alembic
upgrade headusesengine_from_configwith a synchronouspostgresql://URL fromalembic.ini. SQLAlchemy requirespsycopg2(orpsycopg2-binary) as the sync driver.The old
2026.06.08image inheritedpsycopg2-binary 2.9.12transitively fromcartsnitch-common. The standalone image does not havecartsnitch-common, so the driver is missing — causingModuleNotFoundError: No module named 'psycopg2'and immediate pod CrashLoopBackOff.Change
Add
psycopg2-binary>=2.9to[project].dependenciesinpyproject.toml.Unblocks
CAR-1422 / CAR-1211 UAT receipt path verification.