Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork36
Description
Dear
I have an issue during python wheel generation for my module on Linux, Python 3.13:
../numpy/_core/src/common/pythoncapi-compat/pythoncapi_compat.h: In function ‘PyObject* PyBytes_Join(PyObject*, PyObject*)’: ../numpy/_core/src/common/pythoncapi-compat/pythoncapi_compat.h:1607:12: error: ‘_PyBytes_Join’ was not declared in this scope; did you mean ‘PyBytes_Join’?My code has numpy dependency and it uses pybind11 C++ library. I generate a wheel for it.
Could it be due tothis renaming?
There is a checkhere but it checks only Python 3.14, and not 3.13:

I see there is a backward compatibility wasassumed

As you can see it doesn't work in my case.
The whole log is herehttps://pastebin.com/Am07UcZg
I have this issue only for Python 3.13, only on Linux (docker image python:3.13). Just install numpy and that works there. Looks like for my wheel creation, it does something else which fails.
And there is no such an issue for other Python versions (3.12 or 3.14) and Windows (Python 3.10-3.14).
The error appears in gitlab CI/CD for myproject. There are those images used:

I could not trigger numpy compilation using one of that images and reproduce the issue locally. I don't know how to run two layered docker image locally, although gitlab manages to do that inside the runner.
I tried to compile numpy using Python 3.13 from conda on a Linux machine (not that docker image) and it succeeded.
I will appreciate you help.
Best,
ilshat