Skip to content

module refresh will not generate lmod files despite config #8646

@SteVwonder

Description

@SteVwonder

module refresh only generates tcl modules despite the following being in my ~/.spack/modules.yaml:

enable::
    -lmod

(Full config pasted further down)

I was able to temporarily work around this issue by running spack module refresh --module-type lmod --delete-tree but based on the modules tutorial, this does not seem like it should be necessary.

Expected Result

→ spack module refresh
==> You are about to regenerate lmod module files for:
-- linux-rhel7-x86_64 / [email protected] -------------------------------
mfi7l5m [email protected]    oyomxdk [email protected]  ffzbok4 [email protected]            qfrwdna [email protected]  5nqkfcn [email protected]
yk6ievw [email protected]  r4e6p7x [email protected]        w5itwt6 [email protected]              vwvgnbn [email protected]       ecjbujt [email protected]
qrd3gzl [email protected]      5ugdsox [email protected]      ltnggmf [email protected]                py2bqlz [email protected]       rh7gav6 [email protected]
4wxypys [email protected]      yprcni4 [email protected]   7nr5d5a lua-luafilesystem@1_6_3  ka6syh2 [email protected]     vhzh5cf [email protected]
6idl5st [email protected]       vlje6ju [email protected]     tp6kijo [email protected]      7yuszxv [email protected]
om6ee3r [email protected]      3byxblk [email protected]   ffrwz2d [email protected]                sfsamtu [email protected]
bfjm7it [email protected]      hnkxexo [email protected]     wkyck36 [email protected]              ucx2vrv [email protected]
==> Do you want to proceed? [y/n]

Note the generation of lmod modules

Actual Result

→ spack module refresh
==> You are about to regenerate tcl module files for:
-- linux-rhel7-x86_64 / [email protected] -------------------------------
mfi7l5m [email protected]    oyomxdk [email protected]  ffzbok4 [email protected]            qfrwdna [email protected]  5nqkfcn [email protected]
yk6ievw [email protected]  r4e6p7x [email protected]        w5itwt6 [email protected]              vwvgnbn [email protected]       ecjbujt [email protected]
qrd3gzl [email protected]      5ugdsox [email protected]      ltnggmf [email protected]                py2bqlz [email protected]       rh7gav6 [email protected]
4wxypys [email protected]      yprcni4 [email protected]   7nr5d5a lua-luafilesystem@1_6_3  ka6syh2 [email protected]     vhzh5cf [email protected]
6idl5st [email protected]       vlje6ju [email protected]     tp6kijo [email protected]      7yuszxv [email protected]
om6ee3r [email protected]      3byxblk [email protected]   ffrwz2d [email protected]                sfsamtu [email protected]
bfjm7it [email protected]      hnkxexo [email protected]     wkyck36 [email protected]              ucx2vrv [email protected]
==> Do you want to proceed? [y/n]

Note the generation of tcl modules

Steps to reproduce the issue

# Clean clone of spack
# Edit ~/.spack/modules.yaml (see exact config further down)
$ spack install lmod emacs tmux # these are the packages that I happened to install first. I believe only lmod is necessary
$ spack module refresh

Information on your system

This includes:

  1. which platform you are using

Red Hat 7.5 (LLNL-managed desktop)

  1. any relevant configuration detail (custom packages.yaml or modules.yaml, etc.)

My modules.yaml:

modules:
  enable::
    - lmod
  lmod:
    core_compilers:
      - '[email protected]'
    hierarchy:
      - mpi

Output of spack config get modules:

modules:
  enable:
  - lmod
  prefix_inspections:
    bin:
    - PATH
    man:
    - MANPATH
    share/man:
    - MANPATH
    share/aclocal:
    - ACLOCAL_PATH
    lib:
    - LIBRARY_PATH
    - LD_LIBRARY_PATH
    lib64:
    - LIBRARY_PATH
    - LD_LIBRARY_PATH
    include:
    - CPATH
    lib/pkgconfig:
    - PKG_CONFIG_PATH
    lib64/pkgconfig:
    - PKG_CONFIG_PATH
    ? ''
    : - CMAKE_PREFIX_PATH
  lmod:
    hierarchy:
    - mpi
    hash_length: 7
    verbose: false
    core_compilers:
    - [email protected]

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions