[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#994567: black: autopkgtest regression: ModuleNotFoundError: No module named 'aiohttp_cors'



Source: black
Version: 21.4b2-1
X-Debbugs-CC: debian-ci@lists.debian.org
Severity: serious
User: debian-ci@lists.debian.org
Usertags: regression

Dear maintainer(s),

With a recent upload of black the autopkgtest of black fails in testing
on amd64 when that autopkgtest is run with the binary packages of black
from unstable. It passes when run with only packages from testing. In
tabular form:

                       pass            fail
black                  from testing    21.4b2-1
all others             from testing    from testing

I copied some of the output at the bottom of this report, are you
missing (test) dependencies? On top of fixing amd64, can you please stop
"PASSING" on the other architectures? If you can't test there, please
use the (relatively new) Architecture [0] field in the autopkgtest
control file to skip testing on those architectures, or add the
skippable restriction and exit with code 77.

Currently this regression is blocking the migration to testing [1]. Can
you please investigate the situation and fix it?

More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[0]
https://salsa.debian.org/ci-team/autopkgtest/-/raw/master/doc/README.package-tests.rst
[1] https://qa.debian.org/excuses.php?package=black

https://ci.debian.net/data/autopkgtest/testing/amd64/b/black/15301566/log.gz

==================================== ERRORS
====================================
____________________ ERROR collecting tests/test_blackd.py
_____________________
/usr/lib/python3/dist-packages/blackd/__init__.py:12: in <module>
    import aiohttp_cors
E   ModuleNotFoundError: No module named 'aiohttp_cors'

During handling of the above exception, another exception occurred:
tests/test_blackd.py:10: in <module>
    import blackd
/usr/lib/python3/dist-packages/blackd/__init__.py:20: in <module>
    sys.exit(-1)
E   SystemExit: -1
------------------------------- Captured stderr
--------------------------------
aiohttp dependency is not installed: No module named 'aiohttp_cors'.
Please re-install black with the '[d]' extra install to obtain
aiohttp_cors: `pip install black[d]`
____________________ ERROR collecting tests/test_format.py
_____________________
ImportError while importing test module
'/tmp/autopkgtest-lxc.nc2rafez/downtmp/autopkgtest_tmp/tests/test_format.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/test_format.py:4: in <module>
    from parameterized import parameterized
E   ModuleNotFoundError: No module named 'parameterized'
=========================== short test summary info
============================
ERROR tests/test_blackd.py - SystemExit: -1
ERROR tests/test_format.py
!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection
!!!!!!!!!!!!!!!!!!!!
======================= 1 deselected, 2 errors in 0.44s
========================
autopkgtest [03:10:26]: test testsuite: -----------------------]

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


Reply to: