-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Bootstrapping on ubuntu:18.04, python3-distutils not installed by default #22606
Copy link
Copy link
Closed
Closed
Copy link
Labels
bootstrapAnything that has to do with Spack building its own dependencies.Anything that has to do with Spack building its own dependencies.bugSomething isn't workingSomething isn't workingimpact-low
Description
Steps to reproduce the issue
$ docker run -it -w /root ubuntu:18.04
# apt-get update -qq && apt-get install -yqq python3 libpython3-dev git gcc g++ gfortran make file curl wget bison
# git clone --depth 1 -b develop https://github.com/spack/spack.git
# export PATH="/root/spack/bin:$PATH"
# wget -qO- "https://cmake.org/files/v3.20/cmake-3.20.0-linux-x86_64.tar.gz" | tar --strip-components=1 -xz -C /usr/local
# spack external find --not-buildable cmake bison
# spack --debug --stacktrace solve zlib
lib/spack/spack/installer.py:281 ==> [2021-03-29-13:36:58.006190] No binary for clingo-bootstrap-spack-suq7ubei4oyla73cmpnsnph5akp4omif found: installing from source
lib/spack/spack/package.py:1522 ==> [2021-03-29-13:36:58.028352] Warning: Missing a source id for [email protected]
lib/spack/spack/compilers/__init__.py:741 ==> [2021-03-29-13:36:58.324252] [TOOLCHAIN] MATCH Gcc
lib/spack/spack/util/executable.py:182 ==> [2021-03-29-13:36:58.338027] '/usr/bin/python3.6' '-c' 'from distutils.sysconfig import get_config_var; print(get_config_var('"'"'prefix'"'"'))'
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'distutils.sysconfig'
lib/spack/spack/util/executable.py:182 ==> [2021-03-29-13:36:58.365391] '/usr/bin/python3.6' '-c' 'from distutils.sysconfig import get_config_var; print(get_config_var('"'"'CC'"'"'))'
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'distutils.sysconfig'
lib/spack/spack/stage.py:313 ==> [2021-03-29-13:36:58.400220] Creating stage lock spack-stage-clingo-bootstrap-spack-suq7ubei4oyla73cmpnsnph5akp4omif
lib/spack/spack/error.py:55 ==> [2021-03-29-13:36:58.409111] Error: ProcessError: Command exited with status 1:
'/usr/bin/python3.6' '-c' 'from distutils.sysconfig import get_config_var; print(get_config_var('"'"'CC'"'"'))'
Traceback (most recent call last):
File "/root/spack/lib/spack/spack/build_environment.py", line 855, in _setup_pkg_and_run
context=context)
File "/root/spack/lib/spack/spack/build_environment.py", line 744, in setup_package
modifications_from_dependencies(pkg.spec, context=context)
File "/root/spack/lib/spack/spack/build_environment.py", line 831, in modifications_from_dependencies
getattr(dpkg, method)(env, spec)
File "/root/spack/var/spack/repos/builtin/packages/python/package.py", line 884, in setup_dependent_build_environment
config_link = self.get_config_var(link_var)
File "/root/spack/var/spack/repos/builtin/packages/python/package.py", line 680, in get_config_var
File "/root/spack/lib/spack/spack/util/executable.py", line 218, in __call__
proc.returncode, long_msg)
spack.util.executable.ProcessError: Command exited with status 1:
'/usr/bin/python3.6' '-c' 'from distutils.sysconfig import get_config_var; print(get_config_var('"'"'CC'"'"'))'
lib/spack/spack/installer.py:1301 ==> [2021-03-29-13:36:58.409507] Flagging clingo-bootstrap-spack-suq7ubei4oyla73cmpnsnph5akp4omif as failed: ProcessError: Command exited with status 1:
'/usr/bin/python3.6' '-c' 'from distutils.sysconfig import get_config_var; print(get_config_var('"'"'CC'"'"'))'
lib/spack/spack/stage.py:313 ==> [2021-03-29-13:36:58.412691] Creating stage lock spack-stage-clingo-bootstrap-spack-suq7ubei4oyla73cmpnsnph5akp4omif
lib/spack/spack/main.py:771 ==> [2021-03-29-13:36:58.412935] ChildError: ProcessError: Command exited with status 1:
'/usr/bin/python3.6' '-c' 'from distutils.sysconfig import get_config_var; print(get_config_var('"'"'CC'"'"'))'Error Message
ModuleNotFoundError: No module named 'distutils.sysconfig'
Information on your system
- Spack: 0.16.1
- Python: 3.6.9
- Platform: linux-ubuntu18.04-zen2
- Concretizer: original
I have to install python3-distutils with apt to make this work:
apt-get install python3-distutils
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bootstrapAnything that has to do with Spack building its own dependencies.Anything that has to do with Spack building its own dependencies.bugSomething isn't workingSomething isn't workingimpact-low