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

Ole Streicher olebole at debian.org
Thu Jul 4 08:37:31 BST 2024


Control: reassign -1 python3-pythran/0.16.1+ds-3

I *think* this is a bug in Pythran. The relevant extract from the
failure log is:

> [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'

which show that the invocation of the "pythran" executable fails while trying to import the build_ext module from either distutils or setuptools.

Could you investigate this?



More information about the debian-science-maintainers mailing list