ithub.com/cython/cython/issues/4310 warning: djvu/sexpr.pyx:810:4: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310 warning: djvu/sexpr.pyx:1086:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310 warning: djvu/common.pxi:139:4: Exception already a builtin Cython type Error compiling Cython file: ------------------------------------------------------------ ... self.buffer = [] self.exc = None IF HAVE_MINIEXP_IO_T: cexpr_io_init(&self.cio) self.cio.data[0] = self self.cio.getc = _myio_getc ^ ------------------------------------------------------------ djvu/sexpr.pyx:155:28: Cannot assign type 'int (cexpr_io_t *) except? -1' to 'int (*)(cexpr_io_t *) noexcept'. Exception values are incompatible. Suggest adding 'noexcept' to type 'int (cexpr_io_t *) except? -1'. Error compiling Cython file: ------------------------------------------------------------ ... self.exc = None IF HAVE_MINIEXP_IO_T: cexpr_io_init(&self.cio) self.cio.data[0] = self self.cio.getc = _myio_getc self.cio.ungetc = _myio_ungetc ^ ------------------------------------------------------------ djvu/sexpr.pyx:156:30: Cannot assign type 'int (cexpr_io_t *, int) except? -1' to 'int (*)(cexpr_io_t *, int) noexcept'. Exception values are incompatible. Suggest adding 'noexcept' to type 'int (cexpr_io_t *, int) except? -1'. Error compiling Cython file: ------------------------------------------------------------ ... IF HAVE_MINIEXP_IO_T: cexpr_io_init(&self.cio) self.cio.data[0] = self self.cio.getc = _myio_getc self.cio.ungetc = _myio_ungetc self.cio.puts = _myio_puts ^ ------------------------------------------------------------ djvu/sexpr.pyx:157:28: Cannot assign type 'int (cexpr_io_t *, const char *) except? -1' to 'int (*)(cexpr_io_t *, char *) noexcept'. Exception values are incompatible. Suggest adding 'noexcept' to type 'int (cexpr_io_t *, const char *) except? -1'. error: command '/usr/bin/python3' failed with exit code 1 error: subprocess-exited-with-error × Building wheel for python-djvulibre (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. full command: /usr/bin/python3 /usr/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py build_wheel /builddir/build/BUILD/python-djvulibre-0.8.7/.pyproject-builddir/tmpa4pi9qrh cwd: /builddir/build/BUILD/python-djvulibre-0.8.7 Building wheel for python-djvulibre (pyproject.toml): finished with status 'error' ERROR: Failed building wheel for python-djvulibre Failed to build python-djvulibre ERROR: Failed to build one or more wheels error: Bad exit status from /var/tmp/rpm-tmp.pfJjdY (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.pfJjdY (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -ba --noprep --target riscv64 --nodeps /builddir/build/SPECS/python-djvulibre.spec