Hi HPC Team,
So far, I have run a Python script via a bash submit file, where I loaded a conda environment. Here the relevant snippet:
module purge && module load GCC/11.3.0 OpenMPI/4.1.4 geopsy/3.4.2 Anaconda3/2022.05
source activate <conda-env>
python -B run.py
In run.py
, the geopsy
module is needed.
Now I wanted to run this in a docker container, so I’m doing
module purge && module load GCC/11.3.0 OpenMPI/4.1.4 geopsy/3.4.2 Anaconda3/2022.05
srun singularity exec --nv $HOME/docker/migrate_v002.sif python run.py
and the script doesn’t run through with the following error:
FileNotFoundError: [Errno 2] No such file or directory: '/opt/ebsofts/geopsy/3.4.2-foss-2022a/bin/gpdc'
My suspicion is that the gpdc
module isn’t loaded (even though I wrote the module load
commands before srun singularity exec
). How can gpdc
be made available in the docker container?
The path to the full submit file is here:
/home/users/s/shekhza2/ant-migrate/ml4ant/ant/fwd_model/submit_files/dgp/07p02p24/17p11/run_dgp_17p11p41_190.sh
Best regards,
Imahn