[slurm-users] Sbatch python question

Walters, Richard I ERDC-RDE-ITL-MS Contractor Richard.I.Walters at erdc.dren.mil
Sat Mar 13 21:19:34 UTC 2021

First, I'm new to slurm, I'm used to PBS Pro.  But we're getting a new system, and they still configuring it.  I'm a pioneer user for this new system.  I'm trying to submit an sbatch job with a python script (not the usual bash or csh script).  This scrips works with qsub for PBS Pro; so  basically trying to convert parts of it for slurm.

%>. sbatch my_submit_script.py


Why does slurm fail my python file when I attempt to import a subcomponent of a python package?  Seems that I am forced to import the entire package.

For example, when I attempt

```from time import sleep```

the script will fail, whereas

```import time```


 Is this a slurm, python configuration issue ?  Or does slurm's python integration have a problem with importing subcomponents of a package in python ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20210313/428a72c8/attachment.htm>

More information about the slurm-users mailing list