['/usr/lib/python3.10/site-packages/install/_vendor/installer/src', '/build/python-black/src/black-21.12b0', '/usr/lib/python310.zip', '/usr/lib/python3.10', '/usr/lib/python3.10/lib-dynload', '/build/python-black/src/black-21.12b0/test-env/lib/python3.10/site-packages', '/usr/lib/python3.10/site-packages'] Listing '.install-cache/pkg'... Compiling '.install-cache/pkg/_black_version.py'... Listing '.install-cache/pkg/black'... Compiling '.install-cache/pkg/black/__init__.py'... Compiling '.install-cache/pkg/black/__main__.py'... Compiling '.install-cache/pkg/black/brackets.py'... Compiling '.install-cache/pkg/black/cache.py'... Compiling '.install-cache/pkg/black/comments.py'... Compiling '.install-cache/pkg/black/concurrency.py'... Compiling '.install-cache/pkg/black/const.py'... Compiling '.install-cache/pkg/black/debug.py'... Compiling '.install-cache/pkg/black/files.py'... Compiling '.install-cache/pkg/black/handle_ipynb_magics.py'... Compiling '.install-cache/pkg/black/linegen.py'... Compiling '.install-cache/pkg/black/lines.py'... Compiling '.install-cache/pkg/black/mode.py'... Compiling '.install-cache/pkg/black/nodes.py'... Compiling '.install-cache/pkg/black/numerics.py'... Compiling '.install-cache/pkg/black/output.py'... Compiling '.install-cache/pkg/black/parsing.py'... Compiling '.install-cache/pkg/black/report.py'... Compiling '.install-cache/pkg/black/rusty.py'... Compiling '.install-cache/pkg/black/strings.py'... Compiling '.install-cache/pkg/black/trans.py'... Listing '.install-cache/pkg/black-21.12b0.dist-info'... Listing '.install-cache/pkg/black_primer'... Compiling '.install-cache/pkg/black_primer/__init__.py'... Compiling '.install-cache/pkg/black_primer/cli.py'... Compiling '.install-cache/pkg/black_primer/lib.py'... Listing '.install-cache/pkg/blackd'... Compiling '.install-cache/pkg/blackd/__init__.py'... Compiling '.install-cache/pkg/blackd/middlewares.py'... Listing '.install-cache/pkg/blib2to3'... Compiling '.install-cache/pkg/blib2to3/__init__.py'... Listing '.install-cache/pkg/blib2to3/pgen2'... Compiling '.install-cache/pkg/blib2to3/pgen2/__init__.py'... Compiling '.install-cache/pkg/blib2to3/pgen2/conv.py'... Compiling '.install-cache/pkg/blib2to3/pgen2/driver.py'... Compiling '.install-cache/pkg/blib2to3/pgen2/grammar.py'... Compiling '.install-cache/pkg/blib2to3/pgen2/literals.py'... Compiling '.install-cache/pkg/blib2to3/pgen2/parse.py'... Compiling '.install-cache/pkg/blib2to3/pgen2/pgen.py'... Compiling '.install-cache/pkg/blib2to3/pgen2/token.py'... Compiling '.install-cache/pkg/blib2to3/pgen2/tokenize.py'... Compiling '.install-cache/pkg/blib2to3/pygram.py'... Compiling '.install-cache/pkg/blib2to3/pytree.py'... ============================= test session starts ============================== platform linux -- Python 3.10.1, pytest-6.2.5, py-1.11.0, pluggy-0.13.1 rootdir: /build/python-black/src/black-21.12b0, configfile: pyproject.toml collected 11 items / 6 errors / 5 selected ==================================== ERRORS ==================================== _____________________ ERROR collecting tests/test_black.py _____________________ ImportError while importing test module '/build/python-black/src/black-21.12b0/tests/test_black.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_black.py:39: in import black test-env/lib/python3.10/site-packages/black/__init__.py:39: in from black.nodes import STARS, syms, is_simple_decorator_expression test-env/lib/python3.10/site-packages/black/nodes.py:30: in from black.cache import CACHE_DIR test-env/lib/python3.10/site-packages/black/cache.py:9: in from platformdirs import user_cache_dir E ModuleNotFoundError: No module named 'platformdirs' ____________________ ERROR collecting tests/test_blackd.py _____________________ ImportError while importing test module '/build/python-black/src/black-21.12b0/tests/test_blackd.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_blackd.py:7: in from tests.util import read_data, DETERMINISTIC_HEADER tests/util.py:9: in import black test-env/lib/python3.10/site-packages/black/__init__.py:39: in from black.nodes import STARS, syms, is_simple_decorator_expression test-env/lib/python3.10/site-packages/black/nodes.py:30: in from black.cache import CACHE_DIR test-env/lib/python3.10/site-packages/black/cache.py:9: in from platformdirs import user_cache_dir E ModuleNotFoundError: No module named 'platformdirs' ____________________ ERROR collecting tests/test_format.py _____________________ ImportError while importing test module '/build/python-black/src/black-21.12b0/tests/test_format.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_format.py:7: in import black test-env/lib/python3.10/site-packages/black/__init__.py:39: in from black.nodes import STARS, syms, is_simple_decorator_expression test-env/lib/python3.10/site-packages/black/nodes.py:30: in from black.cache import CACHE_DIR test-env/lib/python3.10/site-packages/black/cache.py:9: in from platformdirs import user_cache_dir E ModuleNotFoundError: No module named 'platformdirs' _____________________ ERROR collecting tests/test_ipynb.py _____________________ ImportError while importing test module '/build/python-black/src/black-21.12b0/tests/test_ipynb.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_ipynb.py:4: in from black.handle_ipynb_magics import jupyter_dependencies_are_installed test-env/lib/python3.10/site-packages/black/__init__.py:39: in from black.nodes import STARS, syms, is_simple_decorator_expression test-env/lib/python3.10/site-packages/black/nodes.py:30: in from black.cache import CACHE_DIR test-env/lib/python3.10/site-packages/black/cache.py:9: in from platformdirs import user_cache_dir E ModuleNotFoundError: No module named 'platformdirs' ___________________ ERROR collecting tests/test_no_ipynb.py ____________________ ImportError while importing test module '/build/python-black/src/black-21.12b0/tests/test_no_ipynb.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_no_ipynb.py:4: in from tests.util import THIS_DIR tests/util.py:9: in import black test-env/lib/python3.10/site-packages/black/__init__.py:39: in from black.nodes import STARS, syms, is_simple_decorator_expression test-env/lib/python3.10/site-packages/black/nodes.py:30: in from black.cache import CACHE_DIR test-env/lib/python3.10/site-packages/black/cache.py:9: in from platformdirs import user_cache_dir E ModuleNotFoundError: No module named 'platformdirs' _____________________ ERROR collecting tests/test_trans.py _____________________ ImportError while importing test module '/build/python-black/src/black-21.12b0/tests/test_trans.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.10/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_trans.py:2: in from black.trans import iter_fexpr_spans test-env/lib/python3.10/site-packages/black/__init__.py:39: in from black.nodes import STARS, syms, is_simple_decorator_expression test-env/lib/python3.10/site-packages/black/nodes.py:30: in from black.cache import CACHE_DIR test-env/lib/python3.10/site-packages/black/cache.py:9: in from platformdirs import user_cache_dir E ModuleNotFoundError: No module named 'platformdirs' =========================== short test summary info ============================ ERROR tests/test_black.py ERROR tests/test_blackd.py ERROR tests/test_format.py ERROR tests/test_ipynb.py ERROR tests/test_no_ipynb.py ERROR tests/test_trans.py !!!!!!!!!!!!!!!!!!! Interrupted: 6 errors during collection !!!!!!!!!!!!!!!!!!!! ============================== 6 errors in 2.62s =============================== ==> ERROR: A failure occurred in check().  Aborting...