[Debian-med-packaging] Bug#1031434: conda-package-handling: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.11 returned exit code 13

Lucas Nussbaum lucas at debian.org
Fri Feb 17 05:30:57 GMT 2023


Source: conda-package-handling
Version: 2.0.1-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20230216 ftbfs-bookworm

Hi,

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


Relevant part (hopefully):
>  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
> I: pybuild base:240: python3.11 setup.py config 
> running config
>    dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:240: /usr/bin/python3 setup.py build 
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/conda_package_handling
> copying src/conda_package_handling/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/conda_package_handling
> copying src/conda_package_handling/tarball.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/conda_package_handling
> copying src/conda_package_handling/cli.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/conda_package_handling
> copying src/conda_package_handling/__main__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/conda_package_handling
> copying src/conda_package_handling/api.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/conda_package_handling
> copying src/conda_package_handling/interface.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/conda_package_handling
> copying src/conda_package_handling/exceptions.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/conda_package_handling
> copying src/conda_package_handling/conda_fmt.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/conda_package_handling
> copying src/conda_package_handling/validate.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/conda_package_handling
> copying src/conda_package_handling/streaming.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/conda_package_handling
> copying src/conda_package_handling/utils.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/conda_package_handling
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:240: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build; python3.11 -m pytest tests
> ============================= test session starts ==============================
> platform linux -- Python 3.11.2, pytest-7.2.1, pluggy-1.0.0+repack
> rootdir: /<<PKGBUILDDIR>>, configfile: setup.cfg
> plugins: mock-3.8.2
> collected 39 items / 1 error
> 
> ==================================== ERRORS ====================================
> ____ ERROR collecting .pybuild/cpython3_3.11/build/tests/test_interface.py _____
> ImportError while importing test module '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/tests/test_interface.py'.
> Hint: make sure your test modules/packages have valid Python names.
> Traceback:
> /usr/lib/python3.11/importlib/__init__.py:126: in import_module
>     return _bootstrap._gcd_import(name[level:], package, level)
> tests/test_interface.py:12: in <module>
>     from conda_package_handling.conda_fmt import CondaFormat_v2
> conda_package_handling/conda_fmt.py:15: in <module>
>     import zstandard
> /usr/lib/python3/dist-packages/zstandard/__init__.py:39: in <module>
>     from .backend_c import *  # type: ignore
> E   ImportError: zstd C API versions mismatch; Python bindings were not compiled/linked against expected zstd version (10504 returned by the lib, 10502 hardcoded in zstd headers, 10502 hardcoded in the cext)
> =============================== warnings summary ===============================
> ../../../../../../usr/lib/python3/dist-packages/_pytest/config/__init__.py:1294
>   /usr/lib/python3/dist-packages/_pytest/config/__init__.py:1294: PytestConfigWarning: Unknown config option: env
>   
>     self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")
> 
> ../../../../../../usr/lib/python3/dist-packages/conda_package_streaming/package_streaming.py:19
>   /usr/lib/python3/dist-packages/conda_package_streaming/package_streaming.py:19: UserWarning: zstandard could not be imported. Running without .conda support.
>     warnings.warn("zstandard could not be imported. Running without .conda support.")
> 
> conda_package_handling/api.py:29
>   /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/conda_package_handling/api.py:29: UserWarning: Install zstandard Python bindings for .conda support
>     _warnings.warn("Install zstandard Python bindings for .conda support")
> 
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> - generated xml file: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/junit.xml -
> =========================== short test summary info ============================
> ERROR tests/test_interface.py
> !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
> ========================= 3 warnings, 1 error in 0.17s =========================
> E: pybuild pybuild:388: test: plugin distutils failed with: exit code=2: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build; python3.11 -m pytest tests
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.11 returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2023/02/16/conda-package-handling_2.0.1-2_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20230216;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20230216&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.



More information about the Debian-med-packaging mailing list