Custom Query (43 matches)
Results (34 - 36 of 43)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#49 | fixed | 15044 Resources temporarily unavailable in pbs_python-4.4.0 for torque 4.2.8 | bas | aroudgar@… |
Description |
Hi, I have compiled pbs_python-4.4.0 using gcc compiler and install it at the default path. We are using: # qsub --version Version: 4.2.8 and python 2.7.4. However, when I run the following simple python program: import pbs server_name = pbs.pbs_default() print "Server name",server_name c = pbs.pbs_connect(server_name) attropl = pbs.new_attropl(1) # Set the name of the job # attropl[0].name = pbs.ATTR_N attropl[0].value = 'test' # job_id = pbs.pbs_submit(c, attropl, "A1.tsk", 'default', 'NULL') e, e_txt = pbs.error() if e:
print job_id # python submission.py Server name b0 constructor called 15044 Resources temporarily unavailable None qsub is in default searching path and it works in our cluster from above command line. Any suggestion would be highly appreciated. Cheers, Ata Ata Roudgar Research Computing WestGrid? Site IT Services Simon Fraser University Burnaby, British Columbia Canada V5A 1S6 phone: 778 782-8860 fax: 778 782-4242 |
|||
#15 | invalid | subscribe | bas | Arnau Bria <arnaubria@…> |
Description |
|
|||
#3 | fixed | .has_key does not work properly for getqueue items | bas | anonymous |
Description |
In [1]:import PBSQuery In [2]:pq = PBSQuery.PBSQuery() In [3]:q = pq.getqueue( 'q_express' ) In [4]:q Out[4]: {'q_express': q_express resources_default.nodect = 1 resources_default.nodes = 1 state_count = Transit:0 Queued:0 Held:0 Waiting:0 Running:0 Exiting:0 acl_host_enable = False resources_max.walltime = 00:05:00 resources_assigned.nodect = 0 acl_group_enable = False acl_user_enable = False enabled = True resources_max.nodect = 1 started = True queue_type = Execution resources_default.ncpus = 1 mtime = 1158756881 resources_assigned.ncpus = 0 total_jobs = 0 } In [5]:dir( q['q_express'] ) Out[5]: ['FALSE', 'TRUE', '__doc__', '__getitem__', '__init__', '__len__', '__module__', '__repr__', '__str__', 'attribs', 'get_value', 'has_key', 'is_enabled', 'is_execution', 'items', 'keys', 'name', 'values'] In [6]:q['q_express'].has_key[ 'resources_default.walltime' ] --------------------------------------------------------------------------- exceptions.TypeError Traceback (most recent call last) /lisa_vg2_lv1/HOME/ramon/<console> TypeError: unsubscriptable object In [7]:q['q_express'] Out[7]: q_express resources_default.nodect = 1 resources_default.nodes = 1 state_count = Transit:0 Queued:0 Held:0 Waiting:0 Running:0 Exiting:0 acl_host_enable = False resources_max.walltime = 00:05:00 resources_assigned.nodect = 0 acl_group_enable = False acl_user_enable = False enabled = True resources_max.nodect = 1 started = True queue_type = Execution resources_default.ncpus = 1 mtime = 1158756881 resources_assigned.ncpus = 0 total_jobs = 0 In [8]:type( q['q_express'] ) Out[8]:<type 'instance'> In [9]:type( q ) Out[9]:<type 'dict'> In [10]: It appears the values in a getqueue attrs object are not seen as working dict's, thus has_key is not working. Tested against: ramon@testm:~$ apt-show-versions | grep pbs pbs-python/sarge uptodate 2.9.2-2 ramon@testm:~$ |