[Debian-pan-maintainers] Bug#1022440: Bug#1022440: python-fabio: FTBFS: distutils.errors.DistutilsClassError: command class <class '__main__.CleanCommand'> must subclass Command

Jerome Kieffer Jerome.Kieffer at esrf.fr
Mon Oct 24 10:29:18 BST 2022


Dear Lucas,

I suspect the issue is once again the "numpy.distutils" which enforces "setuptools<60"...
I have started to port FabIO to the meson-python builder, in a similar
way to what is done for scipy-1.9 (still not packaged for debian).
It is now close to production ready and can release a version as soon
the packaging tools are available in debian.

Best regards,

Jérôme Kieffer

On Sun, 23 Oct 2022 15:37:18 +0200
Lucas Nussbaum <lucas at debian.org> wrote:

> Source: python-fabio
> Version: 0.14.0+dfsg-1
> Severity: serious
> Justification: FTBFS
> Tags: bookworm sid ftbfs
> User: lucas at debian.org
> Usertags: ftbfs-20221023 ftbfs-bookworm
> 
> Hi,
> 
> During a rebuild of all packages in sid, your package failed to build
> on amd64.
> 
> 
> Relevant part (hopefully):
> >  fakeroot debian/rules clean
> > dh clean --buildsystem=pybuild
> >    dh_auto_clean -O--buildsystem=pybuild
> > I: pybuild base:240: python3.10 setup.py clean 
> > /<<PKGBUILDDIR>>/setup.py:49: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
> >   from distutils.command.clean import clean as Clean
> > /usr/lib/python3/dist-packages/_distutils_hack/__init__.py:18: UserWarning: Distutils was imported before Setuptools, but importing Setuptools also replaces the `distutils` module in `sys.modules`. This may lead to undesirable behaviors or errors. To avoid these issues, avoid using distutils directly, ensure that setuptools is installed in the traditional way (e.g. not an editable install), and/or make sure that setuptools is always imported before distutils.
> >   warnings.warn(
> > /usr/lib/python3/dist-packages/_distutils_hack/__init__.py:33: UserWarning: Setuptools is replacing distutils.
> >   warnings.warn("Setuptools is replacing distutils.")
> > INFO: Disabling color, you really want to install colorlog.
> > INFO:pythran:Disabling color, you really want to install colorlog.
> > INFO:fabio.setup:Use setuptools with cython
> > INFO:fabio.setup:Use setuptools.setup
> > Traceback (most recent call last):
> >   File "/<<PKGBUILDDIR>>/setup.py", line 1118, in <module>
> >     setup_package()
> >   File "/<<PKGBUILDDIR>>/setup.py", line 1114, in setup_package
> >     setup(**setup_kwargs)
> >   File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 87, in setup
> >     return distutils.core.setup(**attrs)
> >   File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 172, in setup
> >     ok = dist.parse_command_line()
> >   File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 474, in parse_command_line
> >     args = self._parse_command_opts(parser, args)
> >   File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 1107, in _parse_command_opts
> >     nargs = _Distribution._parse_command_opts(self, parser, args)
> >   File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 540, in _parse_command_opts
> >     raise DistutilsClassError(
> > distutils.errors.DistutilsClassError: command class <class '__main__.CleanCommand'> must subclass Command
> > E: pybuild pybuild:379: clean: plugin distutils failed with: exit code=1: python3.10 setup.py clean 
> > dh_auto_clean: error: pybuild --clean -i python{version} -p 3.10 returned exit code 13
> > make: *** [debian/rules:7: clean] Error 25  
> 
> 
> The full build log is available from:
> http://qa-logs.debian.net/2022/10/23/python-fabio_0.14.0+dfsg-1_unstable.log
> 
> All bugs filed during this archive rebuild are listed at:
> https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20221023;users=lucas@debian.org
> or:
> https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20221023&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 marking 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.
> 
> -- 
> Debian-pan-maintainers mailing list
> Debian-pan-maintainers at alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-pan-maintainers


-- 
Jérôme Kieffer
tel +33 476 882 445



More information about the Debian-pan-maintainers mailing list