Skip to content

Fix wheels for python3.10 & 3.11 #2

@nhamilakis

Description

@nhamilakis

There is a weird issue in the manylinux container (on github actions)
that fails the wheels for python3.10 & python3.11

Here is the detailed logs from the github actions console

+ /opt/python/cp310-cp310/bin/pip wheel . -w ./dist --no-deps
WARNING: The directory '/github/home/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Processing /github/workspace
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Installing backend dependencies: started
  Installing backend dependencies: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Building wheels for collected packages: ***-libriabx
  Building wheel for ***-libriabx (pyproject.toml): started
  Building wheel for ***-libriabx (pyproject.toml): finished with status 'error'
  error: subprocess-exited-with-error
Failed to build ***-libriabx
  
  × Building wheel for ***-libriabx (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [188 lines of output]
      /tmp/pip-build-env-jcruqqx7/overlay/lib/python3.10/site-packages/setuptools_scm/git.py:[135](https://github.com/zerospeech/libri-light-abx/actions/runs/3481567659/jobs/5822827721#step:5:136): UserWarning: "/github/workspace" is shallow and may cause errors
        warnings.warn(f'"{wd.path}" is shallow and may cause errors')
      /tmp/pip-build-env-jcruqqx7/overlay/lib/python3.10/site-packages/setuptools/config/pyprojecttoml.py:108: _BetaConfiguration: Support for `[tool.setuptools]` in `pyproject.toml` is still *beta*.
        warnings.warn(msg, _BetaConfiguration)
      /tmp/pip-build-env-jcruqqx7/overlay/lib/python3.10/site-packages/setuptools/config/expand.py:[144](https://github.com/zerospeech/libri-light-abx/actions/runs/3481567659/jobs/5822827721#step:5:145): UserWarning: File '/github/workspace/LICENSE.txt' cannot be found
        warnings.warn(f"File {path!r} cannot be found")
      running bdist_wheel
      running build
      running build_py
      creating build/lib.linux-x86_64-cpython-310
      creating build/lib.linux-x86_64-cpython-310/libriabx
      copying libriabx/wrappers.py -> build/lib.linux-x86_64-cpython-310/libriabx
      copying libriabx/__init__.py -> build/lib.linux-x86_64-cpython-310/libriabx
      creating build/lib.linux-x86_64-cpython-310/libriabx/libri_light
      copying libriabx/libri_light/CPC_loader.py -> build/lib.linux-x86_64-cpython-310/libriabx/libri_light
      copying libriabx/libri_light/eval_ABX.py -> build/lib.linux-x86_64-cpython-310/libriabx/libri_light
      copying libriabx/libri_light/__init__.py -> build/lib.linux-x86_64-cpython-310/libriabx/libri_light
      creating build/lib.linux-x86_64-cpython-310/libriabx/libri_light/ABX_src
      copying libriabx/libri_light/ABX_src/abx_group_computation.py -> build/lib.linux-x86_64-cpython-310/libriabx/libri_light/ABX_src
      copying libriabx/libri_light/ABX_src/abx_iterators.py -> build/lib.linux-x86_64-cpython-310/libriabx/libri_light/ABX_src
      copying libriabx/libri_light/ABX_src/__init__.py -> build/lib.linux-x86_64-cpython-310/libriabx/libri_light/ABX_src
      running egg_info
      writing ***_libriabx.egg-info/PKG-INFO
      writing dependency_links to ***_libriabx.egg-info/dependency_links.txt
      writing entry points to ***_libriabx.egg-info/entry_points.txt
      writing requirements to ***_libriabx.egg-info/requires.txt
      writing top-level names to ***_libriabx.egg-info/top_level.txt
      listing git files failed - pretending there aren't any
      reading manifest file '***_libriabx.egg-info/SOURCES.txt'
      adding license file 'LICENCE.txt'
      writing manifest file '***_libriabx.egg-info/SOURCES.txt'
      copying libriabx/libri_light/ABX_src/dtw.pyx -> build/lib.linux-x86_64-cpython-310/libriabx/libri_light/ABX_src
      running build_ext
      skipping 'libriabx/libri_light/ABX_src/dtw.c' Cython extension (up-to-date)
      building 'libri_light_dtw' extension
      creating build/temp.linux-x86_64-cpython-310
      creating build/temp.linux-x86_64-cpython-310/libriabx
      creating build/temp.linux-x86_64-cpython-310/libriabx/libri_light
      creating build/temp.linux-x86_64-cpython-310/libriabx/libri_light/ABX_src
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tmp/pip-build-env-jcruqqx7/overlay/lib/python3.10/site-packages/numpy/core/include -I/opt/_internal/cpython-3.10.8/include/python3.10 -c libriabx/libri_light/ABX_src/dtw.c -o build/temp.linux-x86_64-cpython-310/libriabx/libri_light/ABX_src/dtw.o -O3
      In file included from /tmp/pip-build-env-jcruqqx7/overlay/lib/python3.10/site-packages/numpy/core/include/numpy/ndarraytypes.h:1948,
                       from /tmp/pip-build-env-jcruqqx7/overlay/lib/python3.10/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
                       from /tmp/pip-build-env-jcruqqx7/overlay/lib/python3.10/site-packages/numpy/core/include/numpy/arrayobject.h:5,
                       from libriabx/libri_light/ABX_src/dtw.c:619:
      /tmp/pip-build-env-jcruqqx7/overlay/lib/python3.10/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
         17 | #warning "Using deprecated NumPy API, disable it with " \
            |  ^~~~~~~
      libriabx/libri_light/ABX_src/dtw.c: In function ‘__pyx_tp_dealloc_array’:
      libriabx/libri_light/ABX_src/dtw.c:18526:5: error: lvalue required as increment operand
      18526 |     ++Py_REFCNT(o);
            |     ^~
      libriabx/libri_light/ABX_src/dtw.c:18528:5: error: lvalue required as decrement operand
      18528 |     --Py_REFCNT(o);
            |     ^~
      libriabx/libri_light/ABX_src/dtw.c: In function ‘__pyx_tp_dealloc_memoryview’:
      libriabx/libri_light/ABX_src/dtw.c:18837:5: error: lvalue required as increment operand
      18837 |     ++Py_REFCNT(o);
            |     ^~
      libriabx/libri_light/ABX_src/dtw.c:18839:5: error: lvalue required as decrement operand
      18839 |     --Py_REFCNT(o);
            |     ^~
      libriabx/libri_light/ABX_src/dtw.c: In function ‘__pyx_tp_dealloc__memoryviewslice’:
      libriabx/libri_light/ABX_src/dtw.c:19087:5: error: lvalue required as increment operand
      19087 |     ++Py_REFCNT(o);
            |     ^~
      libriabx/libri_light/ABX_src/dtw.c:19089:5: error: lvalue required as decrement operand
      19089 |     --Py_REFCNT(o);
            |     ^~
      libriabx/libri_light/ABX_src/dtw.c: In function ‘__Pyx_ParseOptionalKeywords’:
      libriabx/libri_light/ABX_src/dtw.c:20479:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      20479 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                     ^
      In file included from /opt/_internal/cpython-3.10.8/include/python3.10/unicodeobject.h:1046,
                       from /opt/_internal/cpython-3.10.8/include/python3.10/Python.h:83,
                       from libriabx/libri_light/ABX_src/dtw.c:23:
      /opt/_internal/cpython-3.10.8/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      libriabx/libri_light/ABX_src/dtw.c:20479:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
      20479 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                     ^
      In file included from /opt/_internal/cpython-3.10.8/include/python3.10/unicodeobject.h:1046,
                       from /opt/_internal/cpython-3.10.8/include/python3.10/Python.h:83,
                       from libriabx/libri_light/ABX_src/dtw.c:23:
      /opt/_internal/cpython-3.10.8/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
        580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
            |                                             ^~~~~~~~~~~~~~~~~~~
      libriabx/libri_light/ABX_src/dtw.c:20479:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      20479 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                     ^
      In file included from /opt/_internal/cpython-3.10.8/include/python3.10/unicodeobject.h:1046,
                       from /opt/_internal/cpython-3.10.8/include/python3.10/Python.h:83,
                       from libriabx/libri_light/ABX_src/dtw.c:23:
      /opt/_internal/cpython-3.10.8/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      libriabx/libri_light/ABX_src/dtw.c:20479:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      20479 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                     ^
      In file included from /opt/_internal/cpython-3.10.8/include/python3.10/unicodeobject.h:1046,
                       from /opt/_internal/cpython-3.10.8/include/python3.10/Python.h:83,
                       from libriabx/libri_light/ABX_src/dtw.c:23:
      /opt/_internal/cpython-3.10.8/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      libriabx/libri_light/ABX_src/dtw.c:20479:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
      20479 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                     ^
      In file included from /opt/_internal/cpython-3.10.8/include/python3.10/unicodeobject.h:1046,
                       from /opt/_internal/cpython-3.10.8/include/python3.10/Python.h:83,
                       from libriabx/libri_light/ABX_src/dtw.c:23:
      /opt/_internal/cpython-3.10.8/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
        580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
            |                                             ^~~~~~~~~~~~~~~~~~~
      libriabx/libri_light/ABX_src/dtw.c:20479:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      20479 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                     ^
      In file included from /opt/_internal/cpython-3.10.8/include/python3.10/unicodeobject.h:1046,
                       from /opt/_internal/cpython-3.10.8/include/python3.10/Python.h:83,
                       from libriabx/libri_light/ABX_src/dtw.c:23:
      /opt/_internal/cpython-3.10.8/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      libriabx/libri_light/ABX_src/dtw.c:20495:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      20495 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                         ^
      In file included from /opt/_internal/cpython-3.10.8/include/python3.10/unicodeobject.h:1046,
                       from /opt/_internal/cpython-3.10.8/include/python3.10/Python.h:83,
                       from libriabx/libri_light/ABX_src/dtw.c:23:
      /opt/_internal/cpython-3.10.8/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      libriabx/libri_light/ABX_src/dtw.c:20495:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
      20495 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                         ^
      In file included from /opt/_internal/cpython-3.10.8/include/python3.10/unicodeobject.h:1046,
                       from /opt/_internal/cpython-3.10.8/include/python3.10/Python.h:83,
                       from libriabx/libri_light/ABX_src/dtw.c:23:
      /opt/_internal/cpython-3.10.8/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
        580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
            |                                             ^~~~~~~~~~~~~~~~~~~
      libriabx/libri_light/ABX_src/dtw.c:20495:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      20495 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                         ^
      In file included from /opt/_internal/cpython-3.10.8/include/python3.10/unicodeobject.h:1046,
                       from /opt/_internal/cpython-3.10.8/include/python3.10/Python.h:83,
                       from libriabx/libri_light/ABX_src/dtw.c:23:
      /opt/_internal/cpython-3.10.8/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      libriabx/libri_light/ABX_src/dtw.c:20495:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      20495 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                         ^
      In file included from /opt/_internal/cpython-3.10.8/include/python3.10/unicodeobject.h:1046,
                       from /opt/_internal/cpython-3.10.8/include/python3.10/Python.h:83,
                       from libriabx/libri_light/ABX_src/dtw.c:23:
      /opt/_internal/cpython-3.10.8/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      libriabx/libri_light/ABX_src/dtw.c:20495:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
      20495 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                         ^
      In file included from /opt/_internal/cpython-3.10.8/include/python3.10/unicodeobject.h:1046,
                       from /opt/_internal/cpython-3.10.8/include/python3.10/Python.h:83,
                       from libriabx/libri_light/ABX_src/dtw.c:23:
      /opt/_internal/cpython-3.10.8/include/python3.10/cpython/unicodeobject.h:580:45: note: declared here
        580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
            |                                             ^~~~~~~~~~~~~~~~~~~
      libriabx/libri_light/ABX_src/dtw.c:20495:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
      20495 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
            |                         ^
      In file included from /opt/_internal/cpython-3.10.8/include/python3.10/unicodeobject.h:1046,
                       from /opt/_internal/cpython-3.10.8/include/python3.10/Python.h:83,
                       from libriabx/libri_light/ABX_src/dtw.c:23:
      /opt/_internal/cpython-3.10.8/include/python3.10/cpython/unicodeobject.h:446:26: note: declared here
        446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
            |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      libriabx/libri_light/ABX_src/dtw.c: In function ‘__Pyx_decode_c_string’:
      libriabx/libri_light/ABX_src/dtw.c:2[183](https://github.com/zerospeech/libri-light-abx/actions/runs/3481567659/jobs/5822827721#step:5:184)7:9: warning: ‘PyUnicode_FromUnicode’ is deprecated [-Wdeprecated-declarations]
      [218](https://github.com/zerospeech/libri-light-abx/actions/runs/3481567659/jobs/5822827721#step:5:219)37 |         return PyUnicode_FromUnicode(NULL, 0);
            |         ^~~~~~
      In file included from /opt/_internal/cpython-3.10.8/include/python3.10/unicodeobject.h:1046,
                       from /opt/_internal/cpython-3.10.8/include/python3.10/Python.h:83,
                       from libriabx/libri_light/ABX_src/dtw.c:23:
      /opt/_internal/cpython-3.10.8/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here
        551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
            |                                          ^~~~~~~~~~~~~~~~~~~~~
      error: command '/opt/rh/devtoolset-10/root/usr/bin/gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for ***-libriabx
ERROR: Failed to build one or more wheels
+ echo 'Building wheels failed.'
Building wheels failed.
+ exit 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions