khiops_env --env
Raises Spurious Error When Environment Modules Are Installed on Non-RPM Linux Operating Systems
#495
Labels
Description
Currently,
khiops_env
detects if environment module support is installed on the host Linux operating system. If so, thenkhiops_env
attempts to unload the MPI environment module, and to load the appropriate MPI environment module.On RPM-based Linux distributions (Rocky 8, 9), this works as expected. On vanilla Debian / Debian-based distributions, this also works as expected, because environment module support is not installed by default.
However, if, for some reason, environment module support is installed on the host Debian-like distribution (via
apt-get install environment-modules
), thenkhiops_env
detects this support and assumes that the MPI environment module can be loaded, which is not true, because MPI is not packaged with environment module support on these Linux distributions.This results in a spurious error which is propagated to stderr:
ERROR: Unable to locate a modulefile for 'mpi/openmpi-x86_64'
. This error has no effect on the functioning of the script, which exits with the0
return code.Questions/Ideas
/dev/null
:Context
khiops -s
): Linux Debian and Ubuntu.The text was updated successfully, but these errors were encountered: