Hello Marius,
I second Paul's suggestion: if jupyter-slurm has modules in several
modulepaths and you expect using those defined in "linux/x86_64", the
priority of this modulepath should be above the other one.
Now purely answering your original question: you may use on of the
global RC files [1] to define a default across paths. With following
code put in one of these RC files:
module-version jupyter-slurm/2023.10.9 default
Best regards,
Xavier
[1]
https://modules.readthedocs.io/en/latest/module.html#modulecmd-startup
On Thu, 2025-01-23 at 10:47 +0100, Marius Retegan wrote:
> Hi Paul,
>
> Thanks for the reply.
>
> So, the package from the first path is selected because it is the
> first in the MODULEPATH, and there is an implicit default version
> mechanism.
>
> But if I disable the implicit default version, I get the following
> error:
>
> $> export MODULES_IMPLICIT_DEFAULT=0
> $> module load jupyter-slurm
>
> ERROR: No default version defined for 'jupyter-slurm'
>
> Back to my original question, is there any mechanism to define a
> default across paths?
>
> Best regards,
> Marius
>
>
> > On 22 Jan 2025, at 22:57, Paul Markfort <pau...@gm...>
> > wrote:
> >
> > You should probably put /software/modules/linux/x86_64 earlier in
> > the MODULEPATH
> > A better solution, is don't use the same folder name in two
> > module directories.
> >
> > It searches each folder in the MODULEPATH, until the request is
> > satisfied.
> >
> > Note, I take advantage of this in testing an updated module - by
> > using the same module name in an earlier path (a location in my
> > home directory).
> >
> >
> > On 2025-01-22 2:27 PM, Marius Retegan wrote:
> > > Dear all,
> > > I apologize in advance if this is covered in documentation, but
> > > I did not manage to find an answer.
> > > We have the following situation:
> > > module avail jupyter-slurm
> > > ------------------ /software/modules/ubuntu24.04/x86_64 -----
> > > -------------
> > > jupyter-slurm/2020.07.1
> > > no default here. Is it using an implicit default?
> > > --------------------- /software/modules/linux/x86_64 ----------
> > > -----------
> > > jupyter-slurm/2022.05.1 jupyter-slurm/2023.10.3 jupyter-
> > > slurm/2023.10.7
> > > jupyter-slurm/2023.10.0 jupyter-slurm/2023.10.4 jupyter-
> > > slurm/2023.10.8
> > > jupyter-slurm/2023.10.1 jupyter-slurm/2023.10.5 jupyter-
> > > slurm/2023.10.9
> > > jupyter-slurm/2023.10.2 jupyter-slurm/2023.10.6 jupyter-
> > > slurm/2023.10.10
> > > the default is set here (jupyter-slurm/2023.10.9)
> > > When doing module load jupyter-slurm, the expectation is to
> > > load the 2023.10.9, the default in the second group.
> > > Is it possible to define one default version across multiple
> > > paths? Thank you!
> > > Best regards,
> > > Marius
> > > _______________________________________________
> > > 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/
> > --------------------------------------------------------
> >
> >
> > _______________________________________________
> > 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
|