Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]: Unable to locate a modulefile for 'spack/spack' in build-wrf.shand build_wps.sh #712

Open
negin513 opened this issue Mar 24, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@negin513
Copy link

negin513 commented Mar 24, 2023

Describe the bug

When running the build-wrf.sh or build-wps.sh script in the apps/wrf directory, the build process fails with an error message indicating that the necessary module files cannot be located:

Specifically, in this script SHARED_APP variable is set to the apps directory, and the script assumes that the necessary module files are located in this directory. However, apps directory, copied from this repository does not include the modulefiles required in this line and exits with the following error:

ModuleCmd_Use.c(231):ERROR:64: Directory '/apps/modulefiles' not found
ModuleCmd_Load.c(213):ERROR:105: Unable to locate a modulefile for 'spack/spack'
/apps/wrf/build_wrf.sh: line 67: source: filename argument required
source: usage: source filename [arguments]

This error occurs because the necessary module files are not present in the directory specified by SHARED_APP and it is also missing in the repository.

To Reproduce
Steps to reproduce the behavior:

  1. Build a cluster
  2. Follow the steps in azurehpc wrf readme documentation
  3. Run the step for building wrf with any different combination of arguments.

This error occurs because the necessary module files are not present in the directory specified by SHARED_APP.

@negin513 negin513 added the bug Something isn't working label Mar 24, 2023
@negin513 negin513 changed the title Bug: Unable to locate a modulefile for 'spack/spack' in build-wrf.shand build_wps.sh [bug]: Unable to locate a modulefile for 'spack/spack' in build-wrf.shand build_wps.sh Mar 24, 2023
@garvct
Copy link
Collaborator

garvct commented Mar 28, 2023

Did you install spack using apps/spack/build_spack.sh (See wrf prerequisites (in readme)), this script creates the missing spack modulefile in SHARED_APP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants