-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with pyslurm on example jobs_list.py #20
Comments
We are lagging a bit behind in term of API support for this new release, will try to have a look at it soon. |
Hi, we have made a quick mod to the 2.5 branch so please do another pull. As phantez stated we are trying to catch up with API changes and correct our code. |
It still does not work : arnaud@D3550:~/src/pyslurm/examples$ python jobs_list.py Thanks for the try. Keep me posted. |
Looking at it now :) |
Pushed a small change, I tested the previous code on an emulated BG/Q so I built Slurm-2.5.0 for a standard cluster, this is where the connection type is NULL where the Python equivalent is None but the decode routine was expecting an integer. We will have to also modify any other routines where this may also be the case. Please let me know if this works for you. |
This time, it seems that it works : work_dir : /home/arnaud/src/slurmjobNumber of Jobs - 1 [] JobIDs in Running state - [] I am just a little surprised by the statements at the end : there is a running job, but no list of jobIDs. Looking at the code of the example, we have : So, I suppose that in find, there is something wrong, or the representation (here job_state is (1, 'RUNNING')) has changed. Do you want me to open a new bug on the subject ? You can close this one. Thanks for the help, Regards, Arnaud |
Yes, please open a new issue and we will take a look as soon as possible. closing this one and thank you for your patience. |
So now import pyslurm is working (ubuntu 12.04, slurm2.5.0, trunk of pyslurm, cython from pip install). So I am going through the different examples.
I see the partition, blocks_list.py send back No Blocks.
However :
python jobs_list.py
Traceback (most recent call last):
File "jobs_list.py", line 47, in
jobs = a.get()
File "pyslurm.pyx", line 1573, in pyslurm.pyslurm.job.get (pyslurm/pyslurm.c:20204)
File "pyslurm.pyx", line 1669, in pyslurm.pyslurm.job.__get (pyslurm/pyslurm.c:21206)
File "pyslurm.pyx", line 4119, in pyslurm.pyslurm.get_conn_type_string (pyslurm/pyslurm.c:45363)
TypeError: an integer is required
Same thing for sjobs.py (normal, exactly the same error).
And with node_list.py :
arnaud@D3550:~/src/pyslurm/examples$ python node_list.py
python: error: Unsupported option 4 for get_nodeinfo.
python: error: Unsupported option 4 for get_nodeinfo.
D3550 :
alloc_cpus : 0
arch : x86_64
boards : 1355999036
boot_time : Thu Dec 20 10:23:56 2012
cores : 1
cpu_load : 116
cpus : 1
err_cpus : 0
features : []
gres : []
name : D3550
node_addr : 127.0.0.1
node_hostname : D3550
Traceback (most recent call last):
File "node_list.py", line 41, in
display(node_dict)
File "node_list.py", line 25, in display
print "\t%-17s : %s" % (part_key, pyslurm.get_node_state(value[part_key]))
File "pyslurm.pyx", line 3944, in pyslurm.pyslurm.get_node_state (pyslurm/pyslurm.c:43705)
TypeError: an integer is required
Regards,
Arnaud Laprévote
The text was updated successfully, but these errors were encountered: