#35190 closed Bug (duplicate)
django with postgresql is incompatible with pypy
Reported by: | Владимир | Owned by: | nobody |
---|---|---|---|
Component: | Core (Other) | Version: | dev |
Severity: | Normal | Keywords: | pypy postgresql |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
When using django 4.2 and higher with pypy, it is impossible to use postgresql. Versions below require psycopg2cffi, and perfectly work with it, but once I switched to django.4.2, I faced following exception:
File "/opt/pypy/lib/pypy3.10/site-packages/django/db/backends/postgresql/base.py", line 47, in <module>
from .psycopg_any import IsolationLevel, is_psycopg3 # NOQA isort:skip
File "/opt/pypy/lib/pypy3.10/site-packages/django/db/backends/postgresql/psycopg_any.py", line 77, in <module>
from psycopg2 import errors, extensions, sql # NOQA
Change History (3)
comment:1 by , 9 months ago
Type: | Uncategorized → Bug |
---|
comment:2 by , 9 months ago
Component: | Database layer (models, ORM) → Core (Other) |
---|---|
Resolution: | → invalid |
Status: | new → closed |
Version: | 4.2 → dev |
comment:3 by , 9 months ago
Resolution: | invalid → duplicate |
---|
Hello Владимир, thank you for your report.
Support for Django using PyPy3.10 was confirmed when #34986 was fixed. See scheduled tests runs showing passing runs for latest Django, Postgresql and PyPy3.10:
https://github.com/django/django/actions/runs/7881024587/job/21503974819
I'll be closing this issue as invalid, but if you are still having problems after trying latest Django and PyPy3.10, you can reach out to any of the user support channels from this link.