[Python-modules-team] Bug#997472: flask-script: FTBFS: dh_auto_test: error: pybuild --test -i python{version} -p 3.9 returned exit code 13

Lucas Nussbaum lucas at debian.org
Sat Oct 23 21:39:16 BST 2021


Source: flask-script
Version: 2.0.6-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20211023 ftbfs-bookworm

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_update_autotools_config -O--buildsystem=pybuild
>    dh_autoreconf -O--buildsystem=pybuild
>    dh_auto_configure -O--buildsystem=pybuild
> I: pybuild base:232: python3.9 setup.py config 
> running config
>    dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:232: /usr/bin/python3 setup.py build 
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_flask-script/build/flask_script
> copying flask_script/cli.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_flask-script/build/flask_script
> copying flask_script/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_flask-script/build/flask_script
> copying flask_script/_compat.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_flask-script/build/flask_script
> copying flask_script/commands.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_flask-script/build/flask_script
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:232: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_flask-script/build; python3.9 -m pytest "tests.py"
> ============================= test session starts ==============================
> platform linux -- Python 3.9.7, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>
> collected 0 items / 1 error
> 
> ==================================== ERRORS ====================================
> ______ ERROR collecting .pybuild/cpython3_3.9_flask-script/build/tests.py ______
> ImportError while importing test module '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_flask-script/build/tests.py'.
> Hint: make sure your test modules/packages have valid Python names.
> Traceback:
> /usr/lib/python3.9/importlib/__init__.py:127: in import_module
>     return _bootstrap._gcd_import(name[level:], package, level)
> tests.py:8: in <module>
>     from flask_script._compat import StringIO, text_type
> flask_script/__init__.py:15: in <module>
>     from flask._compat import text_type
> E   ModuleNotFoundError: No module named 'flask._compat'
> =========================== short test summary info ============================
> ERROR tests.py
> !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
> =============================== 1 error in 0.22s ===============================
> E: pybuild pybuild:354: test: plugin distutils failed with: exit code=2: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_flask-script/build; python3.9 -m pytest "tests.py"
> dh_auto_test: error: pybuild --test -i python{version} -p 3.9 returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2021/10/23/flask-script_2.0.6-2_unstable.log

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 marking 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 Python-modules-team mailing list