RuntimeError: Cannot locate slurm_version.h in /usr/include/slurm #350
|
I am working on a cluster with a Slurm 20.02.7 installation not performed by me. I wanted to install pyslurm to manage some administrative tasks I have been assigned to, but at the time of installation pip fails with the error in subject. I see that under
but I cannot locate slurm_version.h anywhere. Is this a problem related to the installed slurm version or a bug of pyslurm (or both)? |
Replies: 4 comments 2 replies
|
ah I am guessing that I should install the |
|
nevermind, it's installed - back to square one |
|
slurm_version.h was only added in 2021: SchedMD/slurm@f94f179 |
|
Hi @HealthyPear as @schluenz pointed out already, slurm_version.h did not exist yet in Slurm 20.2.x. The error you are receiving might indicate that you are trying to use a pyslurm release/branch that is meant to be used for a different (and more recent) Slurm version. For Slurm 20.2, you can use this branch though: https://github.com/PySlurm/pyslurm/tree/20.2.x (Note that 20.2 releases do not include any of the work made in the last 1-2 years to rework the API, i.e. what is shown on pyslurm.github.io. This is because there are too many changes throughout the major slurm versions, and porting all the things back to 20.2 was too time consuming at the time.) |
Hi @HealthyPear
as @schluenz pointed out already, slurm_version.h did not exist yet in Slurm 20.2.x. The error you are receiving might indicate that you are trying to use a pyslurm release/branch that is meant to be used for a different (and more recent) Slurm version.
For Slurm 20.2, you can use this branch though: https://github.com/PySlurm/pyslurm/tree/20.2.x
(Note that 20.2 releases do not include any of the work made in the last 1-2 years to rework the API, i.e. what is shown on pyslurm.github.io. This is because there are too many changes throughout the major slurm versions, and porting all the things back to 20.2 was too time consuming at the time.)