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

EESSI-extend doesn't load on systems which have LMOD_EXACT_MATCH=yes #746

Closed
casparvl opened this issue Sep 25, 2024 · 4 comments · Fixed by #747
Closed

EESSI-extend doesn't load on systems which have LMOD_EXACT_MATCH=yes #746

casparvl opened this issue Sep 25, 2024 · 4 comments · Fixed by #747

Comments

@casparvl
Copy link
Collaborator

EESSI-extend just tries to load the default EasyBuild version. This doesn't work when a system requires LMOD_EXACT_MATCH=yes

{EESSI 2023.06} [casparl@tcn1 software-layer]$ module load EESSI-extend/2023.06-easybuild
-- Using /tmp/$USER as a temporary working directory for installations, you can override this by setting the environment variable WORKING_DIR and reloading the module (e.g., /dev/shm is a common option)
Configuring for use of EESSI_USER_INSTALL under /home/casparl/eessi
-- To create installations for EESSI, you _must_ have write permissions to /home/casparl/eessi/versions/2023.06/software/linux/x86_64/amd/zen2
-- You may wish to configure a sources directory for EasyBuild (for example, via setting the environment variable EASYBUILD_SOURCEPATH) to allow you to reuse existing sources for packages.
Lmod has detected the following error:  These module(s) or extension(s) exist but cannot be loaded as requested: "EasyBuild"
   Try: "module spider EasyBuild" to see how to load the module(s).

Executing this command requires loading "EasyBuild" which failed while processing the following module(s):

    Module fullname                 Module Filename
    ---------------                 ---------------
    EESSI-extend/2023.06-easybuild  /cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/amd/zen2/modules/all/EESSI-extend/2023.06-easybuild.lua

(we enforce this on our system since we got tired of people relying on defaults and then complaining that their code ran differently when we installed some new version - and they simply weren't aware :))

One option would be to have the EasyBuild version as a suffix - in which case there would be multiple EESSI-extend modules. Alternatively, maybe the module can still be convinced to load a default (can a module change lmod config on the fly...?) version. Or at least print a somewhat more clear error.

Note that as a workaroud, I load an EasyBuild module first, then load EESSI-extend. That way, it works

@ocaisa
Copy link
Member

ocaisa commented Sep 25, 2024

I wonder if there is a way to ask Lmod what the default version of a package is? That would be enough

@ocaisa
Copy link
Member

ocaisa commented Sep 25, 2024

@ocaisa
Copy link
Member

ocaisa commented Sep 25, 2024

Yes, that works, I'll make a PR

@ocaisa
Copy link
Member

ocaisa commented Sep 25, 2024

Fix in #747

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants