Skip to content

Name the psycopg2 driver in the database URLs - #7

Merged
matuck40 merged 1 commit into
mainfrom
fix-psycopg2-url
Oct 21, 2026
Merged

matuck40 merged 1 commit into
mainfrom
fix-psycopg2-url

Conversation

@matuck40

Copy link
Copy Markdown
Owner

SQLAlchemy 2.1 maps a bare postgresql:// URL to psycopg 3, which is not installed (requirements.txt has psycopg2-binary). CI installs unpinned dependencies, got SQLAlchemy 2.1.5 and failed on import with No module named 'psycopg'; main would fail the same way.

Changes the default URL in database_service.py, alembic.ini and the README example to postgresql+psycopg2://.

Local check with SQLAlchemy 2.1.5 in a clean checkout: ruff clean, 13 passed. gitleaks: no leaks.

🤖 Generated with Claude Code

SQLAlchemy 2.1 maps a bare postgresql:// URL to psycopg 3, which is not
installed (requirements.txt has psycopg2-binary), so CI failed on import.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@matuck40
matuck40 merged commit a986d34 into main Oct 21, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant