Article View: linux.debian.bugs.rc
Article #3926Bug#1154935: python-django-debug-toolbar: Failing autopkgtests with Python 3.15: AttributeError: module 'cProfile' has no attrib...
From: Stuart Prescott
Date: Mon, 23 Nov 2026 02:20
Date: Mon, 23 Nov 2026 02:20
42 lines
3184 bytes
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
Technical Details
Message-ID:
<O2rOV-dA4O-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod From: Stuart Prescott <stuart@debian.org> Newsgroups: linux.debian.bugs.rc Subject: Bug#1154935: python-django-debug-toolbar: Failing autopkgtests with Python 3.15: AttributeError: module 'cProfile' has no attribute 'label' Date: Mon, 23 Nov 2026 03:20:01 +0100 Message-ID: <O2rOV-dA4O-1@gated-at.bofh.it> X-Original-To: Debian Bug Tracking System <submit@bugs.debian.org> X-Mailbox-Line: From debian-bugs-rc-request@lists.debian.org Mon Nov 23 02:17:08 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.9 Reply-To: Stuart Prescott <stuart@debian.org>, 1154935@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: stuart@debian.org, team+python@tracker.debian.org X-Debian-Pr-Message: report 1154935 X-Debian-Pr-Package: src:python-django-debug-toolbar X-Debian-Pr-Source: python-django-debug-toolbar Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Mailer: reportbug 13.2.0 X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-rc@lists.debian.org> archive/latest/839273 List-ID: <debian-bugs-rc.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-rc/> Approved: robomod@news.nic.it Lines: 42 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 23 Nov 2026 13:14:01 +1100 X-Original-Message-ID: <179540004114.1723718.4409155181539764602.reportbug@trochilus.nanonanonano.net>