Custom Query (43 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (16 - 18 of 43)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Ticket Resolution Summary Owner Reporter
#11 fixed pbs_python module problem bas Dorian Minarolli <odmi091@…>
Description
Hi to every body

I have some problem with pbs_python module
I have run ./configure make make install
without errors in a X86_64 fedora 8 machine
but when I execute an example pbs_version.py
it says ImportError: No module named pbs
the torque bach system  is installed with yum install
my real question is does installing this way
includes the -fPIC option required on 64 bit machines
Thank you for your help
#53 worksforme pbs python - uwsgi bas dbikas@…
Description

Can someone explain me why this code:

import pbs
connection = pbs.pbs_connect(pbs.pbs_default())
print connection

Returns: -1 all the time if i run it under uwsgi???

server = pbs.pbs_default()
print "Server name: ", server

returns: Server: and even if i run: connection = pbs.pbs_connect(str('myservername')) i keep getting -1 as the answer

OS: ubuntu 14.04 torque version: 4.1.3 pbs_python version:4.4.0 python version: 2.7

if i run the same code under django's embbedded server or ipython in terminal it returns 1 as expected..

This is the 2nd ticket i create with the same subject. I am trying to find a solution for almost a month with no success... So if someone has any idea, or has already implemented something similar, please give me a hand. Thanks in advance.

#16 fixed PBSQuery module enhancement bas bas
Description

getnode(s) function now returns a dictionary with values, eg pbsnodes: :

gb-r16n1
 state = job-exclusive
 np = 2
 properties  cores2,fabric1,gigabit,infiniband,mem4gb,parallel,switchF
 ntype = cluster
 jobs = 0/2171604.batch-ng.irc.sara.nl, 1/2171604.batch-ng.irc.sara.nl
 status = arch=x86_64,opsys=linux,uname=Linux ib-r16n1.irc.sara.nl 2.6.29.1-sara1 #1 SMP Mon Apr 6 15:43:08 CEST 2009 x86_64,sessions=32128,nsessions=1,nusers=1,idletime=24505,totmem=8039848kb,availmem=7556400kb,physmem=4039856kb,ncpus=2,loadave=2.32,gres=max_jobs:1+ideal_jobs:1,netload=3403654969,size=71647620kb:71652296kb,state=free,jobs=2171604.batch-ng.irc.sara.nl,rectime=1241791421

This is not useful at all. I will change the structure as follow:

  1. key = value, value ---> key = list([ value, value ]), key value is a list
  2. key = name1=value1 name2=value2---> key = dict( [name1] = value1, [name2] = value2), key value is a dictionary

The programming will be easier:

  1. print !nodestate?arch?
  2. if 'cores2' in !nodeproperties?

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Note: See TracQuery for help on using queries.