• Bug#1098619: pytrydan: FTBFS: E assert 1 == 0

    From Santiago Vila@21:1/5 to All on Sat Feb 22 00:40:13 2025
    Package: src:pytrydan
    Version: 0.8.1-2
    Severity: serious
    Tags: ftbfs trixie sid

    Dear maintainer:

    During a rebuild of all packages in unstable, your package failed to build:

    --------------------------------------------------------------------------------
    [...]
    debian/rules clean
    dh clean --buildsystem=pybuild
    debian/rules override_dh_auto_clean
    make[1]: Entering directory '/<<PKGBUILDDIR>>'
    dh_auto_clean
    rm -rf pytrydan.egg-info/ docs/_build
    make[1]: Leaving directory '/<<PKGBUILDDIR>>'
    dh_autoreconf_clean -O--buildsystem=pybuild
    dh_clean -O--buildsystem=pybuild
    debian/rules binary
    dh binary --buildsystem=pybuild
    dh_update_autotools_config -O--buildsystem=pybuild
    dh_autoreconf -O--buildsystem=pybuild
    dh_auto_configure -O--buildsystem=pybuild
    debian/rules override_dh_auto_build
    make[1]: Entering directory '/<<PKGBUILDDIR>>'
    dh_auto_build override_dh_auto_build --buildsystem=pybuild
    I: pybuild plugin_pyproject:129: Building wheel for python3.12 with "build" module
    I: pybuild base:311: python3.12 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pytrydan
    * Building wheel...
    Successfully built pytrydan-0.8.1-py3-none-any.whl
    I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.12 with "installer" module
    I: pybuild plugin_pyproject:129: Building wheel for python3.13 with "build" module
    I: pybuild base:311: python3.13 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pytrydan
    * Building wheel...
    Successfully built pytrydan-0.8.1-py3-none-any.whl
    I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.13 with "installer" module
    cd docs; PYTHONPATH=/<<PKGBUILDDIR>>/src LC_ALL=C.UTF-8 LANGUAGE=C.UTF-8 sphinx-build -bhtml -d _build/doctrees . _build/html
    Running Sphinx v8.1.3
    loading translations [en]... done
    making output directory... done
    Converting `source_suffix = ['.rst', '.md']` to `source_suffix = {'.rst': 'restructuredtext', '.md': 'restructuredtext'}`.
    myst v4.0.1: MdParserConfig(commonmark_only=False, gfm_only=False, enable_extensions=set(), disable_syntax=[], all_links_external=False, links_external_new_tab=False, url_schemes=('http', 'https', 'mailto', 'ftp'), ref_domains=None, fence_as_directive=
    set(), number_code_blocks=[], title_to_header=False, heading_anchors=0, heading_slug_func=None, html_meta={}, footnote_sort=True, footnote_transition=True, words_per_minute=200, substitutions={}, linkify_fuzzy_links=True, dmath_allow_labels=True, dmath_
    allow_space=True, dmath_allow_digits=True, dmath_double_inline=False, update_mathjax=True, mathjax_classes='tex2jax_process|mathjax_process|math|output_area', enable_checkboxes=False, suppress_warnings=[], highlight_code_blocks=True)
    building [mo]: targets for 0 po files that are out of date
    writing output...
    building [html]: targets for 5 source files that are out of date
    updating environment: [new config] 5 added, 0 changed, 0 removed
    reading sources... [ 20%] changelog
    reading sources... [ 40%] contributing
    reading sources... [ 60%] index
    reading sources... [ 80%] installation
    reading sources... [100%] usage

    /<<PKGBUILDDIR>>/README.md:4: ERROR: Document or section may not begin with a transition. [docutils]
    looking for now-outdated files... none found
    pickling environment... done
    checking consistency... done
    preparing documents... done
    copying assets...
    copying static files...
    Writing evaluated template result to /<<PKGBUILDDIR>>/docs/_build/html/_static/documentation_options.js
    Writing evaluated template result to /<<PKGBUILDDIR>>/docs/_build/html/_static/basic.css
    Writing evaluated template result to /<<PKGBUILDDIR>>/docs/_build/html/_static/language_data.js
    copying static files: done
    copying extra files...
    copying extra files: done
    copying assets: done
    writing output... [ 20%] changelog
    writing output... [ 40%] contributing
    writing output... [ 60%] index
    writing output... [ 80%] installation
    writing output... [100%] usage

    generating indices... genindex done
    writing additional pages... search done
    dumping search index in English (code: en)... done
    dumping object inventory... done
    build succeeded, 1 warning.

    The HTML pages are in _build/html.
    make[1]: Leaving directory '/<<PKGBUILDDIR>>'
    dh_auto_test -O--buildsystem=pybuild
    I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pytrydan/build; python3.12 -m pytest --no-cov
    /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:207: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
    The event loop scope for asynchronous fixtures will default to the fixture caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to function scope. Set the default fixture loop scope explicitly in order to
    avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

    warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET)) ============================= test session starts ==============================
    platform linux -- Python 3.12.9, pytest-8.3.4, pluggy-1.5.0 -- /usr/bin/python3.12
    cachedir: .pytest_cache
    rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pytrydan/build
    configfile: pyproject.toml
    plugins: asyncio-0.25.1, typeguard-4.4.1, syrupy-4.8.1, cov-5.0.0, anyio-4.8.0, respx-0.21.1
    asyncio: mode=Mode.STRICT, asyncio_default_fixture_loop_scope=None
    collecting ... collected 6 items

    tests/test_cli.py::test_help FAILED [ 16%] tests/test_dunder_main.py::test_can_run_as_python_module FAILED [ 33%] tests/test_endpoints.py::test_bad_status PASSED [ 50%] tests/test_endpoints.py::test_status PASSED [ 66%] tests/test_endpoints.py::test_status_charging PASSED [ 83%] tests/test_methods.py::test_binary_sensors PASSED [100%]

    =================================== FAILURES ===================================
    __________________________________ test_help ___________________________________

    def test_help():
    """The help message includes the CLI name."""
    result = runner.invoke(app, ["--help"])
    assert result.exit_code == 0
    E assert 1 == 0
    E + where 1 = <Result TypeError("Parameter.make_metavar() missing 1 required positional argument: 'ctx'")>.exit_code

    tests/test_cli.py:11: AssertionError
    ________________________ test_can_run_as_python_module _________________________

    def test_can_run_as_python_module():
    """Run the CLI as a Python module."""
    result = subprocess.run(
    [sys.executable, "-m", "pytrydan", "--help"], # noqa S603,S607
    check=True,
    capture_output=True,
    )

    tests/test_dunder_main.py:7:
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

    input = None, capture_output = True, timeout = None, check = True
    popenargs = (['/usr/bin/python3.12', '-m', 'pytrydan', '--help'],)
    kwargs = {'stderr': -1, 'stdout': -1}
    process = <Popen: returncode: 1 args: ['/usr/bin/python3.12', '-m', 'pytrydan', '--help']>
    stdout = b' \n Usage: pytrydan [OPTIONS] COMMAND... \n \n'
    stderr = b'\xe2\x95\xad\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94...4\x80\xe2\x94\x80\xe2\x95\xaf\nTypeError: Parameter.make_metavar() missing 1 required positional argument: \n\'ctx\'\n'
    retcode = 1

    def run(*popenargs,
    input=None, capture_output=False, timeout=None, check=False, **kwargs):
    """Run command with arguments and return a CompletedProcess instance.

    The returned instance will have attributes args, returncode, stdout and
    stderr. By default, stdout and stderr are not captured, and those attributes
    will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them,
    or pass capture_output=True to capture both.

    If check is True and the exit code was non-zero, it raises a
    CalledProcessError. The CalledProcessError object will have the return code
    in the returncode attribute, and output & stderr attributes if those streams
    were captured.

    If timeout (seconds) is given and the process takes too long,
    a TimeoutExpired exception will be raised.

    There is an optional argument "input", allowing you to
    pass bytes or a string to the subprocess's stdin. If you use this argument
    you may not also use the Popen constructor's "stdin" argument, as
    it will be used internally.

    By default, all communication is in bytes, and therefore any "input" should
    be bytes, and the stdout and stderr will be bytes. If in text mode, any
    "input" should be a string, and stdout and stderr will be strings decoded
    according to locale encoding, or by "encoding" if set. Text mode is
    triggered by setting any of text, encoding, errors or universal_newlines.

    The other arguments are the same as for the Popen constructor.
    """
    if input is not None:
    if kwargs.get('stdin') is not None:
    raise ValueError('stdin and input arguments may not both be used.')
    kwargs['stdin'] = PIPE

    if capture_output:
    if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
    raise ValueError('stdout and stderr arguments may not be used '
    'with capture_output.')
    kwargs['stdout'] = PIPE
    kwargs['stderr'] = PIPE

    with Popen(*popenargs, **kwargs) as process:
    try:
    stdout, stderr = process.communicate(input, timeout=timeout)
    except TimeoutExpired as exc:
    process.kill()
    if _mswindows:
    # Windows accumulates the output in a single blocking
    # read() call run on child threads, with the timeout
    # being done in a join() on those threads. communicate()
    # _after_ kill() is required to collect that and add it
    # to the exception.
    exc.stdout, exc.stderr = process.communicate()
    else:
    # POSIX _communicate already populated the output so
    # far into the TimeoutExpired exception.
    process.wait()
    raise
    except: # Including KeyboardInterrupt, communicate handled that.
    process.kill()
    # We don't call process.wait() as .__exit__ does that for us.
    raise
    retcode = process.poll()
    if check and retcode:
    raise CalledProcessError(retcode, process.args,
    output=stdout, stderr=stderr)
    E subprocess.CalledProcessError: Command '['/usr/bin/python3.12', '-m', 'pytrydan', '--help']' returned non-zero exit status 1.

    /usr/lib/python3.12/subprocess.py:573: CalledProcessError =========================== short test summary info ============================
    FAILED tests/test_cli.py::test_help - assert 1 == 0
    FAILED tests/test_dunder_main.py::test_can_run_as_python_module - subprocess....
    ========================= 2 failed, 4 passed in 0.43s ==========================
    E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pytrydan/build; python3.12 -m pytest --no-cov
    I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pytrydan/build; python3.13 -m pytest --no-cov
    /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:207: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
    The event loop scope for asynchronous fixtures will default to the fixture caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to function scope. Set the default fixture loop scope explicitly in order to
    avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

    warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET)) ============================= test session starts ==============================
    platform linux -- Python 3.13.2, pytest-8.3.4, pluggy-1.5.0 -- /usr/bin/python3.13
    cachedir: .pytest_cache
    rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pytrydan/build
    configfile: pyproject.toml
    plugins: asyncio-0.25.1, typeguard-4.4.1, syrupy-4.8.1, cov-5.0.0, anyio-4.8.0, respx-0.21.1
    asyncio: mode=Mode.STRICT, asyncio_default_fixture_loop_scope=None
    collecting ... collected 6 items

    tests/test_cli.py::test_help FAILED [ 16%] tests/test_dunder_main.py::test_can_run_as_python_module FAILED [ 33%] tests/test_endpoints.py::test_bad_status PASSED [ 50%] tests/test_endpoints.py::test_status PASSED [ 66%] tests/test_endpoints.py::test_status_charging PASSED [ 83%] tests/test_methods.py::test_binary_sensors PASSED [100%]

    =================================== FAILURES ===================================
    __________________________________ test_help ___________________________________

    def test_help():
    """The help message includes the CLI name."""
    result = runner.invoke(app, ["--help"])
    assert result.exit_code == 0
    E assert 1 == 0
    E + where 1 = <Result TypeError("Parameter.make_metavar() missing 1 required positional argument: 'ctx'")>.exit_code

    tests/test_cli.py:11: AssertionError
    ________________________ test_can_run_as_python_module _________________________

    def test_can_run_as_python_module():
    """Run the CLI as a Python module."""
    result = subprocess.run(
    [sys.executable, "-m", "pytrydan", "--help"], # noqa S603,S607
    check=True,
    capture_output=True,
    )

    tests/test_dunder_main.py:7:
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

    input = None, capture_output = True, timeout = None, check = True
    popenargs = (['/usr/bin/python3.13', '-m', 'pytrydan', '--help'],)
    kwargs = {'stderr': -1, 'stdout': -1}
    process = <Popen: returncode: 1 args: ['/usr/bin/python3.13', '-m', 'pytrydan', '--help']>
    stdout = b' \n Usage: pytrydan [OPTIONS] COMMAND... \n \n'
    stderr = b'\xe2\x95\xad\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94...4\x80\xe2\x94\x80\xe2\x95\xaf\nTypeError: Parameter.make_metavar() missing 1 required positional argument: \n\'ctx\'\n'
    retcode = 1

    def run(*popenargs,
    input=None, capture_output=False, timeout=None, check=False, **kwargs):
    """Run command with arguments and return a CompletedProcess instance.

    The returned instance will have attributes args, returncode, stdout and
    stderr. By default, stdout and stderr are not captured, and those attributes
    will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them,
    or pass capture_output=True to capture both.

    If check is True and the exit code was non-zero, it raises a
    CalledProcessError. The CalledProcessError object will have the return code
    in the returncode attribute, and output & stderr attributes if those streams
    were captured.

    If timeout (seconds) is given and the process takes too long,
    a TimeoutExpired exception will be raised.

    There is an optional argument "input", allowing you to
    pass bytes or a string to the subprocess's stdin. If you use this argument
    you may not also use the Popen constructor's "stdin" argument, as
    it will be used internally.

    By default, all communication is in bytes, and therefore any "input" should
    be bytes, and the stdout and stderr will be bytes. If in text mode, any
    "input" should be a string, and stdout and stderr will be strings decoded
    according to locale encoding, or by "encoding" if set. Text mode is
    triggered by setting any of text, encoding, errors or universal_newlines.

    The other arguments are the same as for the Popen constructor.
    """
    if input is not None:
    if kwargs.get('stdin') is not None:
    raise ValueError('stdin and input arguments may not both be used.')
    kwargs['stdin'] = PIPE

    if capture_output:
    if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
    raise ValueError('stdout and stderr arguments may not be used '
    'with capture_output.')
    kwargs['stdout'] = PIPE
    kwargs['stderr'] = PIPE

    with Popen(*popenargs, **kwargs) as process:
    try:
    stdout, stderr = process.communicate(input, timeout=timeout)
    except TimeoutExpired as exc:
    process.kill()
    if _mswindows:
    # Windows accumulates the output in a single blocking
    # read() call run on child threads, with the timeout
    # being done in a join() on those threads. communicate()
    # _after_ kill() is required to collect that and add it
    # to the exception.
    exc.stdout, exc.stderr = process.communicate()
    else:
    # POSIX _communicate already populated the output so
    # far into the TimeoutExpired exception.
    process.wait()
    raise
    except: # Including KeyboardInterrupt, communicate handled that.
    process.kill()
    # We don't call process.wait() as .__exit__ does that for us.
    raise
    retcode = process.poll()
    if check and retcode:
    raise CalledProcessError(retcode, process.args,
    output=stdout, stderr=stderr)
    E subprocess.CalledProcessError: Command '['/usr/bin/python3.13', '-m', 'pytrydan', '--help']' returned non-zero exit status 1.

    /usr/lib/python3.13/subprocess.py:579: CalledProcessError =========================== short test summary info ============================
    FAILED tests/test_cli.py::test_help - assert 1 == 0
    FAILED tests/test_dunder_main.py::test_can_run_as_python_module - subprocess....
    ========================= 2 failed, 4 passed in 0.41s ==========================
    E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_pytrydan/build; python3.13 -m pytest --no-cov
    dh_auto_test: error: pybuild --test -i python{version} -p "3.12 3.13" returned exit code 13
    make: *** [debian/rules:7: binary] Error 25
    dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 --------------------------------------------------------------------------------

    The above is just how the build ends and not necessarily the most relevant part.
    If required, the full build log is available here:

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

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

    Thanks.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Thu Mar 20 13:30:02 2025
    This is a multi-part message in MIME format...

    Your message dated Thu, 20 Mar 2025 12:20:09 +0000
    with message-id <2aigwvkzna6c4srgbxwikpktv7khterlomsyet5ebh3qvi2k6o@it2vdjyqqptp>
    and subject line Fixed via changes to build dependencies
    has caused the Debian Bug report #1098619,
    regarding pytrydan: FTBFS: E assert 1 == 0
    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 owner@bugs.debian.org
    immediately.)


    --
    1098619: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1098619
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 21 Feb 2025 23:29:19 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-120.4 required=4.0 tests=BAYES_00,
    BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
    DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,FROMDEVELOPER,HAS_PACKAGE,
    RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_NONE,USER_IN_DKIM_WELCOMELIST,
    USER_IN_DKIM_WHITELIST,X_DEBBUGS_CC autolearn=ham autolearn_force=no
    version=3.4.6-bugs.debian.org_2005_01_02
    X-Spam-Bayes: score:0.0000 Tokens: new, 24; hammy, 150; neutral, 576; spammy,
    0. spammytokens: hammytokens:0.000-+--python3, 0.000-+--trixie,
    0.000-+--pkgbuilddir, 0.000-+--PKGBUILDDIR, 0.000-+--sk:dh_auto Return-path: <sanvila@debian.org>
    Received: from mitropoulos.debian.org ([2001:648:2ffc:deb:216:6