I'm wondering if anyone is using Django 4.2, PyPy 3.10 and Postgres 15? I tried using psycopg2cffi==2.9.0 and it works up until a point but eventually fails with a series of errors relating to imports.
After adding the compatibility layer to the top of my settings.py script using: > from psycopg2cffi import compat, errorcodes > compat.register() The first error I see is: > ImportError: cannot import name 'errors' from 'psycopg2cffi' (/home/appuser/.local/lib/pypy3.10/site-packages/psycopg2cffi/__init__.py) I see the errors module in the psycopg2cffi repo and seem to be able to import it like so: > import psycopg2cffi > from psycopg2cffi import compat, errorcodes psycopg2cffi.errors = errorcodes I then see an error stating: > ImportError: cannot import name 'sql' from 'psycopg2cffi' (/home/appuser/.local/lib/pypy3.10/site-packages/psycopg2cffi/__init__.py) While I see the sql.py module in the repo, it does not seem to be included in the built psycopg2cffi package. Trying to patch it in results in: > from psycopg2cffi import sql > psycopg2cffi.sql = sql > ImportError: cannot import name 'sql' from 'psycopg2cffi' (/home/appuser/.local/lib/pypy3.10/site-packages/psycopg2cffi/__init__.py) I tried copying sql.py into my locally installed package and that resulted yet another error: > ImportError: cannot import name 'PY3' from 'psycopg2cffi.compat' (/home/appuser/.local/lib/pypy3.10/site-packages/psycopg2cffi/compat.py) So, before I go any further down this path, I wanted to see if anyone is using this setup, knows that it will definitely not work or has any suggestions about alternatives. Thanks! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0c54689a-7759-4014-a317-67e2a8499bb8n%40googlegroups.com.

