Your message dated Thu, 28 May 2026 13:59:28 +0100
with message-id <[email protected]>
and subject line Re: Bug#1135455: patch: fix compatibility with Textual 8 
(renderable → content)
has caused the Debian Bug report #1135455,
regarding python-memray: FTBFS: E       AttributeError: 'Label' object has no 
attribute 'renderable'.
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 [email protected]
immediately.)


-- 
1135455: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1135455
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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 /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_memray  
* Building wheel...
warning: src/memray/_memray.pyx:517:14: Rvalue-reference as function argument 
not supported

[... 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
  /<<PKGBUILDDIR>>/.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 '/<<PKGBUILDDIR>>'
make: *** [debian/rules:9: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit 
status 2
--------------------------------------------------------------------------------

--- End Message ---
--- Begin Message ---
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)                              [[email protected]]

--- End Message ---

Reply via email to