Skip to content

Commit bb38547

Browse files
tgberkeleyTom Gotsman
andauthored
add error for psycopg (#1154)
Co-authored-by: Tom Gotsman <tomgotsman@Toms-MacBook-Pro.local>
1 parent 8fe6a6e commit bb38547

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

errors.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,4 +191,24 @@ error_message(
191191
],
192192
error_type="Python Error",
193193
)
194-
```
194+
```
195+
196+
197+
```python eval
198+
error_message(
199+
heading="ImportError: couldn't import psycopg",
200+
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'",
201+
solution=[
202+
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."),
203+
rx.el.ul(
204+
rx.el.li("psycopg2-binary==2.9.9"),
205+
rx.el.li("psycopg-binary==3.2.3"),
206+
rx.el.li("psycopg==3.2.3"),
207+
rx.el.li("psycopg-pool==3.2.3"),
208+
class_name="list-disc pl-4",
209+
),
210+
],
211+
error_type="Import Error",
212+
)
213+
```
214+

0 commit comments

Comments
 (0)