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
0
votes
3 answers

How to execute command with partial result from another command?

I have: $ module avail firefox --latest ---------------------------------------------------------- /env/common/modules ----------------------------------------------------------- firefox/83.0 I would like to extract the firefox/83.0 part of the…
fredrik
  • 9,631
  • 16
  • 72
  • 132
0
votes
1 answer

How to automatically generate the modulefile for Intel compilers

Do you know a way to automatically generate the modulefile for Intel compilers without using the env2 script?
fdb
  • 1,998
  • 1
  • 19
  • 20
0
votes
0 answers

What steps to follow to create a python environment module? I am trying to do this on Windows 10

I am pretty new to environment modules and running Python in virtual environment. I could do below steps and stuck on how to proceed further I have installed the environment module software along with TCL on windows 10. I have followed these…
0
votes
1 answer

Load Environment Modules into Jupyter Notebook/Lab

I am running JupyterLab through a server (which is managed remotely, I am a user without sudo access). I want to use CUDA but in order to do so I have to load it in as a module using module load bash command when in terminal. The CUDA package is…
0
votes
1 answer

Python3.7 not showing up during module load on linux

I've installed python3.7 on my school's computing cluster without using pip or sudo. I added the python path to $PATH variable in the bashrc. But it still doesnt show the module when I try to do module spider python. Am I missing any steps? Thanks…
0
votes
1 answer

I'm getting an error "module not found " when I'm trying to execute shell commands through a python script

When the below statement is executed out1 = subprocess.run("module load python",shell = True, stdout = subprocess.PIPE , stderr = subprocess.STDOUT) This error is generated. /bin/sh: module :command not found. I want to execute shell commands…
0
votes
1 answer

libsnd file on hpc cluster

I have requested that we have libsnd file installed on the hpc cluster. The admin said that I can test this via the following link: https://raw.githubusercontent.com/erikd/libsndfile/master/examples/sndfile-to-text.c $ module load libsndfile/1.0.28…
Perl Del Rey
  • 959
  • 1
  • 11
  • 25
0
votes
3 answers

How to store output of module avail command in perl?

#!/depot/local/bin/perl5.8.0 my @data = `module avail icwbev_plus `; print "Data Array : @data \n " ; my $data1 = `module avail icwbev_plus `; print "Data $data1 \n" ; my $data2 = system (" module avail icwbev_plus "); print "S Data $data2 "…
0
votes
1 answer

Updating Python in my folder on the cluster

I want to run a program on our cluster environment which requires python 2.7. The thing is the version installed on the cluster is 2.6.6. Therefore, I tried to update the python version in my own folder. To do so, first I used module avail python…
0
votes
1 answer

Adapting "module" alias (invoking modulecmd) from tcsh to bash

In tcsh, I can run commands like: module add jdk/1.8.0_162 ...using an alias defined as such: alias module 'eval `/app/modules/0/bin/modulecmd tcsh \!*`' I'm trying to get an equivalent to this for bash. Currently, I've tried making a separate…
patrik
  • 4,506
  • 6
  • 24
  • 48
0
votes
2 answers

Get different version with 'module load python' and 'python'

I found that when I just type python in the command line, I got Python 2.7.9. And when I type module load python and then python again, it gives me Python 2.7.12 :: Anaconda custom (64-bit), which is the version I need. Can anyone explain how it…
Hui Kong
  • 1
  • 2
0
votes
1 answer

Loading Environment Modules from Python

I am having trouble figuring this out. I want to module load an aligner-"bowtie" in this case. Below is a snippet of the code I have: import subprocess moduleCmd=['module',…
sudeep
  • 21
  • 2
0
votes
1 answer

Execute code in red hat 4

I have an ec2 instance in redhat 4. Linux version 4.4.41-36.55.amzn1.x86_64 (mockbuild@gobi-build-60008) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ) #1 SMP Wed Jan 18 01:03:26 UTC 2017 I'm trying to execute a code made in matlab 2015b I…
arnoldssss
  • 468
  • 3
  • 9
  • 22
0
votes
1 answer

Pass ARRAY arguments to set-alias in modulefile

all. I need to use a function that must be declared within an environment module, so I'm trying to define it with set-alias. Here's the tricky thing, the parameter it takes is an array. So far, as a test I've tried this: set-alias test { …
0
votes
2 answers

linux .profile script - error with module load followed by echo

so I'm very new to linux scripting. In .profile I just want to load a module and then print out a message to remind me it loaded, but I'm encountering an error when I go about it in that order. It works fine when I have: echo "loading…
Austin Day
  • 141
  • 1
  • 8