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

doesnt build with python 3.13 #1217

Open
emdete opened this issue Jan 19, 2025 · 0 comments
Open

doesnt build with python 3.13 #1217

emdete opened this issue Jan 19, 2025 · 0 comments

Comments

@emdete
Copy link

emdete commented Jan 19, 2025

the module doesnt build under python 3.13:

ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (asyncpg)

it seems its uses elemts of the Py-API that are private now, for example:

      x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -I/home/mautrix-telegram/env/include -I/usr/include/python3.13 -c as
yncpg/pgproto/pgproto.c -o build/temp.linux-x86_64-cpython-313/asyncpg/pgproto/pgproto.o -O2 -fsigned-char -Wall -Wsign-compare -Wconversion
      asyncpg/pgproto/pgproto.c:864:1: warning: ‘Py_UNICODE’ is deprecated [-Wdeprecated-declarations]
        864 | static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u) {
            | ^~~~~~
      asyncpg/pgproto/pgproto.c: In function ‘__Pyx_Py_UNICODE_strlen’:
      asyncpg/pgproto/pgproto.c:865:5: warning: ‘Py_UNICODE’ is deprecated [-Wdeprecated-declarations]
        865 |     const Py_UNICODE *u_end = u;
            |     ^~~~~
      asyncpg/pgproto/pgproto.c: In function ‘__Pyx_init_assertions_enabled’:
      asyncpg/pgproto/pgproto.c:1667:39: error: implicit declaration of function ‘_PyInterpreterState_GetConfig’; did you mean ‘PyInterpreterState_GetID’? [-Wimplicit-function-declaration]
       1667 |     __pyx_assertions_enabled_flag = ! _PyInterpreterState_GetConfig(__Pyx_PyThreadState_Current->interp)->optimization_level;
            |                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            |                                       PyInterpreterState_GetID
      asyncpg/pgproto/pgproto.c:1667:105: error: invalid type argument of ‘->’ (have ‘int’)
       1667 |     __pyx_assertions_enabled_flag = ! _PyInterpreterState_GetConfig(__Pyx_PyThreadState_Current->interp)->optimization_level;
            |                                                                                                         ^~
      asyncpg/pgproto/pgproto.c: In function ‘__Pyx_PyUnicode_Join’:
      asyncpg/pgproto/pgproto.c:38932:13: error: implicit declaration of function ‘_PyUnicode_FastCopyCharacters’; did you mean ‘PyUnicode_CopyCharacters’? [-Wimplicit-function-declaration]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant