FYI, I sent a response 4 hours ago with large attachments. I got a message
saying it is on hold due to its size.
I don't know if I get a response on the decision on that? :)
Den tir. 4. maj 2021 kl. 15.18 skrev Nick Papior <nic...@gm...>:
> Thanks!
>
> Here attached the 3 outputs.
>
> Please excuse me for having many more module-hide stuff in the rc file.
>
> If you want me to reduce the rc file I can, but I assume you search around
> the file for specific entries!
> In any case, let me know what you prefer!
>
> Den tir. 4. maj 2021 kl. 14.36 skrev Xav...@CE... <
> Xav...@ce...>:
>
>> Le mardi 04 mai 2021 à 11:27 +0200, Nick Papior a écrit :
>>
>> Hi list,
>>
>> I have always made use of the "module use <path>" extension to customize
>> modules depending on other modules.
>> To do this I put "module use --append <path>" in a top level module.
>>
>> For example:
>>
>> #%Module1.0#####################################################################
>> ##
>> ## python-3.7.7
>> ##
>>
>> set version 3.7.7
>> ...
>> module use --append /mypath/to/python/$version
>>
>> which then enables modules installed with python 3.7.7.
>> Now I want to use this in a combination with "module-hide" in >=4.6. And
>> this is where things go wrong.
>>
>> I can get all versions to work if I don't use "module-hide", but as soon
>> as I use an rc file in etc/rc that contains some hiding stuff, then using
>> "module use ..." in a module does not work.
>> I can't even get it to work by doing "module use <path>" on the command
>> line (i.e. outside of a module).
>>
>> The rc file contains something like this (plus additional stuff which
>> *seems* irrelevant)
>> module-hide python@:2.7.17
>> module-hide python@3:3.7.6
>> module-hide python@3.8:3.8.3
>> module-hide python3@
>> module-hide numpy@:1.18.2
>>
>> My python/3.7.7 module contains the above "module use --append" statement.
>> But that seems to clash with the hiding, but I can't see why?
>>
>> Basically, if I don't have an rc file I get something like this (note the
>> 2 sections)
>> -----------------------------------------------------------------------
>> /zhome/0e/2/36189/dcc/env-modules/module-repo
>> ------------------------------------------------------------------------
>> modules/4.3.1 modules/4.5.3 modules/4.7.1 python/3.2.5
>> python/3.4.1 python/3.5.4 python/3.6.2 python/3.6.10 python/3.7.6
>> python/3.8.0 python/3.8.2
>> modules/4.4.1 modules/4.6.1 python.scientific/3.8.4 python/3.3.0
>> python/3.5.1 python/3.6.0 python/3.6.7 python/3.7.5 python/3.7.7
>> python/3.8.1 python/3.8.4
>>
>> -----------------------------------------------------------------------
>> /zhome/0e/2/36189/dcc/env-modules/python/3.7.7
>> -----------------------------------------------------------------------
>> matplotlib/3.2.1 numpy/1.18.2 scipy/1.4.1
>>
>> While if I have an rc file I get this (only 1 section)
>> -----------------------------------------------------------------------
>> /zhome/0e/2/36189/dcc/env-modules/module-repo
>> ------------------------------------------------------------------------
>> modules/4.3.1 modules/4.5.3 modules/4.7.1 python/3.2.5
>> python/3.4.1 python/3.5.4 python/3.6.2 python/3.6.10 python/3.7.6
>> python/3.8.0 python/3.8.2
>> modules/4.4.1 modules/4.6.1 python.scientific/3.8.4 python/3.3.0
>> python/3.5.1 python/3.6.0 python/3.6.7 python/3.7.5 python/3.7.7
>> python/3.8.1 python/3.8.4
>>
>> I can't see why hiding modules should clash with module use...
>> Is there something I am missing?
>> I also tried renaming the python/$version folder to python-mods/$version,
>> to no avail. Still only working without the rc file.
>>
>>
>> Hi Nick,
>>
>> Could you send me the result of the following commands (after doing a
>> module purge) :
>>
>> $ module config --dump-state
>> $ module -DD load python/3.7.7
>> $ module -DD avail
>>
>> Please send me these outputs as a direct message if you do not want to
>> expose these details on the mailing-list.
>>
>> Best regards,
>> Xavier
>>
>> _______________________________________________
>> Modules-interest mailing list
>> Mod...@li...
>> https://lists.sourceforge.net/lists/listinfo/modules-interest
>>
>
>
> --
> Kind regards Nick
>
--
Kind regards Nick
|