[torqueusers] ANNOUNCE: New version of openpbs/torque Pythoninterface

Bas van der Vlies basv at sara.nl
Mon Nov 7 08:12:09 MST 2005

=========== Version 2.8.0

         - Added /usr/lib to PBS_LIB_DIR

         - Added new function "pbs.error()". This function checks if
           an error has occured with a pbs function, eg:
             task_id = pbs.pbs_submit(c, attrl, "A.tsk", 'NULL', 'NULL')
             error_number, err_txt = pbs.error()
             if error_number:
                 print error_number, err_txt

           prints the following message if script A.tsk does not exists:
             15042 (qsub) cannot access script file

         - to make rpm packages from the source package, initial version
         Author: Martin Pels from SARA

         - Now requires python 2.1 and higher
         - Explain how to build DEBIAN package

========= Info about the package

the latest stable pbs_python interface is available from:

Pbs_python interface is a wrapper class for the OPENPBS/TORQUE C LIB
API. Now you can write utilities/extensions in Python instead of C.

The Python wrapper class is tested on:

    - Intel cluster debian GNU/LINUX woody/sarge OPENPBS 2.3.16,
      TORQUE 1.0.1p4, 1.1.0p4 and up

    - For X86_64 systems you have to compile torque/openpbs with
      the -fPIC option. Else you can not build the python module

    - Compaq Alpha cluster debian GNU/LINUX woody OPENPBS 2.3.16

    - SGI Origin 3000: Irix 6.5, OPENPBS 2.3.16

    - TRU64 system, NOTE: must rename libnet.a to libpbs_net.a and edit
      setup.py to reflect the change. There is also a system wide

    - It should run on different OSes.

In the past our Alpha cluster was redhat (6.2)  and we had to add
'-lots' to the LIBS line

========= Testing the package:

The test programs are include as a reference how to use the PBS
python module. You have to edit some test programs to reflect
your PBS installation.

pbsmon.py        - ascii xpbsmon
rack_pbsmon.py   - ascii xpbsmon by rack layout
pbsnodes-a.py    - pbsnodes -a
pbs_version.py   - print server version
set_property.py  - set some node properties
resmom_info.py   - queries the pbs_mom daemon on the nodes
logpbs.py        - Shows the usage of the PBS logging routines
new_interface.py - Example how to use PBSQuery module
PBSQuery.py      - python <install_path>/PBSQuery.py (has builtin demo)

Comments,suggestions or bugfixes mail them to: Bas van der Vlies
<basv at sara.nl> For more info about SARA see:

*                                                                  *
*  Bas van der Vlies                     e-mail: basv at sara.nl      *
*  SARA - Academic Computing Services    phone:  +31 20 592 8012   *
*  Kruislaan 415                         fax:    +31 20 6683167    *
*  1098 SJ Amsterdam                                               *
*                                                                  *

More information about the torqueusers mailing list