• Bug#1067310: tomahawk: FTBFS: dh_auto_test: error: pybuild --test -i py

    From Lucas Nussbaum@21:1/5 to All on Wed Mar 20 22:20:12 2024
    Source: tomahawk
    Version: 0.7.1-2.1
    Severity: serious
    Justification: FTBFS
    Tags: trixie sid ftbfs
    User: lucas@debian.org
    Usertags: ftbfs-20240319 ftbfs-trixie

    Hi,

    During a rebuild of all packages in sid, your package failed to build
    on amd64.


    Relevant part (hopefully):
    debian/rules build
    dh build --with python3 --buildsystem=pybuild
    dh: warning: Compatibility levels before 10 are deprecated (level 8 in use)
    dh_update_autotools_config -O--buildsystem=pybuild
    dh_auto_configure -O--buildsystem=pybuild
    dh_auto_configure: warning: Compatibility levels before 10 are deprecated (level 8 in use)
    I: pybuild base:305: python3.12 setup.py config
    running config
    I: pybuild base:305: python3.11 setup.py config
    running config
    dh_auto_build -O--buildsystem=pybuild
    dh_auto_build: warning: Compatibility levels before 10 are deprecated (level 8 in use)
    I: pybuild base:305: /usr/bin/python3.12 setup.py build
    running build
    running build_py
    creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_tomahawk/build/tomahawk copying tomahawk/utils.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_tomahawk/build/tomahawk
    copying tomahawk/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_tomahawk/build/tomahawk
    copying tomahawk/log.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_tomahawk/build/tomahawk
    copying tomahawk/expect.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_tomahawk/build/tomahawk
    copying tomahawk/rsync.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_tomahawk/build/tomahawk
    copying tomahawk/base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_tomahawk/build/tomahawk
    copying tomahawk/color.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_tomahawk/build/tomahawk
    copying tomahawk/constants.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_tomahawk/build/tomahawk
    copying tomahawk/command.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_tomahawk/build/tomahawk
    copying tomahawk/bootstrap.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_tomahawk/build/tomahawk
    running build_scripts
    creating build
    creating build/scripts-3.12
    copying and adjusting bin/tomahawk -> build/scripts-3.12
    copying and adjusting bin/tomahawk-rsync -> build/scripts-3.12
    changing mode of build/scripts-3.12/tomahawk from 644 to 755
    changing mode of build/scripts-3.12/tomahawk-rsync from 644 to 755
    I: pybuild base:305: /usr/bin/python3 setup.py build
    running build
    running build_py
    creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_tomahawk/build/tomahawk copying tomahawk/utils.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_tomahawk/build/tomahawk
    copying tomahawk/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_tomahawk/build/tomahawk
    copying tomahawk/log.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_tomahawk/build/tomahawk
    copying tomahawk/expect.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_tomahawk/build/tomahawk
    copying tomahawk/rsync.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_tomahawk/build/tomahawk
    copying tomahawk/base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_tomahawk/build/tomahawk
    copying tomahawk/color.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_tomahawk/build/tomahawk
    copying tomahawk/constants.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_tomahawk/build/tomahawk
    copying tomahawk/command.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_tomahawk/build/tomahawk
    copying tomahawk/bootstrap.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_tomahawk/build/tomahawk
    running build_scripts
    creating build/scripts-3.11
    copying and adjusting bin/tomahawk -> build/scripts-3.11
    copying and adjusting bin/tomahawk-rsync -> build/scripts-3.11
    changing mode of build/scripts-3.11/tomahawk from 644 to 755
    changing mode of build/scripts-3.11/tomahawk-rsync from 644 to 755
    dh_auto_test -O--buildsystem=pybuild
    dh_auto_test: warning: Compatibility levels before 10 are deprecated (level 8 in use)
    I: pybuild pybuild:308: cp -r /<<PKGBUILDDIR>>/tests /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_tomahawk/build;touch /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_tomahawk/build/tests/__init__.py; touch /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_tomahawk/build/
    tests/internal/__init__.py; cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_tomahawk/build
    I: pybuild base:305: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_tomahawk/build; python3.12 -m pytest /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_tomahawk/build/tests/internal
    ============================= test session starts ==============================
    platform linux -- Python 3.12.2, pytest-8.1.1, pluggy-1.4.0
    rootdir: /<<PKGBUILDDIR>>
    collected 24 items / 1 error

    ==================================== ERRORS ====================================
    _ ERROR collecting .pybuild/cpython3_3.12_tomahawk/build/tests/internal/test_expect.py _
    tests/internal/test_expect.py:3: in <module>
    from flexmock import flexmock /usr/lib/python3/dist-packages/flexmock/__init__.py:2: in <module>
    from flexmock import _integrations # pylint: disable=unused-import /usr/lib/python3/dist-packages/flexmock/_integrations.py:101: in <module>
    saved_pytest = runner.call_runtest_hook
    E AttributeError: module '_pytest.runner' has no attribute 'call_runtest_hook'
    =============================== warnings summary ===============================
    tomahawk/command.py:160
    /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_tomahawk/build/tomahawk/command.py:160: SyntaxWarning: invalid escape sequence '\$'
    .replace('$', '\$') \

    tomahawk/command.py:161
    /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_tomahawk/build/tomahawk/command.py:161: SyntaxWarning: invalid escape sequence '\`'
    .replace('`', '\`')

    -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================
    ERROR tests/internal/test_expect.py - AttributeError: module '_pytest.runner'...
    !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
    ========================= 2 warnings, 1 error in 0.15s =========================
    E: pybuild pybuild:389: test: plugin distutils failed with: exit code=2: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_tomahawk/build; python3.12 -m pytest {build_dir}/tests/internal
    I: pybuild pybuild:308: cp -r /<<PKGBUILDDIR>>/tests /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_tomahawk/build;touch /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_tomahawk/build/tests/__init__.py; touch /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_tomahawk/build/
    tests/internal/__init__.py; cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_tomahawk/build
    I: pybuild base:305: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_tomahawk/build; python3.11 -m pytest /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_tomahawk/build/tests/internal
    ============================= test session starts ==============================
    platform linux -- Python 3.11.8, pytest-8.1.1, pluggy-1.4.0
    rootdir: /<<PKGBUILDDIR>>
    collected 24 items / 1 error

    ==================================== ERRORS ====================================
    _ ERROR collecting .pybuild/cpython3_3.11_tomahawk/build/tests/internal/test_expect.py _
    tests/internal/test_expect.py:3: in <module>
    from flexmock import flexmock /usr/lib/python3/dist-packages/flexmock/__init__.py:2: in <module>
    from flexmock import _integrations # pylint: disable=unused-import /usr/lib/python3/dist-packages/flexmock/_integrations.py:101: in <module>
    saved_pytest = runner.call_runtest_hook
    E AttributeError: module '_pytest.runner' has no attribute 'call_runtest_hook'
    =============================== warnings summary ===============================
    tomahawk/command.py:160
    /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_tomahawk/build/tomahawk/command.py:160: DeprecationWarning: invalid escape sequence '\$'
    .replace('$', '\$') \

    tomahawk/command.py:161
    /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_tomahawk/build/tomahawk/command.py:161: DeprecationWarning: invalid escape sequence '\`'
    .replace('`', '\`')

    -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================
    ERROR tests/internal/test_expect.py - AttributeError: module '_pytest.runner'...
    !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
    ========================= 2 warnings, 1 error in 0.15s =========================
    E: pybuild pybuild:389: test: plugin distutils failed with: exit code=2: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_tomahawk/build; python3.11 -m pytest {build_dir}/tests/internal
    dh_auto_test: error: pybuild --test -i python{version} -p "3.12 3.11" returned exit code 13


    The full build log is available from: http://qa-logs.debian.net/2024/03/19/tomahawk_0.7.1-2.1_unstable.log

    All bugs filed during this archive rebuild are listed at: https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240319;users=lucas@debian.org
    or: https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240319&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

    A list of current common problems and possible solutions is available at http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

    If you reassign this bug to another package, please mark it as 'affects'-ing this package. See https://www.debian.org/Bugs/server-control#affects

    If you fail to reproduce this, please provide a build log and diff it with mine so that we can identify if something relevant changed in the meantime.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)