Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downgrade psycopg2-binary on Python 3.8 #28958

Closed
armenzg opened this issue Sep 29, 2021 · 2 comments · Fixed by #29012
Closed

Downgrade psycopg2-binary on Python 3.8 #28958

armenzg opened this issue Sep 29, 2021 · 2 comments · Fixed by #29012
Assignees
Labels
Component: Developer Environment This covers issues related to setting up a developer's environment

Comments

@armenzg
Copy link
Member

armenzg commented Sep 29, 2021

psycopg 2.9.x is fundamentally incompatible with Django 2.2: psycopg/psycopg2#1293

We'll have to stay on 2.8.x and find a way to get it working with Apple M1 machines.

@tokdev
Copy link

tokdev commented Sep 30, 2021

Got the same issue with it. Try to downgrade it to 2.8.6 but get issues for it. What is the solution for it?

@armenzg armenzg self-assigned this Oct 1, 2021
@armenzg armenzg added the Component: Developer Environment This covers issues related to setting up a developer's environment label Oct 1, 2021
@armenzg armenzg added this to the Apple M1 Python support milestone Oct 1, 2021
@armenzg
Copy link
Member Author

armenzg commented Oct 1, 2021

@tokdev

Got the same issue with it. Try to downgrade it to 2.8.6 but get issues for it. What is the solution for it?

You can either upgrade to Django 3.2 or downgrade to psycopg-binary 2.8.6. See this issue for all details.

armenzg added a commit that referenced this issue Oct 1, 2021
For the incompatibility issue with Django visit [this issue][incompatible],

In this PR, we're going to downgrade to the compatible 2.8.6 version (thus, matching
the Python 3.6 version), removing the need to install `postgresql` (this means partially
reverting #28607) and instead installing a wheel I built on my machine that I have stored
in GC storage.

Fixes #28958

[incompatible]: psycopg/psycopg2#1293
armenzg added a commit that referenced this issue Oct 6, 2021
For the incompatibility issue with Django visit [this issue][incompatible],

In this PR, we're going to downgrade to the compatible 2.8.6 version (thus, matching
the Python 3.6 version), removing the need to install `postgresql` (this means partially
reverting #28607) and instead installing a wheel I built on my machine that I have stored
in GC storage.

Fixes #28958

[incompatible]: psycopg/psycopg2#1293
armenzg added a commit that referenced this issue Oct 7, 2021
For the incompatibility issue with Django visit [this issue][incompatible],

In this PR, we're going to downgrade to the compatible 2.8.6 version (thus, matching
the Python 3.6 version), removing the need to install `postgresql` (this means partially
reverting #28607) and instead installing a wheel I built on my machine that I have stored
in GC storage.

Fixes #28958

[incompatible]: psycopg/psycopg2#1293
@armenzg armenzg closed this as completed Oct 12, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Oct 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Component: Developer Environment This covers issues related to setting up a developer's environment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants