Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Bump psycopg requirement (#5032)
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh authored Apr 9, 2019
1 parent 3352baa commit 4abf5aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/5032.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix "cannot import name execute_batch" error with postgres.
4 changes: 3 additions & 1 deletion synapse/python_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@
CONDITIONAL_REQUIREMENTS = {
"email.enable_notifs": ["Jinja2>=2.9", "bleach>=1.4.2"],
"matrix-synapse-ldap3": ["matrix-synapse-ldap3>=0.1"],
"postgres": ["psycopg2>=2.6"],

# we use execute_batch, which arrived in psycopg 2.7.
"postgres": ["psycopg2>=2.7"],

# ConsentResource uses select_autoescape, which arrived in jinja 2.9
"resources.consent": ["Jinja2>=2.9"],
Expand Down

0 comments on commit 4abf5aa

Please sign in to comment.