Skip to content

Commit

Permalink
add error for psycopg
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Gotsman authored and Tom Gotsman committed Dec 17, 2024
1 parent 7eed888 commit a225891
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 a225891

Please sign in to comment.