$ spack clean -ab
$ spack style
==> Installing py-setuptools-62.4.0-45naueauwpjyndinwns2vmuslvtpfjgv
==> No binary for py-setuptools-62.4.0-45naueauwpjyndinwns2vmuslvtpfjgv found: installing from source
==> Fetching https://pypi.io/packages/source/s/setuptools/setuptools-62.4.0.tar.gz
==> No patches needed for py-setuptools
==> py-setuptools: Executing phase: 'install'
==> Error: ProcessError: Command exited with status 1:
'/tmp/py38/bin/python3' '-m' 'pip' '-vvv' '--no-input' '--no-cache-dir' '--disable-pip-version-check' 'install' '--no-deps' '--ignore-installed' '--no-build-isolation' '--no-warn-script-location' '--no-index' '--prefix=/home/culpo/.spack/bootstrap/store/linux-ubuntu20.04-x86_64/gcc-9.4.0/py-setuptools-62.4.0-45naueauwpjyndinwns2vmuslvtpfjgv' '.'
1 warning found in build log:
40 File "/tmp/culpo/spack-stage/spack-stage-py-setuptools-62.4.0-45naueauwpjyndinwns2vmuslvtpfjgv/spack-src/setuptools/dist.py", line 899, in <la
mbda>
41 loaded = map(lambda e: e.load(), filtered)
42 File "/tmp/culpo/spack-stage/spack-stage-py-setuptools-62.4.0-45naueauwpjyndinwns2vmuslvtpfjgv/spack-src/setuptools/_vendor/importlib_metadata
/__init__.py", line 196, in load
43 return functools.reduce(getattr, attrs, module)
44 AttributeError: type object 'Distribution' has no attribute '_finalize_feature_opts'
45 Preparing metadata (pyproject.toml): finished with status 'error'
>> 46 WARNING: Discarding file:///tmp/culpo/spack-stage/spack-stage-py-setuptools-62.4.0-45naueauwpjyndinwns2vmuslvtpfjgv/spack-src. Command errored out
with exit status 1: /tmp/py38/bin/python3 /home/culpo/.spack/bootstrap/store/linux-ubuntu20.04-x86_64/gcc-9.4.0/py-pip-21.3.1-gn6einteae67vuyoqdn
gv2gkfbr45nvy/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpzn43avit Check the
logs for full command output.
47 ERROR: Command errored out with exit status 1: /tmp/py38/bin/python3 /home/culpo/.spack/bootstrap/store/linux-ubuntu20.04-x86_64/gcc-9.4.0/py-pip-
21.3.1-gn6einteae67vuyoqdngv2gkfbr45nvy/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel
/tmp/tmpzn43avit Check the logs for full command output.
48 Exception information:
49 Traceback (most recent call last):
50 File "/home/culpo/.spack/bootstrap/store/linux-ubuntu20.04-x86_64/gcc-9.4.0/py-pip-21.3.1-gn6einteae67vuyoqdngv2gkfbr45nvy/lib/python3.8/site-pa
ckages/pip/_internal/cli/base_command.py", line 164, in exc_logging_wrapper
51 status = run_func(*args)
52 File "/home/culpo/.spack/bootstrap/store/linux-ubuntu20.04-x86_64/gcc-9.4.0/py-pip-21.3.1-gn6einteae67vuyoqdngv2gkfbr45nvy/lib/python3.8/site-pa
ckages/pip/_internal/cli/req_command.py", line 205, in wrapper
See build log for details:
/tmp/culpo/spack-stage/spack-stage-py-setuptools-62.4.0-45naueauwpjyndinwns2vmuslvtpfjgv/spack-build-out.txt
Steps to reproduce
Errors like this one started in our CI workflows a few hours ago. I could reproduce the same error on my laptop, starting from a clean environment:
Error message
Information on your system
Similar reports in other repositories:
importlib_metadatais shadowing actual package pypa/setuptools#3113General information
spack debug reportand reported the version of Spack/Python/Platform