Hello there,
I have installed a singularity container on HPC in order to install inside of it the developer version of the code, 0.12.1.dev0, but it seems that something is missing.
In the file attached as a file.py, there is the recipe I have used to build the container locally, and then the command lines commented have been run once the container image was launched on the HPC. openmc_HPC_recipe.py (1.2 KB)
I thought I succeeded in the installation process, since if from shell, I run the image, activate the conda env, and check the version of the code, I can see that is the 0.12.1.dev0. If I submit a job for a file.py with a sbatch file as follow,
#!/bin/bash
#SBATCH --job-name=write_file.py
#SBATCH --partition=global
#SBATCH --workdir=/home/ameli/test_write_read_source/write_source
#SBATCH --time=00:10:00
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=24
#SBATCH --output=write.out
#SBATCH --mem-per-cpu=3M
module load singularity/3.2.1
singularity shell /home/ameli/ubuntu.sif
source /home/ameli/conda_dev/etc/profile.d/conda.sh
conda activate dev_openmc
export OPENMC_CROSS_SECTIONS="/home/ameli/conda_dev/pkgs/endfb71_hdf5/cross_sections.xml"
python3 write_file.py
I do get the error:
INFO: localdir at /scratch/284378.ameli
INFO: your job will run on local system.
[10 15 20 22]
Traceback (most recent call last):
File "/home/ameli/test_write_read_source/write_source/write_file.py", line 79, in <module>
openmc.run(threads=24)
File "/home/ameli/openmc/openmc/executor.py", line 218, in run
_run(args, output, cwd)
File "/home/ameli/openmc/openmc/executor.py", line 10, in _run
p = subprocess.Popen(args, cwd=cwd, stdout=subprocess.PIPE,
File "/home/ameli/conda_dev/envs/dev_openmc/lib/python3.9/subprocess.py", line 951, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/home/ameli/conda_dev/envs/dev_openmc/lib/python3.9/subprocess.py", line 1823, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'openmc'
I tried to install conda and then OpenMC from the source on a local pc, with the same procedure, and I can use the version I installed without any troubles.
I know it says it can’t filde the openmc directory, but I do see it on the cluster.
Has anyone already experienced something similar, or could someone give me a clue about it?
Thank in advance.
Tony