Bug#1086578: sfepy FTBFS with Python >= 3.12: ModuleNotFoundError: No module named 'numpy.distutils'

Stefano Rivera stefanor at debian.org
Fri Nov 1 16:05:01 GMT 2024


Source: sfepy
Version: 2021.4-4
Severity: serious
Tags: ftbfs
Justification: FTBFS

Dear maintainer,

During a test rebuild, sfepy failed to rebuild.

numpy.distutils is deprecated and was removed when building with Python >= 3.12:
https://numpy.org/doc/2.1/reference/distutils.html#module-numpy.distutils

-------------------------------------------------------------------------------
Command: dpkg-buildpackage --sanitize-env -us -uc -mDebusine Rebuild <debusine at example.net> -B -rfakeroot
dpkg-buildpackage: info: source package sfepy
dpkg-buildpackage: info: source version 2021.4-4+bd1
dpkg-buildpackage: info: source distribution sid
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture arm64
 debian/rules clean
dh clean --with python3 --buildsystem=pybuild
   dh_autoreconf_clean -O--buildsystem=pybuild
   dh_clean -O--buildsystem=pybuild
 debian/rules binary-arch
dh binary-arch --with python3 --buildsystem=pybuild
   dh_update_autotools_config -a -O--buildsystem=pybuild
   dh_autoreconf -a -O--buildsystem=pybuild
   dh_auto_configure -a -O--buildsystem=pybuild
I: pybuild base:311: python3.12 setup.py config 
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/setup.py", line 16, in <module>
    from build_helpers import (generate_a_pyrex_source, package_check, log,
  File "/<<PKGBUILDDIR>>/build_helpers.py", line 26, in <module>
    from numpy.distutils.misc_util import appendpath
ModuleNotFoundError: No module named 'numpy.distutils'
E: pybuild pybuild:389: configure: plugin distutils failed with: exit code=1: python3.12 setup.py config 
dh_auto_configure: error: pybuild --configure -i python{version} -p 3.12 returned exit code 13
make: *** [debian/rules:8: binary-arch] Error 25
dpkg-buildpackage: error: debian/rules binary-arch subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2024-11-01T15:56:04Z

-------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here (for the next 30 days):
https://debusine.debian.net/artifact/929920/

About the archive rebuild: The build was made on debusine.debian.net,
on arm64 using sbuild.

You can find the build task here:
https://debusine.debian.net/work-request/42374/

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks,

Stefano



More information about the debian-science-maintainers mailing list