Bug#1074654: skimage: FTBFS: ModuleNotFoundError: No module named 'distutils'

Lucas Nussbaum lucas at debian.org
Tue Jul 2 13:35:44 BST 2024


Source: skimage
Version: 0.23.2-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20240702 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> py3versions: no X-Python3-Version in control file, using supported versions
> dh_auto_build
> I: pybuild plugin_pyproject:129: Building wheel for python3.11 with "build" module
> I: pybuild base:311: python3.11 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11 --config-setting compile-args=--verbose --config-setting setup-args=--wrap-mode=nodownload --config-setting setup-args=--prefix=/usr --config-setting setup-args=--sysconfdir=/etc --config-setting setup-args=--localstatedir=/var --config-setting setup-args=--libdir=lib/x86_64-linux-gnu 
> * Building wheel...
> + meson setup /<<PKGBUILDDIR>> /<<PKGBUILDDIR>>/.mesonpy-w6ork4xq -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --wrap-mode=nodownload --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=lib/x86_64-linux-gnu --native-file=/<<PKGBUILDDIR>>/.mesonpy-w6ork4xq/meson-python-native-file.ini
> The Meson build system
> Version: 1.4.1
> Source dir: /<<PKGBUILDDIR>>
> Build dir: /<<PKGBUILDDIR>>/.mesonpy-w6ork4xq
> Build type: native build
> Project name: scikit-image
> Project version: 0.23.2
> C compiler for the host machine: cc (gcc 13.3.0 "cc (Debian 13.3.0-1) 13.3.0")
> C linker for the host machine: cc ld.bfd 2.42.50.20240625
> C++ compiler for the host machine: c++ (gcc 13.3.0 "c++ (Debian 13.3.0-1) 13.3.0")
> C++ linker for the host machine: c++ ld.bfd 2.42.50.20240625
> Host machine cpu family: x86_64
> Host machine cpu: x86_64
> Compiler for C supports arguments -Wno-unused-function: YES 
> Library m found: YES
> Checking if "-Wl,--version-script" : links: YES 
> Program cython3 found: YES (/usr/bin/cython3)
> Program pythran found: YES (/usr/bin/pythran)
> Program cp found: YES (/usr/bin/cp)
> Program python found: YES (/usr/bin/python3.11)
> Did not find pkg-config by name 'pkg-config'
> Found pkg-config: NO
> Run-time dependency python found: YES 3.11
> Program _build_utils/cythoner.py found: YES (/<<PKGBUILDDIR>>/skimage/_build_utils/cythoner.py)
> Compiler for C++ supports arguments -Wno-cpp: YES 
> Build targets in project: 58
> 
> scikit-image 0.23.2
> 
>   User defined options
>     Native files : /<<PKGBUILDDIR>>/.mesonpy-w6ork4xq/meson-python-native-file.ini
>     buildtype    : release
>     libdir       : lib/x86_64-linux-gnu
>     localstatedir: /var
>     prefix       : /usr
>     sysconfdir   : /etc
>     wrap_mode    : nodownload
>     b_ndebug     : if-release
>     b_vscrt      : md
> 
> Found ninja-1.12.1 at /usr/bin/ninja
> + /usr/bin/ninja --verbose
> [1/168] /usr/bin/python3.11 ../skimage/_build_utils/tempita.py ../skimage/morphology/_skeletonize_3d_cy.pyx.in -o skimage/morphology
> [2/168] /<<PKGBUILDDIR>>/skimage/_build_utils/cythoner.py ../skimage/_shared/fast_exp.pyx skimage/_shared/fast_exp.cpython-311-x86_64-linux-gnu.so.p/fast_exp.c
> [3/168] /<<PKGBUILDDIR>>/skimage/_build_utils/cythoner.py ../skimage/_shared/transform.pyx skimage/_shared/transform.cpython-311-x86_64-linux-gnu.so.p/transform.c
> [4/168] /<<PKGBUILDDIR>>/skimage/_build_utils/cythoner.py ../skimage/feature/_canny_cy.pyx skimage/feature/_canny_cy.cpython-311-x86_64-linux-gnu.so.p/_canny_cy.c
> [5/168] /<<PKGBUILDDIR>>/skimage/_build_utils/cythoner.py ../skimage/_shared/geometry.pyx skimage/_shared/geometry.cpython-311-x86_64-linux-gnu.so.p/geometry.c
> [6/168] /<<PKGBUILDDIR>>/skimage/_build_utils/cythoner.py ../skimage/feature/censure_cy.pyx skimage/feature/censure_cy.cpython-311-x86_64-linux-gnu.so.p/censure_cy.c
> [7/168] /<<PKGBUILDDIR>>/skimage/_build_utils/cythoner.py ../skimage/draw/_draw.pyx skimage/draw/_draw.cpython-311-x86_64-linux-gnu.so.p/_draw.c
> [8/168] /<<PKGBUILDDIR>>/skimage/_build_utils/cythoner.py ../skimage/feature/corner_cy.pyx skimage/feature/corner_cy.cpython-311-x86_64-linux-gnu.so.p/corner_cy.c
> [9/168] /usr/bin/pythran -E ../skimage/feature/brief_pythran.py -o skimage/feature/brief_cy.cpp
> FAILED: skimage/feature/brief_cy.cpp 
> /usr/bin/pythran -E ../skimage/feature/brief_pythran.py -o skimage/feature/brief_cy.cpp
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/pythran/dist.py", line 20, in <module>
>     from distutils.command.build_ext import build_ext as LegacyBuildExt
> ModuleNotFoundError: No module named 'distutils'
> 
> During handling of the above exception, another exception occurred:
> 
> Traceback (most recent call last):
>   File "/usr/bin/pythran", line 8, in <module>
>     sys.exit(run())
>              ^^^^^
>   File "/usr/lib/python3/dist-packages/pythran/run.py", line 190, in run
>     pythran.compile_pythranfile(args.input_file,
>     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/pythran/__init__.py", line 127, in __getattr__
>     import pythran.toolchain
>   File "/usr/lib/python3/dist-packages/pythran/toolchain.py", line 11, in <module>
>     from pythran.dist import PythranExtension, PythranBuildExt
>   File "/usr/lib/python3/dist-packages/pythran/dist.py", line 22, in <module>
>     from setuptools.command.build_ext import build_ext as LegacyBuildExt
>   File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 9, in <module>
>     import distutils.core
> ModuleNotFoundError: No module named 'distutils'
> [10/168] /<<PKGBUILDDIR>>/skimage/_build_utils/cythoner.py ../skimage/feature/_hoghistogram.pyx skimage/feature/_hoghistogram.cpython-311-x86_64-linux-gnu.so.p/_hoghistogram.c
> [11/168] /usr/bin/pythran -E ../skimage/feature/_hessian_det_appx_pythran.py -o skimage/feature/_hessian_det_appx.cpp
> FAILED: skimage/feature/_hessian_det_appx.cpp 
> /usr/bin/pythran -E ../skimage/feature/_hessian_det_appx_pythran.py -o skimage/feature/_hessian_det_appx.cpp
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/pythran/dist.py", line 20, in <module>
>     from distutils.command.build_ext import build_ext as LegacyBuildExt
> ModuleNotFoundError: No module named 'distutils'
> 
> During handling of the above exception, another exception occurred:
> 
> Traceback (most recent call last):
>   File "/usr/bin/pythran", line 8, in <module>
>     sys.exit(run())
>              ^^^^^
>   File "/usr/lib/python3/dist-packages/pythran/run.py", line 190, in run
>     pythran.compile_pythranfile(args.input_file,
>     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/pythran/__init__.py", line 127, in __getattr__
>     import pythran.toolchain
>   File "/usr/lib/python3/dist-packages/pythran/toolchain.py", line 11, in <module>
>     from pythran.dist import PythranExtension, PythranBuildExt
>   File "/usr/lib/python3/dist-packages/pythran/dist.py", line 22, in <module>
>     from setuptools.command.build_ext import build_ext as LegacyBuildExt
>   File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 9, in <module>
>     import distutils.core
> ModuleNotFoundError: No module named 'distutils'
> [12/168] /<<PKGBUILDDIR>>/skimage/_build_utils/cythoner.py ../skimage/feature/_sift.pyx skimage/feature/_sift.cpython-311-x86_64-linux-gnu.so.p/_sift.c
> [13/168] /<<PKGBUILDDIR>>/skimage/_build_utils/cythoner.py ../skimage/filters/_multiotsu.pyx skimage/filters/_multiotsu.cpython-311-x86_64-linux-gnu.so.p/_multiotsu.c
> [14/168] /<<PKGBUILDDIR>>/skimage/_build_utils/cythoner.py ../skimage/feature/_haar.pyx skimage/feature/_haar.cpython-311-x86_64-linux-gnu.so.p/_haar.cpp --cplus
> [15/168] /<<PKGBUILDDIR>>/skimage/_build_utils/cythoner.py ../skimage/feature/orb_cy.pyx skimage/feature/orb_cy.cpython-311-x86_64-linux-gnu.so.p/orb_cy.c
> [16/168] /<<PKGBUILDDIR>>/skimage/_build_utils/cythoner.py ../skimage/_shared/interpolation.pyx skimage/_shared/interpolation.cpython-311-x86_64-linux-gnu.so.p/interpolation.c
> [17/168] /<<PKGBUILDDIR>>/skimage/_build_utils/cythoner.py ../skimage/feature/_cascade.pyx skimage/feature/_cascade.cpython-311-x86_64-linux-gnu.so.p/_cascade.cpp --cplus
> [18/168] /<<PKGBUILDDIR>>/skimage/_build_utils/cythoner.py ../skimage/feature/_texture.pyx skimage/feature/_texture.cpython-311-x86_64-linux-gnu.so.p/_texture.c
> ninja: build stopped: subcommand failed.
> 
> ERROR Backend subprocess exited when trying to invoke build_wheel
> E: pybuild pybuild:389: build: plugin pyproject failed with: exit code=1: python3.11 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11 --config-setting compile-args=--verbose --config-setting setup-args=--wrap-mode=nodownload --config-setting setup-args=--prefix=/usr --config-setting setup-args=--sysconfdir=/etc --config-setting setup-args=--localstatedir=/var --config-setting setup-args=--libdir=lib/x86_64-linux-gnu 
> I: pybuild plugin_pyproject:129: Building wheel for python3.12 with "build" module
> I: pybuild base:311: python3.12 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12 --config-setting compile-args=--verbose --config-setting setup-args=--wrap-mode=nodownload --config-setting setup-args=--prefix=/usr --config-setting setup-args=--sysconfdir=/etc --config-setting setup-args=--localstatedir=/var --config-setting setup-args=--libdir=lib/x86_64-linux-gnu 
> * Building wheel...
> + meson setup /<<PKGBUILDDIR>> /<<PKGBUILDDIR>>/.mesonpy-dhahzeox -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --wrap-mode=nodownload --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=lib/x86_64-linux-gnu --native-file=/<<PKGBUILDDIR>>/.mesonpy-dhahzeox/meson-python-native-file.ini
> The Meson build system
> Version: 1.4.1
> Source dir: /<<PKGBUILDDIR>>
> Build dir: /<<PKGBUILDDIR>>/.mesonpy-dhahzeox
> Build type: native build
> Project name: scikit-image
> Project version: 0.23.2
> C compiler for the host machine: cc (gcc 13.3.0 "cc (Debian 13.3.0-1) 13.3.0")
> C linker for the host machine: cc ld.bfd 2.42.50.20240625
> C++ compiler for the host machine: c++ (gcc 13.3.0 "c++ (Debian 13.3.0-1) 13.3.0")
> C++ linker for the host machine: c++ ld.bfd 2.42.50.20240625
> Host machine cpu family: x86_64
> Host machine cpu: x86_64
> Compiler for C supports arguments -Wno-unused-function: YES 
> Library m found: YES
> Checking if "-Wl,--version-script" : links: YES 
> Program cython3 found: YES (/usr/bin/cython3)
> Program pythran found: YES (/usr/bin/pythran)
> Program cp found: YES (/usr/bin/cp)
> Program python found: YES (/usr/bin/python3.12)
> Did not find pkg-config by name 'pkg-config'
> Found pkg-config: NO
> Run-time dependency python found: YES 3.12
> Program _build_utils/cythoner.py found: YES (/<<PKGBUILDDIR>>/skimage/_build_utils/cythoner.py)
> Compiler for C++ supports arguments -Wno-cpp: YES 
> Build targets in project: 58
> 
> scikit-image 0.23.2
> 
>   User defined options
>     Native files : /<<PKGBUILDDIR>>/.mesonpy-dhahzeox/meson-python-native-file.ini
>     buildtype    : release
>     libdir       : lib/x86_64-linux-gnu
>     localstatedir: /var
>     prefix       : /usr
>     sysconfdir   : /etc
>     wrap_mode    : nodownload
>     b_ndebug     : if-release
>     b_vscrt      : md
> 
> Found ninja-1.12.1 at /usr/bin/ninja
> + /usr/bin/ninja --verbose
> [1/168] /usr/bin/python3.12 ../skimage/_build_utils/tempita.py ../skimage/morphology/_skeletonize_3d_cy.pyx.in -o skimage/morphology
> [2/168] /<<PKGBUILDDIR>>/skimage/_build_utils/cythoner.py ../skimage/_shared/fast_exp.pyx skimage/_shared/fast_exp.cpython-312-x86_64-linux-gnu.so.p/fast_exp.c
> [3/168] /<<PKGBUILDDIR>>/skimage/_build_utils/cythoner.py ../skimage/feature/censure_cy.pyx skimage/feature/censure_cy.cpython-312-x86_64-linux-gnu.so.p/censure_cy.c
> [4/168] /<<PKGBUILDDIR>>/skimage/_build_utils/cythoner.py ../skimage/feature/corner_cy.pyx skimage/feature/corner_cy.cpython-312-x86_64-linux-gnu.so.p/corner_cy.c
> [5/168] /<<PKGBUILDDIR>>/skimage/_build_utils/cythoner.py ../skimage/_shared/transform.pyx skimage/_shared/transform.cpython-312-x86_64-linux-gnu.so.p/transform.c
> [6/168] /<<PKGBUILDDIR>>/skimage/_build_utils/cythoner.py ../skimage/feature/_canny_cy.pyx skimage/feature/_canny_cy.cpython-312-x86_64-linux-gnu.so.p/_canny_cy.c
> [7/168] /<<PKGBUILDDIR>>/skimage/_build_utils/cythoner.py ../skimage/_shared/geometry.pyx skimage/_shared/geometry.cpython-312-x86_64-linux-gnu.so.p/geometry.c
> [8/168] /<<PKGBUILDDIR>>/skimage/_build_utils/cythoner.py ../skimage/draw/_draw.pyx skimage/draw/_draw.cpython-312-x86_64-linux-gnu.so.p/_draw.c
> [9/168] /usr/bin/pythran -E ../skimage/feature/brief_pythran.py -o skimage/feature/brief_cy.cpp
> FAILED: skimage/feature/brief_cy.cpp 
> /usr/bin/pythran -E ../skimage/feature/brief_pythran.py -o skimage/feature/brief_cy.cpp
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/pythran/dist.py", line 20, in <module>
>     from distutils.command.build_ext import build_ext as LegacyBuildExt
> ModuleNotFoundError: No module named 'distutils'
> 
> During handling of the above exception, another exception occurred:
> 
> Traceback (most recent call last):
>   File "/usr/bin/pythran", line 8, in <module>
>     sys.exit(run())
>              ^^^^^
>   File "/usr/lib/python3/dist-packages/pythran/run.py", line 190, in run
>     pythran.compile_pythranfile(args.input_file,
>     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/pythran/__init__.py", line 127, in __getattr__
>     import pythran.toolchain
>   File "/usr/lib/python3/dist-packages/pythran/toolchain.py", line 11, in <module>
>     from pythran.dist import PythranExtension, PythranBuildExt
>   File "/usr/lib/python3/dist-packages/pythran/dist.py", line 22, in <module>
>     from setuptools.command.build_ext import build_ext as LegacyBuildExt
>   File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 9, in <module>
>     import distutils.core
> ModuleNotFoundError: No module named 'distutils'
> [10/168] /usr/bin/pythran -E ../skimage/feature/_hessian_det_appx_pythran.py -o skimage/feature/_hessian_det_appx.cpp
> FAILED: skimage/feature/_hessian_det_appx.cpp 
> /usr/bin/pythran -E ../skimage/feature/_hessian_det_appx_pythran.py -o skimage/feature/_hessian_det_appx.cpp
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/pythran/dist.py", line 20, in <module>
>     from distutils.command.build_ext import build_ext as LegacyBuildExt
> ModuleNotFoundError: No module named 'distutils'
> 
> During handling of the above exception, another exception occurred:
> 
> Traceback (most recent call last):
>   File "/usr/bin/pythran", line 8, in <module>
>     sys.exit(run())
>              ^^^^^
>   File "/usr/lib/python3/dist-packages/pythran/run.py", line 190, in run
>     pythran.compile_pythranfile(args.input_file,
>     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/pythran/__init__.py", line 127, in __getattr__
>     import pythran.toolchain
>   File "/usr/lib/python3/dist-packages/pythran/toolchain.py", line 11, in <module>
>     from pythran.dist import PythranExtension, PythranBuildExt
>   File "/usr/lib/python3/dist-packages/pythran/dist.py", line 22, in <module>
>     from setuptools.command.build_ext import build_ext as LegacyBuildExt
>   File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 9, in <module>
>     import distutils.core
> ModuleNotFoundError: No module named 'distutils'
> [11/168] /<<PKGBUILDDIR>>/skimage/_build_utils/cythoner.py ../skimage/feature/_hoghistogram.pyx skimage/feature/_hoghistogram.cpython-312-x86_64-linux-gnu.so.p/_hoghistogram.c
> [12/168] /<<PKGBUILDDIR>>/skimage/_build_utils/cythoner.py ../skimage/feature/_sift.pyx skimage/feature/_sift.cpython-312-x86_64-linux-gnu.so.p/_sift.c
> [13/168] /<<PKGBUILDDIR>>/skimage/_build_utils/cythoner.py ../skimage/filters/_multiotsu.pyx skimage/filters/_multiotsu.cpython-312-x86_64-linux-gnu.so.p/_multiotsu.c
> [14/168] /<<PKGBUILDDIR>>/skimage/_build_utils/cythoner.py ../skimage/feature/_haar.pyx skimage/feature/_haar.cpython-312-x86_64-linux-gnu.so.p/_haar.cpp --cplus
> [15/168] /<<PKGBUILDDIR>>/skimage/_build_utils/cythoner.py ../skimage/_shared/interpolation.pyx skimage/_shared/interpolation.cpython-312-x86_64-linux-gnu.so.p/interpolation.c
> [16/168] /<<PKGBUILDDIR>>/skimage/_build_utils/cythoner.py ../skimage/feature/_texture.pyx skimage/feature/_texture.cpython-312-x86_64-linux-gnu.so.p/_texture.c
> [17/168] /<<PKGBUILDDIR>>/skimage/_build_utils/cythoner.py ../skimage/feature/orb_cy.pyx skimage/feature/orb_cy.cpython-312-x86_64-linux-gnu.so.p/orb_cy.c
> [18/168] /<<PKGBUILDDIR>>/skimage/_build_utils/cythoner.py ../skimage/feature/_cascade.pyx skimage/feature/_cascade.cpython-312-x86_64-linux-gnu.so.p/_cascade.cpp --cplus
> ninja: build stopped: subcommand failed.
> 
> ERROR Backend subprocess exited when trying to invoke build_wheel
> E: pybuild pybuild:389: build: plugin pyproject failed with: exit code=1: python3.12 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12 --config-setting compile-args=--verbose --config-setting setup-args=--wrap-mode=nodownload --config-setting setup-args=--prefix=/usr --config-setting setup-args=--sysconfdir=/etc --config-setting setup-args=--localstatedir=/var --config-setting setup-args=--libdir=lib/x86_64-linux-gnu 
> dh_auto_build: error: pybuild --build -i python{version} -p "3.11 3.12" returned exit code 13
> make[1]: *** [debian/rules:70: override_dh_auto_build] Error 25


The full build log is available from:
http://qa-logs.debian.net/2024/07/02/skimage_0.23.2-1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240702;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240702&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the debian-science-maintainers mailing list