Hi Cormac and Pablo,

A PR with a fix for both #772 and #773 is now available, see 
https://github.com/hpcugent/easybuild-framework/pull/780 .

Cormac: EasyBuild want allow you to use 5.2rc4, but you shouldn't either, 
because it still contains a bug that EasyBuild bumps into.

From the unit tests, with Lmod 5.2rc4 on top of PR #780:

EasyBuildError: 'EasyBuild crashed with an error (at 
easybuild/tools/modules.py:663 in update): An error occured when running 
\'spider -o moduleT 
/Users/kehoste/work/easybuild-framework/test/framework/modules\': \nLmod has 
detected the following error: 
/Users/kehoste/work/easybuild-framework/test/framework/modules/GCC/.modulerc: 
(GCC/.modulerc): invalid command name "module-version"\n'

So, Lmod 5.2rc4 has trouble with .modulerc files, it seems. This problem does 
not occur with Lmod 5.2 though.
The PR makes sure you're using Lmod 5.2 or more recent (5.2rc's are not 
accepted).


regards,

Kenneth

On 05 Dec 2013, at 10:03, Pablo Escobar Lopez wrote:

> the bug is reported. quick woraround is upgrade to latest lmod stable release
> https://github.com/hpcugent/easybuild-framework/issues/772
> 
> you should also check this one
> https://github.com/hpcugent/easybuild-framework/issues/773
> 
> 
> 
> 2013/12/5 Garvey, Cormac T <[email protected]>
> 
> Hi all,
> I have lmod 5.2rc4 installed and I am trying to upgrade my easybuild to 1.9.0.
> 
> I get the following message "Failed to determine Lmod version", here is the 
> debug output from the log file.
> 
> 
> == 2013-12-04 16:24:50,243 main.filetools INFO Command lmod found at 
> /apps/projects/lmod/5.2rc4/gcc-4.5.1/opt/lmod/lmod/libexec/lmod
> == 2013-12-04 16:24:50,244 main.Lmod INFO Full path for module command is 
> /apps/projects/lmod/5.2rc4/gcc-4.5.1/opt/lmod/lmod/libexec/lmod, so using it
> == 2013-12-04 16:24:50,244 main.Lmod DEBUG Current MODULEPATH: 
> /hpc-common/software/easybuild/inl-easyconfigs/modules/all:/apps/projects/modules/modulefiles:/apps/local/modules/modulefiles/Linux:/apps/local/modules/modulefiles/Core:/apps/local/modules/modulefiles
> == 2013-12-04 16:24:50,244 main.Lmod DEBUG Adjusted LD_LIBRARY_PATH from 
> '/opt/pbs/default/lib' to '/opt/pbs/default/lib'
> == 2013-12-04 16:24:50,244 main.Lmod DEBUG Running module command 
> '/apps/projects/lmod/5.2rc4/gcc-4.5.1/opt/lmod/lmod/libexec/lmod python 
> update' from /home/garvct
> == 2013-12-04 16:24:50,346 main.Lmod DEBUG Correcting paths in 
> LD_LIBRARY_PATH from ['/opt/pbs/default/lib'] to ['/opt/pbs/default/lib']
> == 2013-12-04 16:24:50,447 main.Lmod ERROR EasyBuild crashed with an error 
> (at 
> easybuild/1.9.0/gcc/opt/lib/python2.7/site-packages/easybuild/tools/modules.py:602
>  in __init__): Failed to determine Lmod version from 
> '/apps/projects/lmod/5.2rc4/gcc-4.5.1/opt/lmod/lmod/libexec/lmod help' 
> output: 
> LMOD_DEFAULT_MODULEPATH="/apps/projects/modules/modulefiles:/apps/local/modules/modulefiles/Linux:/apps/local/modules/modulefiles/Core:/apps/local/modules/modulefiles";
> export LMOD_DEFAULT_MODULEPATH;
> MODULEPATH="/hpc-common/software/easybuild/inl-easyconfigs/modules/all:/apps/projects/modules/modulefiles:/apps/local/modules/modulefiles/Linux:/apps/local/modules/modulefiles/Core:/apps/local/modules/modulefiles";
> export MODULEPATH;
> LMOD_DEFAULT_MODULEPATH="/apps/projects/modules/modulefiles:/apps/local/modules/modulefiles/Linux:/apps/local/modules/modulefiles/Core:/apps/local/modules/modulefiles";
> export LMOD_DEFAULT_MODULEPATH;
> 
> etc
> 
> I have not enabled lmod in easybuild before, any ideas why I get this error? 
> (Is lmod -v more appropriate to get the lmod version number rather than lmod 
> help?)
> 
> Thanks,
> Cormac.
> 
> 
> 
> 
> 
> -- 
> Pablo Escobar López
> HPC systems engineer
> Biozentrum, University of Basel
> Email: [email protected]
> Phone: +41 61 267 15 82 
> http://www.biozentrum.unibas.ch

Reply via email to