Skip to content

Commit 3822e24

Browse files
authored
only recommend psycopg[binary] package (#1157)
this is the only package needed to successfully access a postgres db. i've confirmed this in `form-designer` and `rx-shout`, both of which use postgres and neither of which install anything other than this library in a fresh docker container or deploy.
1 parent b6e2cc5 commit 3822e24

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

errors.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -199,14 +199,7 @@ error_message(
199199
heading="ImportError: couldn't import psycopg",
200200
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'",
201201
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-
),
202+
h4_comp_error(text="This is caused by not installing the correct psycopg package. Solution is to add the `psycopg[binary]==3.2.3` package to your requirements.txt file."),
210203
],
211204
error_type="Import Error",
212205
)

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
email-validator==2.1.1
22
black==23.10.0
33
pandas>=1.5.3
4-
psycopg2-binary==2.9.9
4+
psycopg[binary]==3.2.3
55
plotly-express==0.4.1
66
googletrans-py==4.0.0
77
typesense==0.14.0
@@ -15,4 +15,4 @@ reflex-chat==0.0.2a1
1515
reflex_type_animation==0.0.1
1616
reflex-ag-grid==0.0.10
1717
replicate==0.32.1
18-
reflex-pyplot==0.1.3
18+
reflex-pyplot==0.1.3

0 commit comments

Comments
 (0)