Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
---
id: 0d73dde53e
question: PGCLI - no pq wrapper available.
question: PGCLI - no pq wrapper available (MacOS UV alternative)
sort_order: 63
---

**Error:**
**Problem:**

```
ImportError: no pq wrapper available.
```

### Problem Details:

- Could not import `\dt`
- Could not import `\\dt`
- `opg 'c' implementation: No module named 'psycopg_c'`
- `couldn't import psycopg 'binary' implementation: No module named 'psycopg_binary'`
- `couldn't import psycopg 'python' implementation: libpq library not found`
Expand Down Expand Up @@ -61,4 +61,16 @@ ImportError: no pq wrapper available.
$ conda install -c conda-forge pgcli
```

If you follow these steps, you should be able to resolve the issue.
If you follow these steps, you should be able to resolve the issue.

6. MacOS Alternative (Python 3.13) using UV:

- In your virtual environment, ensure you are in your working directory (e.g., pipeline).

- Add psycopg binary using uv:

```bash
$ uv add "psycopg[binary]"
```

This MacOS-specific step provides the missing psycopg[binary] installation path when using Python 3.13 with uv. If issues persist after this, consider the standard Linux/macOS library checks and psycopg rebuild steps from sections 1-5 above.