Closed eap closed 1 year ago
My suggestion would be to add a condensed version of this issue to the known issues section in the documentation, and then update the section for configuring a new site accordingly so that we can close this issue.
@climbfuji - Since #594 the install instructions for ubuntu are unified making the debugging notes in this issue unnecessary. In #647 I'm adding this issue to KnownIssues.rst and we can close this issue once merged.
TLDR:
This is a tracking bug largely to document what is now a known issue. In the immediate term we will document a workaround for this limitation for most users we will recommend the continued use of tcl based modules.
Issue description:
spack modules are authored for recent versions of lmod (7.0+) and include the
depends_on
directive to establish relationships between modules. Ubuntu 22.04's packaged version of lmod is 6.6 and does not include thedepends_on
directive. Using lmod 6.6 to load spack modules may lead to the errorUnable to load module ... attempt to call global 'depends_on' (a nil value)
. See full output below:Verifying Ubuntu's lmod version
Workarounds
Use tcl modules
You can do this by following the instructions for Ubuntu 20.04 LTS in the spack-stack docs. Shortly, use
apt install -y environment-modules
instead of lmod, and do not run thesed -i 's/tcl/lmod/g'
in step 7 of "Creating a new environment".Manually install lmod
For more info see this: https://github.com/JCSDA/spack-stack/blob/develop/configs/sites/aws-pcluster/README.md#prerequisites