Questions tagged [environment-modules]

The Environment Modules package provides for the dynamic modification of a user's environment via modulefiles.

Typically users initialize their environment when they log in by setting environment information for every application they will reference during the session. The Environment Modules package is a tool that simplify shell initialization and lets users easily modify their environment during the session with modulefiles.

Each modulefile contains the information needed to configure the shell for an application. Once the Modules package is initialized, the environment can be modified on a per-module basis using the module command which interprets modulefiles. Typically modulefiles instruct the module command to alter or set shell environment variables such as PATH, MANPATH, etc. modulefiles may be shared by many users on a system and users may have their own collection to supplement or replace the shared modulefiles.

Modules can be loaded and unloaded dynamically and atomically, in an clean fashion. All popular shells are supported, including bash, ksh, zsh, sh, csh, tcsh, fish, as well as some scripting languages such as perl, ruby, tcl and python.

Modules are useful in managing different versions of applications. Modules can also be bundled into metamodules that will load an entire suite of different applications.

80 questions
1
vote
0 answers

Modularize installation of python packages - how to stack environments

Let's say I have two locations /A and /B in which I installed python packages using pip's "user sheme" PYTHONUSERBASE=/some/folder pip install --user SomePackage. When installing Files in /B, is there a way to make pip aware of the packages…
Michael
  • 93
  • 5
1
vote
1 answer

Why can the following environment module not be loaded?

I get an error loading environment modules (4.2.4) I do not understand. With three modules A, B and C where B depends on A and C and C depends only on A: A #%Module1.0 B #%Module1.0 module load A C C #%Module1.0 module load A it is not possible…
Woltan
  • 13,723
  • 15
  • 78
  • 104
1
vote
3 answers

Module load/unload commands in Linux scripts

I often have a need to create Linux scripts which contain module load and module unload commands. Is there a way to test if a module is already loaded before executing a module unload command? The reason why I need to do this is that if I have a…
FenderMan
  • 11
  • 1
  • 1
  • 4
1
vote
2 answers

Refactoring bash command into tcsh command

I have problem with refactoring bash command into tcsh-friendly command. Don't know the tcsh syntax very well so the error im receiving doens't give me any clue. The whole bash script was about adding modules on…
Elcardia
  • 135
  • 10
1
vote
2 answers

Subprocess module in python claims 'command not found' for 'module list'?

I am currently using the subprocess module in python for scripting purposes, and have been unable to execute the command 'module list' despite this working when I run it in shell and despite any other kind of command working fine when using the…
Farhana
  • 11
  • 2
1
vote
1 answer

LMOD TCL execute bash script while loading module

On our new cluster we use LMod as environmental module system. Creating a Module TCL Script for OpenFOAM, a system-dependent bashrc file need to be loaded. This is the TCL script which I am using on another module system, it works fine. I am not…
1
vote
1 answer

Setting-up Environment Modules

I have recently installed the environment-modules package (version 4.1.1-1) on Linux Mint 19, and I'm trying to figure out how to set-up different environments. Unfortunately, the docs only give few pointers as what to do when you're not already an…
MPA
  • 1,878
  • 2
  • 26
  • 51
1
vote
1 answer

module load - how to load modulefiles

I am trying to replicate a tutorial on my Ubuntu 18.04. There are two lines: module load dev/python/2.7.6 module load stats/R/3.2.1-Cairo I am not quite sure how to load modules. I tried downloading http://modules.sourceforge.net/. I am not sure how…
sara
  • 25
  • 1
  • 7
1
vote
1 answer

How to set the path for module command?

This is my .modulepath file, the last two lines are the paths where I have my modules mounted from another hard drive. Even though I added these lines module avail command does not fetch me any of the modules in those folders. If anyone could help…
user2377038
  • 21
  • 1
  • 4
1
vote
2 answers

Clion linux environment modules

I'm trying to setup a project using clion ins linux but when the import its made i get an error for not being able to found eigen 3 Eigen3 was installed as an enviroment-module (module load eigen3) and in fact I can compile this project when i use…
iago Calvo
  • 11
  • 2
1
vote
0 answers

Load environmental modules with SSH into server

I want to load a module on a server using SSH ssh server.university.com "module load moduleX" but I'm getting the following error: /usr/local/Modules/default/bin/modulecmd: error while loading shared` libraries: libtclx8.4.so: cannot open shared…
saken
  • 21
  • 6
1
vote
2 answers

How to get an Environment Module modulefile to print a message upon loading the module?

I've just learned the basics on how to make modulefiles for loading software on my cluster. Other environment modules (created by admins) print a message upon loading: $ module load Name Welcome to Name/version.1.2.3 How do I add this to the…
hmg
  • 412
  • 1
  • 4
  • 18
1
vote
1 answer

How do you use predefined enviornmental varaibles in environmental module files?

I'm having trouble using any predefined environmental variable in my module files. For example a line like this setenv TEST ${HOSTNAME} throws an error, where ${HOSTNAME} is defined by the system as a global environmental variable. The error looks…
ExoticDFT
  • 13
  • 5
1
vote
1 answer

/usr/bin/modulecmd: No such file or directory

I'm using sbatch to submit my job. Command line mpirun --version gives: Intel(R) MPI library for Linux* OS, Version 5.0 Build 20140507 Copyright (C) 2003-2014, Intel Corporation. All rights reserved. So I think I'm working with Intel…
dudu
  • 801
  • 1
  • 10
  • 32
1
vote
1 answer

GNU module load before loading python module

On a server I am working on, I need to run the following commands to ensure the xlsxwriter is available to import from python: module load swdev module load python/xlsxwriter_py3.4.2/0.7.2 However, I would like this to be done automatically when…
texasflood
  • 1,571
  • 1
  • 13
  • 22