Hello,
If only the python tests fail like that, I assume your installation is
ok. The errors seem to be due to the use of a recent Python version. I
will check running tests against Python 2.12. Maybe I have some test
scripts to fix.
For the configuration of the Modules tool, you can refer to the
Configuration section of the installation guide:
https://modules.readthedocs.io/en/latest/INSTALL.html#configuration
To create modulefiles to use with module commands to configure access
to specific software or just tune your shell session, you just need
to know the environment element to setup and then create files with
modulefile commands to define these elements:
* setenv: define environment variable
* append-path/prepend-path: add path element to a path-like variable
* set-alias: define shell alias
* set-function: define shell function
* complete: define completion
All modulefile commands are described in modulefile man page:
https://modules.readthedocs.io/en/latest/modulefile.html#modules-specific-tcl-commands
Regards,
Xavier
Le jeu. 15 févr. 2024 à 16:53, Ameya Vikram Singh
<ame...@gm...> a écrit :
>
> Hello,
>
> I am trying to build and install the environment modules from source.
> Though the build is successful, the testinstall is currently failing.
>
> Here's brief snippet I have captured around the failing test:
> Running /home/ameya/src/environment-modules/modules/testsuite/install.00-init/080-args.exp
> ...
> FAIL: append-path,FOO,\$foo:source,/home/ameya/src/environment-modules/modules/testsuite/modulefiles.2/putsvar
> (python)
> ERR[77]: '<string>:3: SyntaxWarning: invalid escape sequence '\$'
> :/path/to/dir1:\$foo
> '#>
> EXP[25]: '^:/path/to/dir1:\\\$foo
> $'#>
> FAIL: append-path,FOO,\$foo:source,/home/ameya/src/environment-modules/modules/testsuite/modulefiles.2/putsvar
> (python)
> ERR[77]: '<string>:3: SyntaxWarning: invalid escape sequence '\$'
> :/path/to/dir1:\$foo
> '#>
> EXP[25]: '^:/path/to/dir1:\\\$foo
> $'#>
> Unset temp variables: err_locatemod premsg postmsg usage_msg
> err_locatemod2 err_locatemod3 err_locatemod4 err_locatemod5
> err_locatemod6 err_locatemod7 foo err_emptydir err_emptymod modfile
> bar
>
> I am currently using Fedora 39 as the base system.
> Also, I don't have admin rights to install packages, for which I need
> to install modules locally using the following configuration commands:
>
> # Configure
> ./configure --prefix=$HOME/tools/modules
> # Build
> make
> # Do Self test (this one works)
> make test
> # Install
> make install
> # Source Installation
> source $HOME/tools/modules/init/bash
>
> # Test The Installation (This one is currently failing with the error
> captured above.)
> make testinstall
>
> Also, is there any guide I can refer to on configuring custom tools
> setup configuration?
> I am not sure which section of the document should I refer to for a
> custom application configuration on modules?
>
> --
> Regards,
> Ameya
|