🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.rc
2 messages
2 total messages Started by Stuart Prescott Mon, 23 Nov 2026 02:20
Bug#1154935: python-django-debug-toolbar: Failing autopkgtests with Python 3.15: AttributeError: module 'cProfile' has no attrib...
#3926
Author: Stuart Prescott
Date: Mon, 23 Nov 2026 02:20
42 lines
3184 bytes
Source: python-django-debug-toolbar
Version: 1:8.0.0-1
Severity: serious
X-Debbugs-Cc: stuart@debian.org

Dear Maintainer,

Python 3.15 changed the cProfile module (now profile.tracing); as part
of that change, the undocumented cProfile.label function disappeared.

https://docs.python.org/3/whatsnew/3.15.html#pep-799-a-dedicated-profiling-package

debug_toolbar/panels/profiling.py makes use of cProfile.label, which
means that the autopkgtests for python-django-debug-toolbar are
currently failing.

//---

 55s ERROR: test_generate_stats_no_root_func (tests.panels.test_profiling.ProfilingPanelTestCase.test_generate_stats_no_root_func)
 55s Test generating stats using profiler without root function.
 55s ----------------------------------------------------------------------
 55s Traceback (most recent call last):
 55s   File "/var/tmp/autopkgtest_tmp.swvKoO/tests/panels/test_profiling.py", line 88, in test_generate_stats_no_root_func
 55s     self.panel.generate_stats(self.request, response)
 55s     ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
 55s   File "/usr/lib/python3/dist-packages/debug_toolbar/panels/profiling.py", line 187, in generate_stats
 55s     root_func = cProfile.label(super().process_request.__code__)
 55s                 ^^^^^^^^^^^^^^
 55s AttributeError: module 'cProfile' has no attribute 'label'

[...]

 55s FAILED (errors=6, skipped=32, expected failures=1)

---//

This is fixed upstream in PR 2483

https://github.com/django-commons/django-debug-toolbar/pull/2483

regards
Stuart
Bug#1154935: marked as done (python-django-debug-toolbar: Failing autopkgtests with Python 3.15: AttributeError: module 'cProfi...
#4560
Author: Debian Bug Tracking System
Date: Mon, 30 Nov 2026 04:30
286 lines
13839 bytes
This is a multi-part message in MIME format...

------------=_1796012462-3944058-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

Your message dated Mon, 30 Nov 2026 04:19:53 +0000
with message-id <179601239343.1712166.3975288490626301218@fasolo.debian.org>
and subject line Bug#1154935: fixed in python-django-debug-toolbar 1:8.0.0-2
has caused the Debian Bug report #1154935,
regarding python-django-debug-toolbar: Failing autopkgtests with Python 3.1=
5: AttributeError: module 'cProfile' has no attribute 'label'
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


--=20
1154935: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D1154935
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

------------=_1796012462-3944058-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by bugs.debian.org; 23 Nov 2026 02:14:03 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
	(2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-10.0 required=4.0 tests=BAYES_00,FROMDEVELOPER,
	FVGT_m_MULTI_ODD,NO_RELAYS,XMAILER_REPORTBUG autolearn=ham
	autolearn_force=no version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 36; hammy, 148; neutral, 33; spammy,
	2. spammytokens:0.939-+--H*r:bugs.debian.org, 0.895-+--super
	hammytokens:0.000-+--XDebbugsCc, 0.000-+--X-Debbugs-Cc,
	0.000-+--python3, 0.000-+--H*Ad:N*Bug, 0.000-+--HTo:N*Debian
Return-path: <stuart@debian.org>
Received: via submission
	by buxtehude.debian.org with esmtp (Exim 4.96)
	(envelope-from <stuart@debian.org>)
	id 1xVJZD-003cpU-0W
	for submit@bugs.debian.org;
	Mon, 23 Nov 2026 02:14:03 +0000
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Stuart Prescott <stuart@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: python-django-debug-toolbar: Failing autopkgtests with Python 3.15: AttributeError: module 'cProfile' has no attribute 'label'
Message-ID: <179540004114.1723718.4409155181539764602.reportbug@trochilus.nanonanonano.net>
X-Mailer: reportbug 13.2.0
Date: Mon, 23 Nov 2026 13:14:01 +1100
Delivered-To: submit@bugs.debian.org

Source: python-django-debug-toolbar
Version: 1:8.0.0-1
Severity: serious
X-Debbugs-Cc: stuart@debian.org

Dear Maintainer,

Python 3.15 changed the cProfile module (now profile.tracing); as part
of that change, the undocumented cProfile.label function disappeared.

https://docs.python.org/3/whatsnew/3.15.html#pep-799-a-dedicated-profiling-package

debug_toolbar/panels/profiling.py makes use of cProfile.label, which
means that the autopkgtests for python-django-debug-toolbar are
currently failing.

//---

 55s ERROR: test_generate_stats_no_root_func (tests.panels.test_profiling.ProfilingPanelTestCase.test_generate_stats_no_root_func)
 55s Test generating stats using profiler without root function.
 55s ----------------------------------------------------------------------
 55s Traceback (most recent call last):
 55s   File "/var/tmp/autopkgtest_tmp.swvKoO/tests/panels/test_profiling.py", line 88, in test_generate_stats_no_root_func
 55s     self.panel.generate_stats(self.request, response)
 55s     ~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
 55s   File "/usr/lib/python3/dist-packages/debug_toolbar/panels/profiling.py", line 187, in generate_stats
 55s     root_func = cProfile.label(super().process_request.__code__)
 55s                 ^^^^^^^^^^^^^^
 55s AttributeError: module 'cProfile' has no attribute 'label'

[...]

 55s FAILED (errors=6, skipped=32, expected failures=1)

---//

This is fixed upstream in PR 2483

https://github.com/django-commons/django-debug-toolbar/pull/2483

regards
Stuart

------------=_1796012462-3944058-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 1154935-close) by bugs.debian.org; 30 Nov 2026 04:19:55 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
	(2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-114.2 required=4.0 tests=ALL_TRUSTED,BAYES_00,
	DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FVGT_m_MULTI_ODD,
	HAS_BUG_NUMBER,MD5_SHA1_SUM,PGPSIGNATURE,SPF_HELO_PASS,SPF_PASS,
	USER_IN_DKIM_WELCOMELIST autolearn=ham autolearn_force=no
	version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 112; hammy, 150; neutral, 136; spammy,
	0. spammytokens: hammytokens:0.000-+--HX-Debian:DAK,
	0.000-+--H*rp:D*ftp-master.debian.org, 0.000-+--HX-DAK:process-upload,
	0.000-+--UD:debian.tar.xz, 0.000-+--H*r:sk:fasolo.
Return-path: <envelope@ftp-master.debian.org>
Received: from mailly.debian.org ([2001:41b8:202:deb:6564:a62:52c3:4b72]:46884)
	by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <envelope@ftp-master.debian.org>)
	id 1xXsrs-00GXur-1L
	for 1154935-close@bugs.debian.org;
	Mon, 30 Nov 2026 04:19:55 +0000
Received: via submission
	from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=fasolo.debian.org,EMAIL=hostmaster@fasolo.debian.org (verified)
	by mailly.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <envelope@ftp-master.debian.org>)
	id 1xXsrq-00E4vo-0u
	for 1154935-close@bugs.debian.org;
	Mon, 30 Nov 2026 04:19:54 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
	d=ftp-master.debian.org; s=smtpauto.fasolo; h=Content-Type:Message-Id:Date:
	Subject:MIME-Version:To:Reply-To:From:Cc:Content-Transfer-Encoding:Content-ID
	:Content-Description:In-Reply-To:References;
	bh=tQ6CmlkAUccPFaxQ486v4kd8oPUO0d+jN5Q6DNtyOEY=; b=hyXs7m2RQWB/0D1EqRcJlscmwP
	8MYf2MAljwLvEZe7tAYDMGe06FvB3bXMdHvmfY9JmmZ4HVR1EbkGNnWg369T7CnYvkG3pjt+AOg4r
	E/dD9St3Py7erMlkCajwqf/K4PnLLtmaK5bwsTXTXxIKpSqHfxDblSkcX0+08eF5Lc1zU01KUmmiF
	/myLRpeN/yDgZsMkli4ZJCakWE26gfhuQdD463UY5o3ICYyarwAfZ9hepbLS+Gu7GXRTURWmnrjaW
	nUNluGNBlmonGltrolWjBDTPCdh9kBzlgwY+x5tesXQ08ESrb/J3W3m8DUsjX7Rn54ChlZr0vSZZx
	4jdE9R9g==;
Received: from dak by fasolo.debian.org with local (Exim 4.98.2)
	(envelope-from <envelope@ftp-master.debian.org>)
	id 1xXsrp-00000007BRQ-1wlf;
	Mon, 30 Nov 2026 04:19:53 +0000
From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
Reply-To: Stuart Prescott <stuart@debian.org>
To: 1154935-close@bugs.debian.org
X-DAK: dak process-upload
X-Debian: DAK
X-Debian-Package: python-django-debug-toolbar
Debian: DAK
Debian-Changes: python-django-debug-toolbar_8.0.0-2_source.changes
Debian-Source: python-django-debug-toolbar
Debian-Version: 1:8.0.0-2
Debian-Architecture: source
Debian-Suite: unstable
Debian-Archive-Action: accept
MIME-Version: 1.0
Subject: Bug#1154935: fixed in python-django-debug-toolbar 1:8.0.0-2
Date: Mon, 30 Nov 2026 04:19:53 +0000
Message-Id: <179601239343.1712166.3975288490626301218@fasolo.debian.org>
Content-Type: multipart/signed; micalg="pgp-sha256";
 protocol="application/pgp-signature";
 boundary="===============3464127346743070733=="

--===============3464127346743070733==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

Source: python-django-debug-toolbar
Source-Version: 1:8.0.0-2
Done: Stuart Prescott <stuart@debian.org>

We believe that the bug you reported is fixed in the latest version of
python-django-debug-toolbar, which is due to be installed in the Debian FTP a=
rchive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1154935@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stuart Prescott <stuart@debian.org> (supplier of updated python-django-debug-=
toolbar package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 30 Nov 2026 14:36:24 +1100
Source: python-django-debug-toolbar
Architecture: source
Version: 1:8.0.0-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Stuart Prescott <stuart@debian.org>
Closes: 1154935
Changes:
 python-django-debug-toolbar (1:8.0.0-2) unstable; urgency=3Dmedium
 .
   * Team upload.
   * Cherry-pick upstream patch to remove use of cProfile.label for
     compatibility with Python 3.15 (Closes: #1154935).
Checksums-Sha1:
 290d9a7757c5a12eae6c6385e4039a5cf9b59c93 3081 python-django-debug-toolbar_8.=
0.0-2.dsc
 a4e4a47f154e29e635d8194772562cb31afb928f 9636 python-django-debug-toolbar_8.=
0.0-2.debian.tar.xz
 e7f582421ad4f896ef4bfe461ef64777b54bc989 1707876 python-django-debug-toolbar=
_8.0.0-2.git.tar.xz
 34881f84cb71f91e2703b68979b9c0a219b2f5fb 17888 python-django-debug-toolbar_8=
.0.0-2_source.buildinfo
Checksums-Sha256:
 ba2975ec7c347371ec8d1043627793b1fd9aa2111eb60f79d7e13b01a1aa2ca5 3081 python=
-django-debug-toolbar_8.0.0-2.dsc
 decb00f2f87ce0870c496b267cc51cd83b0232b1cf81c38dc892e47bd641a025 9636 python=
-django-debug-toolbar_8.0.0-2.debian.tar.xz
 376c27720c8ff33ea8b42eaad3e3780ae1dc6bc09586fe7a36efed20cc188cc4 1707876 pyt=
hon-django-debug-toolbar_8.0.0-2.git.tar.xz
 8fb41883f144533b2de2c3a37644e7e4e8f3082439be78c229fe749556631f02 17888 pytho=
n-django-debug-toolbar_8.0.0-2_source.buildinfo
Files:
 77139e34d507400353dde01997fc40e8 3081 python optional python-django-debug-to=
olbar_8.0.0-2.dsc
 c539a9760b6f27ea9d653b00e9297881 9636 python optional python-django-debug-to=
olbar_8.0.0-2.debian.tar.xz
 4aa43ffd0fc7fb9a8d5730f29993a2c6 1707876 python None python-django-debug-too=
lbar_8.0.0-2.git.tar.xz
 71074e187119a35fcdaac8007fc6801f 17888 python optional python-django-debug-t=
oolbar_8.0.0-2_source.buildinfo
Git-Tag-Info: tag=3Dfc3d9f9c905702b597148387bf8c95835b8322cf fp=3D90e2d2c1ad1=
46a1b7ebb891dbbc17ebb1396f2f7
Git-Tag-Tagger: Stuart Prescott <stuart@debian.org>

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmsM8aMACgkQYG0ITkaD
wHku0RAA0IEm+TDFT92/WN6rQp0+eXbRkAwidJtP59pRdBS0lse9TndG6zzJRGpi
2z83zsd+FvYOjAIEF+0Tv4QsU5M8lczs+3Np/YQ2Mfs5N15eqROiQKMSKIHHS3qD
lR4v/RwTmIyQ4KxWKSYbfUsb4Qa6oGA/tRHqOn+q653sMwR+jA7Z8PymSJM/XjYH
2abSN2KWgeeHD1Xg0Jvjk4NsE7SK+0Zj26bmj8Fus3PUQ+UT07W100jtEW05tmxG
vICnLtBlHjz9IiLieCichcDGS2pttuDHctAM158JjajZxaPBJvdQMcq/MfOOyM9P
dguKhyuB1nU3g6ZbMAmSHHaT8sThNrqmNAHkZ8rZyz/8Z+S2UrMdck0Xf99jsyu2
LWVtoL3LCPJDl6ee6E+YldiUGdSIe8x/5wKo9RGVBP8ikh50m7WNO9SOFR5PGWJ9
Vgb0XTfjhn/p8jUcnXqTsD0stE0L29gp0Ev5uTMuJseABu/Er7nn31gRJ+5Gbb+6
JFWRJ9dPUYNuh+Ss2U7Ed2Rr8u57FOKyR4YGatLa4A862miV4ZhCgSlTNdyXeG9O
5alrDR+EhLnHHKETcxyRp1OtDPummiZHM/WO/4uL+8Wqo5Fes85yOy+fWPKrZ7qy
/SXVv7zL03/k+pvxZlpQKirjekK3SzyzjUz0JZm3Ll5DyphQ/1k=3D
=3Doh8i
-----END PGP SIGNATURE-----


--===============3464127346743070733==
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQTziqJOuF8J+ZI8pJSb9qggYcy5IQUCawz5aQAKCRCb9qggYcy5
IesdAP9pmQutDuSYrbVJOxOlKmczUrvIUalqXU12c9HvMZq+agEAmZ6YG5dLwd9e
LxVO5IBhbfDw2zvTdjvgCJNN5123XAs=
=lkSz
-----END PGP SIGNATURE-----

--===============3464127346743070733==--
------------=_1796012462-3944058-0--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads