SBATCH ERROR: File "disbatch" could not be opened from the directory #39
-
I am attempting to run disBatch on Niagara. I can successfully install disBatch following the instructions
However if I try to run a script which contains the command
which I run without SLURM using the command disbatch disbatch_Examples I get the error
and when I try to run on SLURM via the command
I get the error
I should note that I did not make I'm posting this under Discussions rather than Issues because it's likely that I just need to setup something, but I use disBatch on Popeye with absolutely no trouble, so I was not expecting much resistance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I think this error is normal; to run without Slurm, you can use something like disbatch -s localhost:4 disbatch_Examples This will execute 4 tasks at once on the node where you're running the command.
Hmm, it sounds like Slurm can't find the disbatch executable. Just to double check, is the venv activated? What does
The location of the venv relative to the working directory shouldn't matter once the venv is activated. |
Beta Was this translation helpful? Give feedback.
-
sbatch however (obviously in hindsight) does not have |
Beta Was this translation helpful? Give feedback.
Hmm, I thought Slurm usually preserved the calling environment (
sbatch --export=ALL
is the default). Maybe Niagara is different somehow. You could try--export=ALL
(or--export=PATH
), or specify the absolute path to disbatch (e.g.sbatch $(which disbatch) tasks
), or use a wrapper batch script.