logoalt Hacker News

waterTanukitoday at 5:13 AM1 replyview on HN

Tried it out on a local test postgres db.

First error: "Connection failed, no module named 'psycopg2'"


Replies

lgastoday at 8:55 AM

You need to install psycopg2, or perhaps more likely psycopg2-binary to access postgres databases. After hiichbindermax and mrbump helped me out upthread, I was able to get it working via:

    uvx --from sqlit-tui --with psycopg2-binary sqlit
If you're not using uv, then you'll need to install psycopg2-binary in whatever environment you're using (probably via `pip install psycopg2-binary`).