spack: "spack load" broken with error "bash: /Modules/bin/modulecmd: No such file or directory"

Apparently, the current spack in the repo is broken on Ubuntu 18.04

Following the turorial fails:

git clone https://github.com/spack/spack.git
. spack/share/spack/setup-env.sh
spack install hdf5

git clone https://github.com/spack/spack.git . spack/share/spack/setup-env.sh spack install hdf5

Besides reporting the issue, I have the following questions:

  1. What can I do to recover my already compiled modules? I really hate to wait another day to have them compiled again, once downgrade to a working version of spack.
  2. Do you plan to start publishing a “stable” version even at the cost of a little outdated module?

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 17 (8 by maintainers)

Commits related to this issue

Most upvoted comments

perhaps this problem is caused by _sp_module_prefix in share/spack/setup-env.sh: 229 and 231, which maybe typos. @adamjstewart

when I modified file share/spack/setup-env.sh and printed _sp_module_prefix, it showed nothing.

then I tried spack --print-shell-vars sh,modules, and the output showed that there was no _sp_module_prefix:

_sp_sys_type='linux-centos7-x86_64'
_sp_tcl_root='/home/ABC/spack/share/spack/modules'
_sp_lmod_root='/home/ABC/spack/share/spack/lmod'
_sp_dotkit_root='/home/ABC/spack/share/spack/dotkit'
module_prefix='/home/ABC/spack/opt/spack/linux-centos7-x86_64/gcc-4.8.5/environment-modules-3.2.10-zdnuljvtjsvdx5nrnfrjg4oziu2izut4'

so i did followings based on commit 25062d:

  1. changed _sp_module_prefix of lines share/spack/setup-env.sh: 229 and 231 into module_prefix;
  2. opened a new terminal, and tried . spack/share/spack/setup-env.sh and spack load, it worked again.