[Django] #35190: django with postgresql is incompatible with pypy

6 views
Skip to first unread message

Django

unread,
Feb 13, 2024, 8:57:46 AMFeb 13
to django-...@googlegroups.com
#35190: django with postgresql is incompatible with pypy
-------------------------------------+-------------------------------------
Reporter: Владимир | Owner: nobody
Type: | Status: new
Uncategorized |
Component: Database | Version: 4.2
layer (models, ORM) |
Severity: Normal | Keywords: pypy postgresql
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
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
--
Ticket URL: <https://code.djangoproject.com/ticket/35190>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Feb 13, 2024, 9:00:13 AMFeb 13
to django-...@googlegroups.com
#35190: django with postgresql is incompatible with pypy
-------------------------------------+-------------------------------------
Reporter: Владимир | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: 4.2
(models, ORM) |
Severity: Normal | Resolution:

Keywords: pypy postgresql | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Владимир):

* type: Uncategorized => Bug

--
Ticket URL: <https://code.djangoproject.com/ticket/35190#comment:1>

Django

unread,
Feb 13, 2024, 9:19:06 AMFeb 13
to django-...@googlegroups.com
#35190: django with postgresql is incompatible with pypy
---------------------------------+--------------------------------------
Reporter: Владимир | Owner: nobody
Type: Bug | Status: closed
Component: Core (Other) | Version: dev
Severity: Normal | Resolution: invalid

Keywords: pypy postgresql | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------------------------
Changes (by Natalia Bidart):

* status: new => closed
* resolution: => invalid
* version: 4.2 => dev
* component: Database layer (models, ORM) => Core (Other)

Comment:

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

{{{
...
2024-02-13T02:44:21.6498968Z Complete job name: Ubuntu, PostgreSQL,
PyPy3.10
...
2024-02-13T02:44:26.5855397Z Status: Downloaded newer image for
postgres:13-alpine
2024-02-13T02:44:26.5869670Z docker.io/library/postgres:13-alpine
2024-02-13T02:44:26.5970128Z ##[command]/usr/bin/docker create --name
9705ff7849d54424b276eb457c41eb91_postgres13alpine_c2c9a3 --label 149869
--network github_network_aef26d97bf734bdd832322cc2f43c1d6 --network-alias
postgres -p 5432:5432 --health-cmd pg_isready --health-interval 10s
--health-timeout 5s --health-retries 5 -e "POSTGRES_DB=django" -e
"POSTGRES_USER=user" -e "POSTGRES_PASSWORD=postgres" -e
GITHUB_ACTIONS=true -e CI=true postgres:13-alpine
...
2024-02-13T02:44:41.0532390Z postgres service is healthy.
...
2024-02-13T02:59:31.9557002Z
----------------------------------------------------------------------
2024-02-13T02:59:31.9557502Z Ran 16838 tests in 577.079s
2024-02-13T02:59:31.9557727Z
2024-02-13T02:59:31.9557854Z OK (skipped=594, expected failures=7)
...
}}}

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
[https://docs.djangoproject.com/en/dev/faq/help/#how-do-i-do-x-why-
doesn-t-y-work-where-can-i-go-to-get-help this link].
--
Ticket URL: <https://code.djangoproject.com/ticket/35190#comment:2>

Django

unread,
Feb 13, 2024, 12:00:02 PMFeb 13
to django-...@googlegroups.com
#35190: django with postgresql is incompatible with pypy
---------------------------------+--------------------------------------
Reporter: Владимир | Owner: nobody
Type: Bug | Status: closed
Component: Core (Other) | Version: dev
Severity: Normal | Resolution: duplicate

Keywords: pypy postgresql | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------------------------
Changes (by Mariusz Felisiak):

* resolution: invalid => duplicate

--
Ticket URL: <https://code.djangoproject.com/ticket/35190#comment:3>

Reply all
Reply to author
Forward
0 new messages