Text-to-Speech
English

Issue on PIP Install on Arch

#99
by MostlyK - opened

Installation fails, logs:

                    ********************************************************************************
      
            !!
              check.warn(importable)
            /tmp/pip-build-env-et8gy0rk/overlay/lib/python3.13/site-packages/setuptools/command/build_py.py:212: _Warning: Package 'thinc.tests.mypy.outputs' is absent from the `packages` configuration.
            !!
      
                    ********************************************************************************
                    ############################
                    # Package would be ignored #
                    ############################
                    Python recognizes 'thinc.tests.mypy.outputs' as an importable package[^1],
                    but it is absent from setuptools' `packages` configuration.
      
                    This leads to an ambiguous overall configuration. If you want to distribute this
                    package, please make sure that 'thinc.tests.mypy.outputs' is explicitly added
                    to the `packages` configuration field.
      
                    Alternatively, you can also rely on setuptools' discovery methods
                    (for example by using `find_namespace_packages(...)`/`find_namespace:`
                    instead of `find_packages(...)`/`find:`).
      
                    You can read more about "package discovery" on setuptools documentation page:
      
                    - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
      
                    If you don't want 'thinc.tests.mypy.outputs' to be distributed and are
                    already explicitly excluding 'thinc.tests.mypy.outputs' via
                    `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
                    you can try to use `exclude_package_data`, or `include-package-data=False` in
                    combination with a more fine grained `package-data` configuration.
      
                    You can read more about "package data files" on setuptools documentation page:
      
                    - https://setuptools.pypa.io/en/latest/userguide/datafiles.html
      
      
                    [^1]: For Python, any directory (with suitable naming) can be imported,
                          even if it does not contain any `.py` files.
                          On the other hand, currently there is no concept of package data
                          directory, all directories are treated like packages.
                    ********************************************************************************
      
            !!
              check.warn(importable)
            copying thinc/__init__.pxd -> build/lib.linux-x86_64-cpython-313/thinc
            copying thinc/py.typed -> build/lib.linux-x86_64-cpython-313/thinc
            copying thinc/backends/__init__.pxd -> build/lib.linux-x86_64-cpython-313/thinc/backends
            copying thinc/backends/_custom_kernels.cu -> build/lib.linux-x86_64-cpython-313/thinc/backends
            copying thinc/backends/_murmur3.cu -> build/lib.linux-x86_64-cpython-313/thinc/backends
            copying thinc/backends/cblas.pxd -> build/lib.linux-x86_64-cpython-313/thinc/backends
            copying thinc/backends/cblas.pyx -> build/lib.linux-x86_64-cpython-313/thinc/backends
            copying thinc/backends/cpu_kernels.hh -> build/lib.linux-x86_64-cpython-313/thinc/backends
            copying thinc/backends/linalg.pxd -> build/lib.linux-x86_64-cpython-313/thinc/backends
            copying thinc/backends/linalg.pyx -> build/lib.linux-x86_64-cpython-313/thinc/backends
            copying thinc/backends/numpy_ops.pxd -> build/lib.linux-x86_64-cpython-313/thinc/backends
            copying thinc/backends/numpy_ops.pyx -> build/lib.linux-x86_64-cpython-313/thinc/backends
            copying thinc/extra/__init__.pxd -> build/lib.linux-x86_64-cpython-313/thinc/extra
            copying thinc/extra/search.pxd -> build/lib.linux-x86_64-cpython-313/thinc/extra
            copying thinc/extra/search.pyx -> build/lib.linux-x86_64-cpython-313/thinc/extra
            copying thinc/layers/premap_ids.pyx -> build/lib.linux-x86_64-cpython-313/thinc/layers
            copying thinc/layers/sparselinear.pyx -> build/lib.linux-x86_64-cpython-313/thinc/layers
            copying thinc/extra/tests/c_test_search.pyx -> build/lib.linux-x86_64-cpython-313/thinc/extra/tests
            creating build/lib.linux-x86_64-cpython-313/thinc/tests/mypy/configs
            copying thinc/tests/mypy/configs/mypy-default.ini -> build/lib.linux-x86_64-cpython-313/thinc/tests/mypy/configs
            copying thinc/tests/mypy/configs/mypy-plugin.ini -> build/lib.linux-x86_64-cpython-313/thinc/tests/mypy/configs
            creating build/lib.linux-x86_64-cpython-313/thinc/tests/mypy/outputs
            copying thinc/tests/mypy/outputs/fail-no-plugin.txt -> build/lib.linux-x86_64-cpython-313/thinc/tests/mypy/outputs
            copying thinc/tests/mypy/outputs/fail-plugin.txt -> build/lib.linux-x86_64-cpython-313/thinc/tests/mypy/outputs
            copying thinc/tests/mypy/outputs/success-no-plugin.txt -> build/lib.linux-x86_64-cpython-313/thinc/tests/mypy/outputs
            copying thinc/tests/mypy/outputs/success-plugin.txt -> build/lib.linux-x86_64-cpython-313/thinc/tests/mypy/outputs
            running build_ext
            building 'thinc.backends.cblas' extension
            creating build/temp.linux-x86_64-cpython-313/thinc/backends
            g++ -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -ffat-lto-objects -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/build/python/src=/usr/src/debug/python -flto=auto -fPIC -I/tmp/pip-build-env-et8gy0rk/overlay/lib/python3.13/site-packages/numpy/_core/include -I/usr/include/python3.13 -I/usr/include/python3.13 -c thinc/backends/cblas.cpp -o build/temp.linux-x86_64-cpython-313/thinc/backends/cblas.o -O3 -Wno-strict-prototypes -Wno-unused-function -std=c++11
            cc1plus: warning: command-line option ‘-Wno-strict-prototypes’ is valid for C/ObjC but not for C++
            thinc/backends/cblas.cpp:871:72: warning: ‘Py_UNICODE’ is deprecated [-Wdeprecated-declarations]
              871 | static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u) {
                  |                                                                        ^
            In file included from /usr/include/python3.13/unicodeobject.h:1014,
                             from /usr/include/python3.13/Python.h:79,
                             from thinc/backends/cblas.cpp:24:
            /usr/include/python3.13/cpython/unicodeobject.h:10:37: note: declared here
               10 | Py_DEPRECATED(3.13) typedef wchar_t Py_UNICODE;
                  |                                     ^~~~~~~~~~
            thinc/backends/cblas.cpp: In function ‘size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE*)’:
            thinc/backends/cblas.cpp:872:23: warning: ‘Py_UNICODE’ is deprecated [-Wdeprecated-declarations]
              872 |     const Py_UNICODE *u_end = u;
                  |                       ^~~~~
            /usr/include/python3.13/cpython/unicodeobject.h:10:37: note: declared here
               10 | Py_DEPRECATED(3.13) typedef wchar_t Py_UNICODE;
                  |                                     ^~~~~~~~~~
            thinc/backends/cblas.cpp: In function ‘int __Pyx_PyList_Extend(PyObject*, PyObject*)’:
            thinc/backends/cblas.cpp:1908:22: error: ‘_PyList_Extend’ was not declared in this scope; did you mean ‘PyList_Extend’?
             1908 |     PyObject* none = _PyList_Extend((PyListObject*)L, v);
                  |                      ^~~~~~~~~~~~~~
                  |                      PyList_Extend
            thinc/backends/cblas.cpp: In function ‘void __Pyx_init_assertions_enabled()’:
            thinc/backends/cblas.cpp:1946:39: error: ‘_PyInterpreterState_GetConfig’ was not declared in this scope; did you mean ‘PyInterpreterState_GetID’?
             1946 |     __pyx_assertions_enabled_flag = ! _PyInterpreterState_GetConfig(__Pyx_PyThreadState_Current->interp)->optimization_level;
                  |                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                  |                                       PyInterpreterState_GetID
            thinc/backends/cblas.cpp: In function ‘int __Pyx_PyInt_As_int(PyObject*)’:
            thinc/backends/cblas.cpp:20354:46: error: too few arguments to function ‘int _PyLong_AsByteArray(PyLongObject*, unsigned char*, size_t, int, int, int)’
            20354 |                 int ret = _PyLong_AsByteArray((PyLongObject *)v,
                  |                           ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
            20355 |                                               bytes, sizeof(val),
                  |                                               ~~~~~~~~~~~~~~~~~~~
            20356 |                                               is_little, !is_unsigned);
                  |                                               ~~~~~~~~~~~~~~~~~~~~~~~~
            In file included from /usr/include/python3.13/longobject.h:107,
                             from /usr/include/python3.13/Python.h:81:
            /usr/include/python3.13/cpython/longobject.h:111:17: note: declared here
              111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
                  |                 ^~~~~~~~~~~~~~~~~~~
            thinc/backends/cblas.cpp: In function ‘long int __Pyx_PyInt_As_long(PyObject*)’:
            thinc/backends/cblas.cpp:20550:46: error: too few arguments to function ‘int _PyLong_AsByteArray(PyLongObject*, unsigned char*, size_t, int, int, int)’
            20550 |                 int ret = _PyLong_AsByteArray((PyLongObject *)v,
                  |                           ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
            20551 |                                               bytes, sizeof(val),
                  |                                               ~~~~~~~~~~~~~~~~~~~
            20552 |                                               is_little, !is_unsigned);
                  |                                               ~~~~~~~~~~~~~~~~~~~~~~~~
            /usr/include/python3.13/cpython/longobject.h:111:17: note: declared here
              111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
                  |                 ^~~~~~~~~~~~~~~~~~~
            thinc/backends/cblas.cpp: In function ‘char __Pyx_PyInt_As_char(PyObject*)’:
            thinc/backends/cblas.cpp:20822:46: error: too few arguments to function ‘int _PyLong_AsByteArray(PyLongObject*, unsigned char*, size_t, int, int, int)’
            20822 |                 int ret = _PyLong_AsByteArray((PyLongObject *)v,
                  |                           ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
            20823 |                                               bytes, sizeof(val),
                  |                                               ~~~~~~~~~~~~~~~~~~~
            20824 |                                               is_little, !is_unsigned);
                  |                                               ~~~~~~~~~~~~~~~~~~~~~~~~
            /usr/include/python3.13/cpython/longobject.h:111:17: note: declared here
              111 | PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
                  |                 ^~~~~~~~~~~~~~~~~~~
            error: command '/usr/bin/g++' 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 thinc
      Failed to build thinc
      ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (thinc)
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

@MostlyK This issue is being tracked on GitHub as "Failed building wheel for thinc", please see for potential solutions: https://github.com/hexgrad/kokoro/issues/25

hexgrad changed discussion status to closed

Sign up or log in to comment