-
Notifications
You must be signed in to change notification settings - Fork 203
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
Error creating Cray toolchain modulefiles with Lua syntax #3626
Comments
I took a quick look at this, and it's easy to reproduce with a simple test module:
This triggers the same error:
So apparently the @rtmclay Can you confirm that |
The module swap command in TCL modulefiles just does an unload() followed by a load(). |
…t supported by Lmod (fixes easybuilders#3626)
…t supported by Lmod (fixes easybuilders#3626)
OK, so this is fairly easy to fix: we just do an Fixed in #3685 |
Thanks a lot @boegel! |
I report here as a placeholder for further discussion the issue with the
swap
function mentioned in #3575.The error is raised at the sanity check when the Lua syntax is used to create the Cray toolchain modulefiles:
The framework scripts involved are
easyblocks/generic/craytoolchain.py
andtools/module_generator.py
. The workaround is to list Cray external modules usingmodule unlod/load
commands inmodluafooter
instead ofdependencies
, to avoid the use of the functionswap
in the Lua modulefile created by EasyBuild for the Cray toolchains.In the example below I make use of the custom easyblock cpeToolchain adapted from
craytoolchain.py
:The text was updated successfully, but these errors were encountered: