#1135455 - python-memray: FTBFS: E AttributeError: 'Label' object has no attribute 'renderable'. (original) (raw)

version graph

Reported by: Santiago Vila sanvila@debian.org

Date: Fri, 1 May 2026 23:15:08 UTC

Severity: serious

Tags: forky, ftbfs, sid

Found in version python-memray/1.17.0+dfsg-1

Fixed in version python-memray/1.19.1+dfsg-1

Done: Colin Watson cjwatson@debian.org

Reply or subscribe to this bug.

Display info messages


Report forwardedto debian-bugs-dist@lists.debian.org, sanvila@debian.org (additional cc recipient for {1135455}), Debian Python Team <team+python@tracker.debian.org> (src:python-memray for {1135455}):
Bug#1135455; Package src:python-memray. (Fri, 01 May 2026 23:15:09 GMT) (full text, mbox, link).


Acknowledgement sentto Santiago Vila <sanvila@debian.org>:
New Bug report received and forwarded. Copy sent to sanvila@debian.org, team+python@tracker.debian.org. (Fri, 01 May 2026 23:15:09 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

Package: src:python-memray Version: 1.17.0+dfsg-1 Severity: serious Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most relevant part, but not necessarily). If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202605/

About the archive rebuild: The build was made on virtual machines from AWS, using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I am willing to provide ssh access to a virtual machine where the bug is fully reproducible.

If this is really a bug in one of the build-depends, please use reassign and add an affects on src:python-memray, so that this is still visible in the BTS web page for this package.

Thanks.


[...] debian/rules clean dh clean --with sphinxdoc --buildsystem=pybuild dh_auto_clean -O--buildsystem=pybuild dh_autoreconf_clean -O--buildsystem=pybuild dh_clean -O--buildsystem=pybuild debian/rules binary dh binary --with sphinxdoc --buildsystem=pybuild dh_update_autotools_config -O--buildsystem=pybuild dh_autoreconf -O--buildsystem=pybuild dh_auto_configure -O--buildsystem=pybuild dh_auto_build -O--buildsystem=pybuild I: pybuild plugin_pyproject:142: Building wheel for python3.14 with "build" module I: pybuild base:385: python3.14 -m build --skip-dependency-check --no-isolation --wheel --outdir /<>/.pybuild/cpython3_3.14_memray

[... snipped ...]

       ^^^^^^^^^^^^^^^

tests/unit/test_tui_reporter.py:567: in run_test labels.update(extract_label_text(pilot.app)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/unit/test_tui_reporter.py:149: in extract_label_text label.id: render_widget(label) ^^^^^^^^^^^^^^^^^^^^


widget = Label(id='head_title')

def render_widget(widget: Widget) -> str:
    output = StringIO()
  rprint(widget.renderable, file=output)  # type: ignore
           ^^^^^^^^^^^^^^^^^

E AttributeError: 'Label' object has no attribute 'renderable'. Did you mean: 'render_line'?

tests/unit/test_tui_reporter.py:143: AttributeError ____________________________ test_switching_threads ____________________________

def test_switching_threads():
    """Test that we can switch which thread is displayed"""
    # GIVEN
    thread_names = ["Thread A", "", "Thread C"]
    thread_labels = [
        "Thread 1 of 3 (Thread A)",
        "Thread 2 of 3",
        "Thread 3 of 3 (Thread C)",
    ]
    snapshot = [
        mock_allocation(
            tid=1,
            stack=[("a", "a.py", 1)],
            thread_name=thread_names[0],
        ),
        mock_allocation(
            tid=2,
            stack=[("b", "b.py", 1)],
            thread_name=thread_names[1],
        ),
        mock_allocation(
            tid=3,
            stack=[("c", "c.py", 1)],
            thread_name=thread_names[2],
        ),
    ]

    reader = MockReader([])
    app = MockApp(reader)
    functions = []
    tids = []
    threads = []

    # WHEN
    async def run_test():
        async with app.run_test() as pilot:
            app.add_mock_snapshot(snapshot)
            await pilot.pause()

            datatable = pilot.app.screen.query_one(DataTable)

            for key in ("m", ">", ">", ">", "<", "<", "<"):
                await pilot.press(key)
                functions.append(datatable.get_cell_at(Coordinate(0, 0)).plain)
                labels = extract_label_text(app)
                tids.append(" ".join(labels["tid"].split()))
                threads.append(" ".join(labels["thread"].split()))
  async_run(run_test())

tests/unit/test_tui_reporter.py:684:


tests/utils.py:108: in async_run return asyncio.run(coro) ^^^^^^^^^^^^^^^^^ /usr/lib/python3.13/asyncio/runners.py:195: in run return runner.run(main) ^^^^^^^^^^^^^^^^ /usr/lib/python3.13/asyncio/runners.py:118: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.13/asyncio/base_events.py:725: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ tests/unit/test_tui_reporter.py:680: in run_test labels = extract_label_text(app) ^^^^^^^^^^^^^^^^^^^^^^^ tests/unit/test_tui_reporter.py:149: in extract_label_text label.id: render_widget(label) ^^^^^^^^^^^^^^^^^^^^


widget = Label(id='head_title')

def render_widget(widget: Widget) -> str:
    output = StringIO()
  rprint(widget.renderable, file=output)  # type: ignore
           ^^^^^^^^^^^^^^^^^

E AttributeError: 'Label' object has no attribute 'renderable'. Did you mean: 'render_line'?

tests/unit/test_tui_reporter.py:143: AttributeError _________________________ test_merge_mode_new_threads __________________________

def test_merge_mode_new_threads():
    """Test that the 'All threads' is still displayed when a new thread is created."""
    # GIVEN
    snapshot = [
        mock_allocation(
            tid=1,
            stack=[("a", "a.py", 1)],
        ),
        mock_allocation(
            tid=2,
            stack=[("b", "b.py", 1)],
        ),
        mock_allocation(
            tid=3,
            stack=[("c", "c.py", 1)],
        ),
    ]
    new_thread = mock_allocation(tid=4, stack=[("d", "d.py", 1)])

    reader = MockReader([])
    app = MockApp(reader)
    label = []

    # WHEN
    async def run_test():
        async with app.run_test() as pilot:
            await pilot.press("m")
            app.add_mock_snapshot(snapshot)
            await pilot.pause()

            await pilot.press("m")
            app.add_mock_snapshot(snapshot + [new_thread])
            await pilot.pause()
            label.append(extract_label_text(app)["thread"])
  async_run(run_test())

tests/unit/test_tui_reporter.py:728:


tests/utils.py:108: in async_run return asyncio.run(coro) ^^^^^^^^^^^^^^^^^ /usr/lib/python3.13/asyncio/runners.py:195: in run return runner.run(main) ^^^^^^^^^^^^^^^^ /usr/lib/python3.13/asyncio/runners.py:118: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.13/asyncio/base_events.py:725: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ tests/unit/test_tui_reporter.py:726: in run_test label.append(extract_label_text(app)["thread"]) ^^^^^^^^^^^^^^^^^^^^^^^ tests/unit/test_tui_reporter.py:149: in extract_label_text label.id: render_widget(label) ^^^^^^^^^^^^^^^^^^^^


widget = Label(id='head_title')

def render_widget(widget: Widget) -> str:
    output = StringIO()
  rprint(widget.renderable, file=output)  # type: ignore
           ^^^^^^^^^^^^^^^^^

E AttributeError: 'Label' object has no attribute 'renderable'. Did you mean: 'render_line'?

tests/unit/test_tui_reporter.py:143: AttributeError __________________ test_merging_allocations_from_all_threads ___________________

def test_merging_allocations_from_all_threads():
    """Test that we can display allocations from all threads"""
    # GIVEN
    snapshot = [
        mock_allocation(
            tid=1,
            size=1024,
            stack=[("a", "a.py", 1)],
        ),
        mock_allocation(
            tid=2,
            size=2 * 1024,
            stack=[("b", "b.py", 1)],
        ),
        mock_allocation(
            tid=3,
            size=3 * 1024,
            stack=[("c", "c.py", 1)],
        ),
    ]

    reader = MockReader([])
    app = MockApp(reader)
    functions = []
    tids = []
    threads = []

    # WHEN
    async def run_test():
        async with app.run_test() as pilot:
            app.add_mock_snapshot(snapshot)
            await pilot.pause()

            datatable = pilot.app.screen.query_one(DataTable)

            for key in ("m", ">", "m", "<", "m", "<"):
                await pilot.press(key)
                functions.append(datatable.get_cell_at(Coordinate(0, 0)).plain)
                labels = extract_label_text(app)
                tids.append(" ".join(labels["tid"].split()))
                threads.append(" ".join(labels["thread"].split()))
  async_run(run_test())

tests/unit/test_tui_reporter.py:776:


tests/utils.py:108: in async_run return asyncio.run(coro) ^^^^^^^^^^^^^^^^^ /usr/lib/python3.13/asyncio/runners.py:195: in run return runner.run(main) ^^^^^^^^^^^^^^^^ /usr/lib/python3.13/asyncio/runners.py:118: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.13/asyncio/base_events.py:725: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ tests/unit/test_tui_reporter.py:772: in run_test labels = extract_label_text(app) ^^^^^^^^^^^^^^^^^^^^^^^ tests/unit/test_tui_reporter.py:149: in extract_label_text label.id: render_widget(label) ^^^^^^^^^^^^^^^^^^^^


widget = Label(id='head_title')

def render_widget(widget: Widget) -> str:
    output = StringIO()
  rprint(widget.renderable, file=output)  # type: ignore
           ^^^^^^^^^^^^^^^^^

E AttributeError: 'Label' object has no attribute 'renderable'. Did you mean: 'render_line'?

tests/unit/test_tui_reporter.py:143: AttributeError =============================== warnings summary =============================== tests/conftest.py:66 /<>/.pybuild/cpython3_3.13_memray/build/tests/conftest.py:66: UserWarning: snapshot tests require pytest-textual-snapshot but it is not installed config.issue_config_time_warning(UserWarning(reason), stacklevel=2)

tests/integration/test_processes.py: 11 warnings /usr/lib/python3.13/multiprocessing/popen_fork.py:67: DeprecationWarning: This process (pid=2918) is multi-threaded, use of fork() may lead to deadlocks in the child. self.pid = os.fork()

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/unit/test_tui_reporter.py::test_pid_display[Known PID] - Attribu... FAILED tests/unit/test_tui_reporter.py::test_pid_display[Unknown PID] - Attri... FAILED tests/unit/test_tui_reporter.py::test_command_line_display[Known command] FAILED tests/unit/test_tui_reporter.py::test_command_line_display[Known command with path] FAILED tests/unit/test_tui_reporter.py::test_command_line_display[Memray script with path] FAILED tests/unit/test_tui_reporter.py::test_command_line_display[Memray module with path] FAILED tests/unit/test_tui_reporter.py::test_command_line_display[Unknown command] FAILED tests/unit/test_tui_reporter.py::test_header_with_no_snapshots - Attri... FAILED tests/unit/test_tui_reporter.py::test_header_with_empty_snapshot - Att... FAILED tests/unit/test_tui_reporter.py::test_switching_threads - AttributeErr... FAILED tests/unit/test_tui_reporter.py::test_merge_mode_new_threads - Attribu... FAILED tests/unit/test_tui_reporter.py::test_merging_allocations_from_all_threads === 12 failed, 471 passed, 25 skipped, 14 deselected, 12 warnings in 22.41s ==== E: pybuild pybuild:485: test: plugin pyproject failed with: [too-long-redacted] and not test_dlopen_with_rpath' dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.14 3.13" --parallel=2 returned exit code 13 make[1]: *** [debian/rules:94: override_dh_auto_test] Error 25 make[1]: Leaving directory '/<>' make: *** [debian/rules:9: binary] Error 2 dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2


Information forwardedto debian-bugs-dist@lists.debian.org, Debian Python Team <team+python@tracker.debian.org> (src:python-memray for {1135455}):
Bug#1135455; Package src:python-memray. (Mon, 11 May 2026 12:49:02 GMT) (full text, mbox, link).


Acknowledgement sentto Claudio Ferreira <filhocf@gmail.com>:
Extra info received and forwarded to list. Copy sent to team+python@tracker.debian.org. (Mon, 11 May 2026 12:49:02 GMT) (full text, mbox, link).


Message #10 received at 1135455@bugs.debian.org (full text, mbox, reply):

[Message part 1 (text/plain, inline)]

Package: src:python-memray Version: 1.17.0+dfsg-1 Tags: patch

Fix compatibility with Textual 8 by falling back from renderable to content.

[Message part 2 (text/html, inline)]

[python-memray-fix.patch (text/x-patch, attachment)]


Reply sentto Colin Watson <cjwatson@debian.org>:
You have taken responsibility. (Thu, 28 May 2026 13:01:02 GMT) (full text, mbox, link).


Notification sentto Santiago Vila <sanvila@debian.org>:
Bug acknowledged by developer. (Thu, 28 May 2026 13:01:02 GMT) (full text, mbox, link).


Message #15 received at 1135455-done@bugs.debian.org (full text, mbox, reply):

Source: python-memray Source-Version: 1.19.1+dfsg-1

On Mon, May 11, 2026 at 09:47:06AM -0300, Claudio Ferreira wrote:

Package: src:python-memray Version: 1.17.0+dfsg-1 Tags: patch

Fix compatibility with Textual 8 by falling back from renderable to content.

Thanks for this patch. However, the package's git repository already had an update to the new upstream version 1.9.1, which contains a very similar patch (https://github.com/bloomberg/memray/commit/26b7f3b457943fba5c3fa36cae3102174ff0ceea).
That update had a finalized changelog but for some unclear reason hadn't actually been uploaded to unstable. I think at this point it likely makes more sense to base work on a current upstream version, so I've upgraded further to 1.9.3 and uploaded that.

Description: Fix compatibility with Textual 8. Textual 8 renamed the Widget.renderable attribute to Widget.content. The render_widget helper in the test suite used renderable, causing test failures with Textual 8. This patch adds a fallback: first tries renderable (for backward compat), then falls back to content. . The helper is only used in tests. Forwarded: https://bugs.debian.org/1135455

For future reference, https://dep-team.pages.debian.net/deps/dep3/ makes it clear that the Forwarded field should be about the patch having been forwarded from Debian to upstream, not from you to Debian. Bug-Debian is the proper field to use to point to the Debian bug.

Thanks,

-- Colin Watson (he/him) [cjwatson@debian.org]


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified:Wed Jun 17 18:54:42 2026; Machine Name:bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.