Package: src:rich
Version: 13.9.4-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/202512/

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:rich, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --with python3 --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 python3 --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:131: Building wheel for python3.14 with "build" 
module
I: pybuild base:317: python3.14 -m build --skip-dependency-check --no-isolation 
--wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_rich  
* Building wheel...
The "poetry.dev-dependencies" section is deprecated and will be removed in a 
future version. Use "poetry.group.dev.dependencies" instead.
Successfully built rich-13.9.4-py3-none-any.whl
I: pybuild plugin_pyproject:155: Unpacking wheel built for python3.14 with 
"installer" module
I: pybuild plugin_pyproject:131: Building wheel for python3.13 with "build" 
module
I: pybuild base:317: python3.13 -m build --skip-dependency-check --no-isolation 
--wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_rich  
* Building wheel...
The "poetry.dev-dependencies" section is deprecated and will be removed in a 
future version. Use "poetry.group.dev.dependencies" instead.
Successfully built rich-13.9.4-py3-none-any.whl
I: pybuild plugin_pyproject:155: Unpacking wheel built for python3.13 with 
"installer" module
   debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="PYTHONPATH=/<<PKGBUILDDIR>> 
{interpreter} -m pytest" dh_auto_test
I: pybuild base:317: PYTHONPATH=/<<PKGBUILDDIR>> python3.14 -m pytest
============================= test session starts ==============================
platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0
rootdir: /<<PKGBUILDDIR>>
configfile: pyproject.toml
testpaths: tests
plugins: typeguard-4.4.4
collected 874 items

tests/test_align.py ................                                     [  1%]
tests/test_ansi.py .......................                               [  4%]
tests/test_bar.py .......                                                [  5%]
tests/test_block_bar.py ....                                             [  5%]
tests/test_box.py ........                                               [  6%]
tests/test_card.py .                                                     [  6%]
tests/test_cells.py ........                                             [  7%]
tests/test_color.py .................                                    [  9%]
tests/test_color_triplet.py ...                                          [  9%]
tests/test_columns.py .                                                  [ 10%]
tests/test_columns_align.py .                                            [ 10%]
tests/test_console.py .................................................. [ 15%]
................................................                         [ 21%]
tests/test_constrain.py .                                                [ 21%]
tests/test_containers.py ....                                            [ 21%]
tests/test_control.py .......                                            [ 22%]
tests/test_emoji.py ......                                               [ 23%]
tests/test_file_proxy.py ...                                             [ 23%]
tests/test_filesize.py ..                                                [ 24%]
tests/test_getfileno.py ...                                              [ 24%]
tests/test_highlighter.py .............................................. [ 29%]
.....................................                                    [ 33%]
tests/test_inspect.py ...F....FFF..................................      [ 39%]
tests/test_json.py .                                                     [ 39%]
tests/test_jupyter.py ...                                                [ 39%]
tests/test_layout.py ......                                              [ 40%]
tests/test_live.py ..........                                            [ 41%]
tests/test_live_render.py ....                                           [ 41%]
tests/test_log.py ...                                                    [ 42%]
tests/test_logging.py ....                                               [ 42%]
tests/test_markdown.py .......                                           [ 43%]
tests/test_markdown_no_hyperlinks.py .                                   [ 43%]
tests/test_markup.py .....................                               [ 45%]
tests/test_measure.py ....                                               [ 46%]
tests/test_null_file.py .                                                [ 46%]
tests/test_padding.py .....                                              [ 47%]
tests/test_palette.py .                                                  [ 47%]
tests/test_panel.py ...........                                          [ 48%]
tests/test_pick.py .                                                     [ 48%]
tests/test_pretty.py ............................................F...... [ 54%]
.                                                                        [ 54%]
tests/test_progress.py ......................................            [ 58%]
tests/test_prompt.py .......                                             [ 59%]
tests/test_protocol.py ......                                            [ 60%]
tests/test_ratio.py .......                                              [ 61%]
tests/test_repr.py ........                                              [ 62%]
tests/test_rich_print.py .......                                         [ 62%]
tests/test_rule.py ................                                      [ 64%]
tests/test_rule_in_table.py ....                                         [ 65%]
tests/test_screen.py .                                                   [ 65%]
tests/test_segment.py .................................................. [ 70%]
.........                                                                [ 71%]
tests/test_spinner.py .....                                              [ 72%]
tests/test_stack.py .                                                    [ 72%]
tests/test_status.py ..                                                  [ 72%]
tests/test_style.py ...........................                          [ 75%]
tests/test_styled.py .                                                   [ 76%]
tests/test_syntax.py ........................                            [ 78%]
tests/test_table.py ....................                                 [ 81%]
tests/test_text.py ..................................................... [ 87%]
.............................F..........................                 [ 93%]
tests/test_theme.py .....                                                [ 94%]
tests/test_tools.py ....                                                 [ 94%]
tests/test_traceback.py ...................s.                            [ 97%]
tests/test_tree.py .....s.s.                                             [ 98%]
tests/test_windows_renderer.py sssssssssssssssss                         [100%]

=================================== FAILURES ===================================
________________ test_inspect_builtin_function_except_python311 ________________

    @skip_py313
    @skip_py312
    @skip_py311
    @skip_pypy3
    def test_inspect_builtin_function_except_python311():
        # Pre-3.11 Python versions - print builtin has no signature available
        expected = (
            "╭────────── <built-in function print> 
───────────╮\n"
            "│ def print(...)                                 │\n"
            "│                                                │\n"
            "│ print(value, ..., sep=' ', end='\\n',           │\n"
            "│ file=sys.stdout, flush=False)                  │\n"
            "│                                                │\n"
            "│ 29 attribute(s) not shown. Run                 │\n"
            "│ inspect(inspect) for options.                  │\n"
            
"╰────────────────────────────────────────────────╯\n"
        )
>       assert render(print) == expected
E       AssertionError: assert '╭────────── 
...──────────╯\n' == '╭────────── 
...──────────╯\n'
E         
E         Skipping 53 identical leading characters in diff, use -v to show
E         - def print(...)                                 │
E         + def print(*args, sep=' ', end='\n', file=None, │
E         + │ flush=False):                                  │
E           │                                                │
E         - │ print(value, ..., sep=' ', end='\n',           │...
E         
E         ...Full output truncated (10 lines hidden), use '-vv' to show

tests/test_inspect.py:159: AssertionError
___________ test_inspect_integer_with_methods_python38_and_python39 ____________

    @skip_py310
    @skip_py311
    @skip_py312
    @skip_py313
    def test_inspect_integer_with_methods_python38_and_python39():
        expected = (
            "╭──────────────── <class 'int'> 
─────────────────╮\n"
            "│ int([x]) -> integer                            │\n"
            "│ int(x, base=10) -> integer                     │\n"
            "│                                                │\n"
            "│      denominator = 1                           │\n"
            "│             imag = 0                           │\n"
            "│        numerator = 1                           │\n"
            "│             real = 1                           │\n"
            "│ as_integer_ratio = def as_integer_ratio():     │\n"
            "│                    Return integer ratio.       │\n"
            "│       bit_length = def bit_length(): Number of │\n"
            "│                    bits necessary to represent │\n"
            "│                    self in binary.             │\n"
            "│        conjugate = def conjugate(...) Returns  │\n"
            "│                    self, the complex conjugate │\n"
            "│                    of any int.                 │\n"
            "│       from_bytes = def from_bytes(bytes,       │\n"
            "│                    byteorder, *,               │\n"
            "│                    signed=False): Return the   │\n"
            "│                    integer represented by the  │\n"
            "│                    given array of bytes.       │\n"
            "│         to_bytes = def to_bytes(length,        │\n"
            "│                    byteorder, *,               │\n"
            "│                    signed=False): Return an    │\n"
            "│                    array of bytes representing │\n"
            "│                    an integer.                 │\n"
            
"╰────────────────────────────────────────────────╯\n"
        )
>       assert render(1, methods=True) == expected
E       AssertionError: assert 
'╭───────────...──────────╯\n' == 
'╭───────────...──────────╯\n'
E         
E         Skipping 477 identical leading characters in diff, use -v to show
E         -    Return integer ratio.       │
E         +    Return a pair of integers,  │
E         + │                    whose ratio is equal to the │
E         + │                    original int.               │
E         + │        bit_count = def bit_count(): Number of  │...
E         
E         ...Full output truncated (36 lines hidden), use '-vv' to show

tests/test_inspect.py:252: AssertionError
_______________ test_inspect_integer_with_methods_python310only ________________

    @skip_py38
    @skip_py39
    @skip_py311
    @skip_py312
    @skip_py313
    def test_inspect_integer_with_methods_python310only():
        expected = (
            "╭──────────────── <class 'int'> 
─────────────────╮\n"
            "│ int([x]) -> integer                            │\n"
            "│ int(x, base=10) -> integer                     │\n"
            "│                                                │\n"
            "│      denominator = 1                           │\n"
            "│             imag = 0                           │\n"
            "│        numerator = 1                           │\n"
            "│             real = 1                           │\n"
            "│ as_integer_ratio = def as_integer_ratio():     │\n"
            "│                    Return integer ratio.       │\n"
            "│        bit_count = def bit_count(): Number of  │\n"
            "│                    ones in the binary          │\n"
            "│                    representation of the       │\n"
            "│                    absolute value of self.     │\n"
            "│       bit_length = def bit_length(): Number of │\n"
            "│                    bits necessary to represent │\n"
            "│                    self in binary.             │\n"
            "│        conjugate = def conjugate(...) Returns  │\n"
            "│                    self, the complex conjugate │\n"
            "│                    of any int.                 │\n"
            "│       from_bytes = def from_bytes(bytes,       │\n"
            "│                    byteorder, *,               │\n"
            "│                    signed=False): Return the   │\n"
            "│                    integer represented by the  │\n"
            "│                    given array of bytes.       │\n"
            "│         to_bytes = def to_bytes(length,        │\n"
            "│                    byteorder, *,               │\n"
            "│                    signed=False): Return an    │\n"
            "│                    array of bytes representing │\n"
            "│                    an integer.                 │\n"
            
"╰────────────────────────────────────────────────╯\n"
        )
>       assert render(1, methods=True) == expected
E       AssertionError: assert 
'╭───────────...──────────╯\n' == 
'╭───────────...──────────╯\n'
E         
E         Skipping 477 identical leading characters in diff, use -v to show
E         -    Return integer ratio.       │
E         +    Return a pair of integers,  │
E         + │                    whose ratio is equal to the │
E         + │                    original int.               │
E           │        bit_count = def bit_count(): Number of  │...
E         
E         ...Full output truncated (36 lines hidden), use '-vv' to show

tests/test_inspect.py:294: AssertionError
_________________ test_inspect_integer_with_methods_python311 __________________

    @skip_py38
    @skip_py39
    @skip_py310
    @skip_py312
    @skip_py313
    def test_inspect_integer_with_methods_python311():
        # to_bytes and from_bytes methods on int had minor signature change -
        # they now, as of 3.11, have default values for all of their parameters
        expected = (
            "╭──────────────── <class 'int'> 
─────────────────╮\n"
            "│ int([x]) -> integer                            │\n"
            "│ int(x, base=10) -> integer                     │\n"
            "│                                                │\n"
            "│      denominator = 1                           │\n"
            "│             imag = 0                           │\n"
            "│        numerator = 1                           │\n"
            "│             real = 1                           │\n"
            "│ as_integer_ratio = def as_integer_ratio():     │\n"
            "│                    Return integer ratio.       │\n"
            "│        bit_count = def bit_count(): Number of  │\n"
            "│                    ones in the binary          │\n"
            "│                    representation of the       │\n"
            "│                    absolute value of self.     │\n"
            "│       bit_length = def bit_length(): Number of │\n"
            "│                    bits necessary to represent │\n"
            "│                    self in binary.             │\n"
            "│        conjugate = def conjugate(...) Returns  │\n"
            "│                    self, the complex conjugate │\n"
            "│                    of any int.                 │\n"
            "│       from_bytes = def from_bytes(bytes,       │\n"
            "│                    byteorder='big', *,         │\n"
            "│                    signed=False): Return the   │\n"
            "│                    integer represented by the  │\n"
            "│                    given array of bytes.       │\n"
            "│         to_bytes = def to_bytes(length=1,      │\n"
            "│                    byteorder='big', *,         │\n"
            "│                    signed=False): Return an    │\n"
            "│                    array of bytes representing │\n"
            "│                    an integer.                 │\n"
            
"╰────────────────────────────────────────────────╯\n"
        )
>       assert render(1, methods=True) == expected
E       AssertionError: assert 
'╭───────────...──────────╯\n' == 
'╭───────────...──────────╯\n'
E         
E         Skipping 477 identical leading characters in diff, use -v to show
E         -    Return integer ratio.       │
E         +    Return a pair of integers,  │
E         + │                    whose ratio is equal to the │
E         + │                    original int.               │
E           │        bit_count = def bit_count(): Number of  │...
E         
E         ...Full output truncated (27 lines hidden), use '-vv' to show

tests/test_inspect.py:338: AssertionError
______________________________ test_attrs_broken _______________________________

    @skip_py310
    @skip_py311
    @skip_py312
    @skip_py313
    def test_attrs_broken() -> None:
        @attr.define
        class Foo:
            bar: int
    
        foo = Foo(1)
        del foo.bar
        result = pretty_repr(foo)
        print(repr(result))
        expected = "Foo(bar=AttributeError('bar'))"
>       assert result == expected
E       assert 'Foo(\n    ba... \'bar\'")\n)' == "Foo(bar=Attr...Error('bar'))"
E         
E         - Foo(bar=AttributeError('bar'))
E         + Foo(
E         +     
bar=AttributeError("'tests.test_pretty.test_attrs_broken.<locals>.Foo' object 
has no attribute 'bar'")
E         + )

tests/test_pretty.py:652: AssertionError
----------------------------- Captured stdout call -----------------------------
'Foo(\n    
bar=AttributeError("\'tests.test_pretty.test_attrs_broken.<locals>.Foo\' object 
has no attribute \'bar\'")\n)'
______________________________ test_assemble_meta ______________________________

    def test_assemble_meta():
        text = Text.assemble("foo", ("bar", "bold"), meta={"foo": "bar"})
        assert str(text) == "foobar"
>       assert text._spans == [Span(3, 6, "bold"), Span(0, 6, 
> Style(meta={"foo": "bar"}))]
E       AssertionError: assert [Span(3, 6, '...oo': 'bar'}))] == [Span(3, 6, 
'...oo': 'bar'}))]
E         
E         At index 1 diff: Span(0, 6, Style(meta={'foo': 'bar'})) != Span(0, 6, 
Style(meta={'foo': 'bar'}))
E         Use -v to get more diff

tests/test_text.py:846: AssertionError
=========================== short test summary info ============================
FAILED tests/test_inspect.py::test_inspect_builtin_function_except_python311
FAILED 
tests/test_inspect.py::test_inspect_integer_with_methods_python38_and_python39
FAILED tests/test_inspect.py::test_inspect_integer_with_methods_python310only
FAILED tests/test_inspect.py::test_inspect_integer_with_methods_python311 - A...
FAILED tests/test_pretty.py::test_attrs_broken - assert 'Foo(\n    ba... \'ba...
FAILED tests/test_text.py::test_assemble_meta - AssertionError: assert [Span(...
================== 6 failed, 848 passed, 20 skipped in 4.19s ===================
E: pybuild pybuild:389: test: plugin custom failed with: exit code=1: 
PYTHONPATH=/<<PKGBUILDDIR>> python3.14 -m pytest
I: pybuild base:317: PYTHONPATH=/<<PKGBUILDDIR>> python3.13 -m pytest
============================= test session starts ==============================
platform linux -- Python 3.13.11, pytest-9.0.2, pluggy-1.6.0
rootdir: /<<PKGBUILDDIR>>
configfile: pyproject.toml
testpaths: tests
plugins: typeguard-4.4.4
collected 874 items

tests/test_align.py ................                                     [  1%]
tests/test_ansi.py .......................                               [  4%]
tests/test_bar.py .......                                                [  5%]
tests/test_block_bar.py ....                                             [  5%]
tests/test_box.py ........                                               [  6%]
tests/test_card.py .                                                     [  6%]
tests/test_cells.py ........                                             [  7%]
tests/test_color.py .................                                    [  9%]
tests/test_color_triplet.py ...                                          [  9%]
tests/test_columns.py .                                                  [ 10%]
tests/test_columns_align.py .                                            [ 10%]
tests/test_console.py .................................................. [ 15%]
................................................                         [ 21%]
tests/test_constrain.py .                                                [ 21%]
tests/test_containers.py ....                                            [ 21%]
tests/test_control.py .......                                            [ 22%]
tests/test_emoji.py ......                                               [ 23%]
tests/test_file_proxy.py ...                                             [ 23%]
tests/test_filesize.py ..                                                [ 24%]
tests/test_getfileno.py ...                                              [ 24%]
tests/test_highlighter.py .............................................. [ 29%]
.....................................                                    [ 33%]
tests/test_inspect.py ...s....sss..................................      [ 39%]
tests/test_json.py .                                                     [ 39%]
tests/test_jupyter.py ...                                                [ 39%]
tests/test_layout.py ......                                              [ 40%]
tests/test_live.py ..........                                            [ 41%]
tests/test_live_render.py ....                                           [ 41%]
tests/test_log.py ...                                                    [ 42%]
tests/test_logging.py ....                                               [ 42%]
tests/test_markdown.py .......                                           [ 43%]
tests/test_markdown_no_hyperlinks.py .                                   [ 43%]
tests/test_markup.py .....................                               [ 45%]
tests/test_measure.py ....                                               [ 46%]
tests/test_null_file.py .                                                [ 46%]
tests/test_padding.py .....                                              [ 47%]
tests/test_palette.py .                                                  [ 47%]
tests/test_panel.py ...........                                          [ 48%]
tests/test_pick.py .                                                     [ 48%]
tests/test_pretty.py ............................................s...... [ 54%]
.                                                                        [ 54%]
tests/test_progress.py ......................................            [ 58%]
tests/test_prompt.py .......                                             [ 59%]
tests/test_protocol.py ......                                            [ 60%]
tests/test_ratio.py .......                                              [ 61%]
tests/test_repr.py ........                                              [ 62%]
tests/test_rich_print.py .......                                         [ 62%]
tests/test_rule.py ................                                      [ 64%]
tests/test_rule_in_table.py ....                                         [ 65%]
tests/test_screen.py .                                                   [ 65%]
tests/test_segment.py .................................................. [ 70%]
.........                                                                [ 71%]
tests/test_spinner.py .....                                              [ 72%]
tests/test_stack.py .                                                    [ 72%]
tests/test_status.py ..                                                  [ 72%]
tests/test_style.py ...........................                          [ 75%]
tests/test_styled.py .                                                   [ 76%]
tests/test_syntax.py ........................                            [ 78%]
tests/test_table.py ....................                                 [ 81%]
tests/test_text.py ..................................................... [ 87%]
........................................................                 [ 93%]
tests/test_theme.py .....                                                [ 94%]
tests/test_tools.py ....                                                 [ 94%]
tests/test_traceback.py ...................s.                            [ 97%]
tests/test_tree.py .....s.s.                                             [ 98%]
tests/test_windows_renderer.py sssssssssssssssss                         [100%]

======================= 849 passed, 25 skipped in 4.20s ========================
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.14 
3.13" returned exit code 13
make[1]: *** [debian/rules:9: override_dh_auto_test] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:6: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

Reply via email to