Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #16581 > unrolled thread

dh_auto_configure: error: unable to load build system class 'python_distutils'

Started bySantiago Vila <sanvila@debian.org>
First post2024-12-18 00:50 +0100
Last post2024-12-18 09:30 +0100
Articles 7 — 4 participants

Back to article view | Back to linux.debian.maint.python


Contents

  dh_auto_configure: error: unable to load build system class  'python_distutils' Santiago Vila <sanvila@debian.org> - 2024-12-18 00:50 +0100
    Re: dh_auto_configure: error: unable to load build system class  'python_distutils' Stefano Rivera <stefanor@debian.org> - 2024-12-18 01:00 +0100
      Re: dh_auto_configure: error: unable to load build system class  'python_distutils' Santiago Vila <sanvila@debian.org> - 2024-12-18 01:10 +0100
        Re: dh_auto_configure: error: unable to load build system class  'python_distutils' Santiago Vila <sanvila@debian.org> - 2024-12-18 01:20 +0100
      Re: dh_auto_configure: error: unable to load build system class  'python_distutils' Santiago Vila <sanvila@debian.org> - 2024-12-18 02:40 +0100
        Re: dh_auto_configure: error: unable to load build system class  'python_distutils' Louis-Philippe Véronneau <pollo@debian.org> - 2024-12-18 18:50 +0100
      Re: dh_auto_configure: error: unable to load build system class  'python_distutils' Andrey Rakhmatullin <wrar@debian.org> - 2024-12-18 09:30 +0100

#16581 — dh_auto_configure: error: unable to load build system class 'python_distutils'

FromSantiago Vila <sanvila@debian.org>
Date2024-12-18 00:50 +0100
Subjectdh_auto_configure: error: unable to load build system class 'python_distutils'
Message-ID<JUPu9-k64-1@gated-at.bofh.it>
Hi.

Am I the first person who gets this weird errors?

  dh_auto_configure: error: unable to load build system class 'python_distutils': Can't locate Debian/Debhelper/Buildsystem/python_distutils.pm in @INC (you may need to install the Debian::Debhelper::Buildsystem::python_distutils module) (@INC entries checked: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.40.0 /usr/local/share/perl/5.40.0 /usr/lib/x86_64-linux-gnu/perl5/5.40 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.40 /usr/share/perl/5.40 /usr/local/lib/site_perl) at (eval 2) line 1.
BEGIN failed--compilation aborted at (eval 2) line 1.

It happens at least when building any of the following packages:

cloudkitty-dashboard
designate-dashboard
freezer-web-ui
heat-dashboard
ironic-ui
magnum-ui
manila-ui
masakari-dashboard
mistral-dashboard
networking-bgpvpn
neutron-vpnaas-dashboard
octavia-dashboard
sahara-dashboard
senlin-dashboard
trove-dashboard
vitrage-dashboard
watcher-dashboard
zaqar-ui

but I guess it could be a more general problem.

Normally this kind of thing is announced in advance
and bugs are filed in advance, but I don't see anything
in this case.

Also: It must be something recent because I did an archive
rebuild of sid three days ago and this still did not happen.

Could it be related to #1090343 ?

Thanks.

[toc] | [next] | [standalone]


#16582

FromStefano Rivera <stefanor@debian.org>
Date2024-12-18 01:00 +0100
Message-ID<JUPDQ-k9j-3@gated-at.bofh.it>
In reply to#16581
Hi Santiago (2024.12.17_23:46:03_+0000)

If you were still relying on python_distutils, you were doing something
horribly wrong. It has never supported Python 3.

You want to use pybuild instead.

> Normally this kind of thing is announced in advance
> and bugs are filed in advance, but I don't see anything
> in this case.

It was obviously assumed that nobody still depended on this.

> Also: It must be something recent because I did an archive
> rebuild of sid three days ago and this still did not happen.
> 
> Could it be related to #1090343 ?

The relevant bug is https://bugs.debian.org/1089715

Stefano

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  +1 415 683 3272

[toc] | [prev] | [next] | [standalone]


#16583

FromSantiago Vila <sanvila@debian.org>
Date2024-12-18 01:10 +0100
Message-ID<JUPNv-krW-9@gated-at.bofh.it>
In reply to#16582
Thanks a lot for your quick reply.

> If you were still relying on python_distutils, you were doing something
horribly wrong.

Not really me. Asking for a friend :-)

El 18/12/24 a las 0:55, Stefano Rivera escribió:
> It was obviously assumed that nobody still depended on this.

Ok, I guess we should report those asap.

Can you give me a list of packages potentially broken
by this, so that I can rebuild them and report them
if they now fail?

Thanks.

[toc] | [prev] | [next] | [standalone]


#16584

FromSantiago Vila <sanvila@debian.org>
Date2024-12-18 01:20 +0100
Message-ID<JUPXb-kuX-1@gated-at.bofh.it>
In reply to#16583
> Can you give me a list of packages potentially broken
> by this

Would

grep buildsystem=python_distutils

on the (previous) build logs be a good start?

Thanks.

[toc] | [prev] | [next] | [standalone]


#16585

FromSantiago Vila <sanvila@debian.org>
Date2024-12-18 02:40 +0100
Message-ID<JURcG-lu1-153@gated-at.bofh.it>
In reply to#16582
Hi. I found 316 affected packages, which I reported here:

https://bugs.debian.org/cgi-bin/pkgreport.cgi?users=debian-qa@lists.debian.org;tag=python-distutils

I'm using a tag so that the bug numbers are easy to get, just in case you people
want to reconsider if adding 316 RC bugs in a day (not reported before with
severity:important) is really a good idea.

Thanks.

[toc] | [prev] | [next] | [standalone]


#16588

FromLouis-Philippe Véronneau <pollo@debian.org>
Date2024-12-18 18:50 +0100
Message-ID<JV6lj-yjy-5@gated-at.bofh.it>
In reply to#16585
On 2024-12-17 8 h 35 p.m., Santiago Vila wrote:
> Hi. I found 316 affected packages, which I reported here:
> 
> https://bugs.debian.org/cgi-bin/pkgreport.cgi?users=debian- 
> qa@lists.debian.org;tag=python-distutils
> 
> I'm using a tag so that the bug numbers are easy to get, just in case 
> you people
> want to reconsider if adding 316 RC bugs in a day (not reported before with
> severity:important) is really a good idea.
> 
> Thanks.

FWIW, this lintian tag also flags the use of the distutils library 
(amongst other deprecated stdlibs):

https://udd.debian.org/lintian-tag/uses-deprecated-python-stdlib?affected=yes

-- 
   ⢀⣴⠾⠻⢶⣦⠀
   ⣾⠁⢠⠒⠀⣿⡁  Louis-Philippe Véronneau
   ⢿⡄⠘⠷⠚⠋   pollo@debian.org / veronneau.org
   ⠈⠳⣄

[toc] | [prev] | [next] | [standalone]


#16586

FromAndrey Rakhmatullin <wrar@debian.org>
Date2024-12-18 09:30 +0100
Message-ID<JUXBn-rDo-1@gated-at.bofh.it>
In reply to#16582

[Multipart message — attachments visible in raw view] — view raw

On Tue, Dec 17, 2024 at 11:55:48PM +0000, Stefano Rivera wrote:
> Hi Santiago (2024.12.17_23:46:03_+0000)
> 
> If you were still relying on python_distutils, you were doing something
> horribly wrong. It has never supported Python 3.
> 
> You want to use pybuild instead.
> 
> > Normally this kind of thing is announced in advance
> > and bugs are filed in advance, but I don't see anything
> > in this case.
> 
> It was obviously assumed that nobody still depended on this.
> 
> > Also: It must be something recent because I did an archive
> > rebuild of sid three days ago and this still did not happen.
> > 
> > Could it be related to #1090343 ?
> 
> The relevant bug is https://bugs.debian.org/1089715

Apparently the answer to "it's been totally non-functional since Python 2
was removed from unstable/testing in 2022: it starts by trying to run
pyversions, which no longer exists" is "everything that uses it is skipped
via overrides":

https://tracker.debian.org/media/packages/p/python-extras/rules-1.0.0-5
https://tracker.debian.org/media/packages/p/python-designateclient/rules-6.1.0-2
https://tracker.debian.org/media/packages/o/ovn-bgp-agent/rules-3.0.0-1

etc.

-- 
WBR, wRAR

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.maint.python


csiph-web