How do you switch module versions?
So far (starting with 5.4.0 - in bash) I find this sort of works:
- $ echo $SHELL
/bin/bash
- $ module --version
Modules Release 5.4.0 (2024-02-20)
- $ module load /stage/site/modules/5.3.1/modulefiles/modules
- $ . /stage/site/modules/5.3.1/init/bash
But that misses a couple variables:
- $ set |grep MODULE
MODULESHOME=/stage/site/modules/5.3.1
MODULES_CMD=/stage/site/modules/5.3.1/libexec/modulecmd.tcl
MODULE_VERSION=5.4.0
MODULE_VERSION_STACK=5.4.0
But this then works:
- $ module --version
Modules Release 5.3.1 (2023-06-27)
The files in /stage/site/modules/versions have a dependency for the modules module
Which means one needs a generic version of this module (the one shipped with each version is module specific)
This doesn't work at all:
- $ module switch /stage/site/modules/versions/5.4.0/version /stage/site/modules/versions/5.3.1
Loading /stage/site/modules/versions/5.3.1
ERROR: Unable to locate a modulefile for 'modules'
ERROR: Load of requirement modules failed
Switching from /stage/site/modules/versions/5.4.0/version to /stage/site/modules/versions/5.3.1
ERROR: Load of switched-on /stage/site/modules/versions/5.3.1 failed
Even this fails:
- $ module switch /stage/site/modules/versions/5.4.0/version
Loading /stage/site/modules/versions/5.4.0/version
ERROR: Unable to locate a modulefile for 'modules'
ERROR: Load of requirement modules failed
Switching from /stage/site/modules/versions/5.4.0/version to /stage/site/modules/versions/5.4.0/version
ERROR: Load of switched-on /stage/site/modules/versions/5.4.0/version failed
If I add a no-op module named modules to my set, then I get:
- $ module switch /stage/site/modules/versions/5.4.0/version /stage/site/modules/versions/5.3.1
Loading modules
ERROR: Conflicting /stage/site/modules/versions/5.3.1 is loading
Loading /stage/site/modules/versions/5.3.1
ERROR: Load of requirement modules failed
Switching from /stage/site/modules/versions/5.4.0/version to /stage/site/modules/versions/5.3.1
ERROR: Load of switched-on /stage/site/modules/versions/5.3.1 failed
On 2024-06-05 5:44 PM, Xavier Delaruelle wrote:
> Hello Glenn,
>
> Could you give the command you type and the complete output obtained.
> It will help to understand the issue you face. Are you using the
> "module switch" command to change version?
>
> Regards,
> Xavier
>
> Le mer. 5 juin 2024 à 15:12, Glenn Johnson <gle...@ou...> a écrit :
>>
>> I have set --enable-versioning for multiple installations of environment-modules. I cannot figure out how to switch between the versions though. I get
>>
>> conflicting <version> is loading
>>
>> messages and load of requirement modules failed.
>> _______________________________________________
>> Modules-interest mailing list
>> Mod...@li...
>> https://lists.sourceforge.net/lists/listinfo/modules-interest
>
>
> _______________________________________________
> Modules-interest mailing list
> Mod...@li...
> https://lists.sourceforge.net/lists/listinfo/modules-interest
>
--
--------------------------------------------------------
The views and opinions expressed above are strictly
those of the author(s). The content of this message has
not been reviewed nor approved by any entity whatsoever.
--------------------------------------------------------
Paul FM Info: http://paulfm.com/~paulfm/
--------------------------------------------------------
|