Skip to content

Commit

Permalink
add error for psycopg (#1154)
Browse files Browse the repository at this point in the history
Co-authored-by: Tom Gotsman <tomgotsman@Toms-MacBook-Pro.local>
  • Loading branch information
tgberkeley and Tom Gotsman authored Dec 19, 2024
1 parent 8fe6a6e commit bb38547
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,4 +191,24 @@ error_message(
],
error_type="Python Error",
)
```
```


```python eval
error_message(
heading="ImportError: couldn't import psycopg",
error_code="ImportError: couldn't import psycopg 'python' implementation: libpq library not found | couldn't import psycopg 'binary' implementation: No module named 'psycopg_binary' | couldn't import psycopg 'c' implementation: No module named 'psycopg_c'",
solution=[
h4_comp_error(text="This is caused by not installing the correct psycopg package. Solution is to add the following packages to your requirements.txt file."),
rx.el.ul(
rx.el.li("psycopg2-binary==2.9.9"),
rx.el.li("psycopg-binary==3.2.3"),
rx.el.li("psycopg==3.2.3"),
rx.el.li("psycopg-pool==3.2.3"),
class_name="list-disc pl-4",
),
],
error_type="Import Error",
)
```

0 comments on commit bb38547

Please sign in to comment.