On 10/13/2016 05:15 PM, Kenneth Hoste wrote:
You need to move the 'module --initial_load restore' after the 'module
use', otherwise the EasyBuild module is indeed not available.
No Catch-22 imho...
And then you shouldn't need to load the EasyBuild module again, it
should be loaded via the restore...
Confirmed! This initialization script works correctly:
if [ -z "$__Init_Default_Modules" ]; then
export __Init_Default_Modules=1
export EASYBUILD_MODULES_TOOL=Lmod
export EASYBUILD_PREFIX=/home/modules
module use $EASYBUILD_PREFIX/modules/all
export LMOD_SYSTEM_DEFAULT_MODULES=EasyBuild
module --initial_load restore
...
Thanks,
Ole