Package: src:mlpy
Version: 3.5.0+ds-2
Severity: important
Tags: sid trixie
User: debian-pyt...@lists.debian.org
Usertags: python3.12

mlpy ftbfs with Python 3.12 (with cython 3.0.5)

[...]
   dh_auto_build -O--buildsystem=pybuild
I: pybuild base:310: /usr/bin/python3.12 setup.py build
/<<PKGBUILDDIR>>/setup.py:27: SyntaxWarning: invalid escape sequence '\s'
  data_files += [("Lib\site-packages\mlpy", dlls)]
INFO: Disabling color, you really want to install colorlog.
/usr/lib/python3/dist-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /<<PKGBUILDDIR>>/mlpy/gsl/gsl.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)
Compiling mlpy/gsl/gsl.pyx because it changed.
[1/1] Cythonizing mlpy/gsl/gsl.pyx
In file included from /usr/include/python3.12/numpy/ndarraytypes.h:1940,
                 from /usr/include/python3.12/numpy/ndarrayobject.h:12,
                 from /usr/include/python3.12/numpy/arrayobject.h:5,
                 from mlpy/gsl/gsl.c:1223:
/usr/include/python3.12/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 " \
      |  ^~~~~~~
/usr/lib/python3/dist-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /<<PKGBUILDDIR>>/mlpy/liblinear/liblinear.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)

Error compiling Cython file:
------------------------------------------------------------
...
                class is not changed, it is set to 1). For example, to
                change penalty for classes 1 and 2 to 0.5 and 0.8
                respectively set weight={1:0.5, 2:0.8}
        """

        set_print_string_function(&print_null)
                                  ^
------------------------------------------------------------

mlpy/liblinear/liblinear.pyx:115:34: Cannot assign type 'void (*)(char *) except *' to 'void (*)(char *) noexcept'. Exception values are incompatible. Suggest adding 'noexcept' to type 'void (char *) except *'.
Compiling mlpy/liblinear/liblinear.pyx because it changed.
[1/1] Cythonizing mlpy/liblinear/liblinear.pyx
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/setup.py", line 253, in <module>
    setup(name = 'mlpy',
File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 185, in setup
    return run_commands(dist)
           ^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 201, in run_commands
    dist.run_commands()
File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 969, in run_commands
    self.run_command(cmd)
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 1233, in run_command
    super().run_command(command)
File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 988, in run_command
    cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/_distutils/command/build.py", line 131, in run
    self.run_command(cmd_name)
File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 318, in run_command
    self.distribution.run_command(command)
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 1233, in run_command
    super().run_command(command)
File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 988, in run_command
    cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
    self.build_extensions()
File "/usr/lib/python3/dist-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions
    self._build_extensions_serial()
File "/usr/lib/python3/dist-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial
    self.build_extension(ext)
File "/usr/lib/python3/dist-packages/Cython/Distutils/build_ext.py", line 130, in build_extension
    new_ext = cythonize(
              ^^^^^^^^^^
File "/usr/lib/python3/dist-packages/Cython/Build/Dependencies.py", line 1154, in cythonize
    cythonize_one(*args)
File "/usr/lib/python3/dist-packages/Cython/Build/Dependencies.py", line 1321, in cythonize_one
    raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: mlpy/liblinear/liblinear.pyx
E: pybuild pybuild:395: build: plugin distutils failed with: exit code=1: /usr/bin/python3.12 setup.py build
I: pybuild base:310: /usr/bin/python3 setup.py build
INFO: Disabling color, you really want to install colorlog.
In file included from /usr/include/python3.11/numpy/ndarraytypes.h:1940,
                 from /usr/include/python3.11/numpy/ndarrayobject.h:12,
                 from /usr/include/python3.11/numpy/arrayobject.h:5,
                 from mlpy/gsl/gsl.c:1223:
/usr/include/python3.11/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 " \
      |  ^~~~~~~
/usr/lib/python3/dist-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /<<PKGBUILDDIR>>/mlpy/liblinear/liblinear.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)

Error compiling Cython file:
------------------------------------------------------------
...
                class is not changed, it is set to 1). For example, to
                change penalty for classes 1 and 2 to 0.5 and 0.8
                respectively set weight={1:0.5, 2:0.8}
        """

        set_print_string_function(&print_null)
                                  ^
------------------------------------------------------------

mlpy/liblinear/liblinear.pyx:115:34: Cannot assign type 'void (*)(char *) except *' to 'void (*)(char *) noexcept'. Exception values are incompatible. Suggest adding 'noexcept' to type 'void (char *) except *'.
Compiling mlpy/liblinear/liblinear.pyx because it changed.
[1/1] Cythonizing mlpy/liblinear/liblinear.pyx
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/setup.py", line 253, in <module>
    setup(name = 'mlpy',
File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 185, in setup
    return run_commands(dist)
           ^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 201, in run_commands
    dist.run_commands()
File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 969, in run_commands
    self.run_command(cmd)
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 1233, in run_command
    super().run_command(command)
File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 988, in run_command
    cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/_distutils/command/build.py", line 131, in run
    self.run_command(cmd_name)
File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 318, in run_command
    self.distribution.run_command(command)
File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 1233, in run_command
    super().run_command(command)
File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 988, in run_command
    cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
    self.build_extensions()
File "/usr/lib/python3/dist-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions
    self._build_extensions_serial()
File "/usr/lib/python3/dist-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial
    self.build_extension(ext)
File "/usr/lib/python3/dist-packages/Cython/Distutils/build_ext.py", line 130, in build_extension
    new_ext = cythonize(
              ^^^^^^^^^^
File "/usr/lib/python3/dist-packages/Cython/Build/Dependencies.py", line 1154, in cythonize
    cythonize_one(*args)
File "/usr/lib/python3/dist-packages/Cython/Build/Dependencies.py", line 1321, in cythonize_one
    raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: mlpy/liblinear/liblinear.pyx
E: pybuild pybuild:395: build: plugin distutils failed with: exit code=1: /usr/bin/python3 setup.py build dh_auto_build: error: pybuild --build -i python{version} -p "3.12 3.11" returned exit code 13
make: *** [debian/rules:12: binary] Error 25

Reply via email to