Custom Query (43 matches)


Show under each result:

Results (7 - 9 of 43)

1 2 3 4 5 6 7 8 9 10 11 12 13
Ticket Resolution Summary Owner Reporter
#42 fixed Error Codes Out of Date bas JimCarreer

pbs_python reports the wrong error codes for responses returned from the server. The error lies in the mapping, and can be easily fixed.


For the up-to-date list. The symptoms of this bug cause the error message "Queue already exists" for the "Bad UID for job execution" error among others.

See also:

#40 wontfix pbs_python compilation error message bas vipin@…
Hi pbs_python team,

I am trying to compile pbs_python module locally (not the system-wide
distribution), downloaded a recent stable version pbs_python-4.4.0.

In my side I am using, RHEL Linux local 2.6.32-279.14.1.el6.x86_64,
python 2.6 and torque version 4.2.5.
The configure step gives me a warning message, I think that looks ok.

*pbs_python/pbs_python-4.4.0$ ./configure --prefix=/share/software/*
checking for pbs-config... /opt/torque/bin//pbs-config
Found torque version: 4.2.5
checking for python... /usr/bin/python
checking for python version... 2.6
checking for python platform... linux2
checking for python script directory...
checking for python extension module directory...
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING:  '' seems to ignore the --datarootdir
config.status: creating

Next I went to provide "make" command and which throws me an error
message as follows:

pbs_python/pbs_python-4.4.0$ make
#(cd src; make)
python build
Failed to find log.h in inlcude dir /opt/torque/include/. (Set incude
dir via PBS_PYTHON_INCLUDEDIR variable)
make: *** [pythonlib] Error 2

I have set the env PBS_PYTHON_INCLUDEDIR to /opt/torque/include/ where
my torque include files. I haven't seen the log.h file in that path but
I can see /opt/torque/include/log_event.h /opt/torque/include/pbs_log.h

With the /opt/torque/include/pbs_log.h file I updated the file
and run the "make" command, this time it was successful.

*pbs_python/pbs_python-4.4.0$ make *
#(cd src; make)
python build
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.6
copying src/ -> build/lib.linux-x86_64-2.6
copying src/ -> build/lib.linux-x86_64-2.6
running build_ext
building '_pbs' extension
creating build/temp.linux-x86_64-2.6
creating build/temp.linux-x86_64-2.6/src
creating build/temp.linux-x86_64-2.6/src/C++
g++ -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC
-fwrapv -I/opt/torque/include/ -fPIC -DTORQUE_4 -I/usr/include/python2.6
-c src/C++/pbs_wrap.cxx -o build/temp.linux-x86_64-2.6/src/C++/pbs_wrap.o
g++ -pthread -shared -I/opt/torque/include/
build/temp.linux-x86_64-2.6/src/C++/pbs_wrap.o -L/opt/torque/lib
-L/usr/lib64 -ltorque -lpython2.6 -o build/lib.linux-x86_64-2.6/
-L/opt/torque/lib -ltorque -Wl,-rpath -Wl,/opt/torque/lib

then I proceed further and gave make install command

*/pbs_python/pbs_python-4.4.0$ make install*
#(cd src; make)
python build
running build
running build_py
running build_ext
python ./ install --prefix //share/software ;
running install
running build
running build_py
running build_ext
running install_lib
creating //share/software/lib64/python2.6/site-packages/pbs
copying build/lib.linux-x86_64-2.6/ ->
copying build/lib.linux-x86_64-2.6/ ->
copying build/lib.linux-x86_64-2.6/ ->
byte-compiling //share/software/lib64/python2.6/site-packages/pbs/
to pbs.pyc
//share/software/lib64/python2.6/site-packages/pbs/ to
running install_egg_info
creating //share/software/lib64/python2.6/site-packages/pbs.pth
install -D LICENSE.openpbs //share/doc/ /LICENSE.openpbs
install: target `/LICENSE.openpbs' is not a directory
make: *** [install] Error 1

By looking at the Makefile, I have fixed manually the install -D steps,
which I believe the Makefile was not able to get the right path from the
defined variables. Of course they are not going to effect much in the
core installation of pbs_python, because the steps
consists of mainly the licenses and example scripts. The pbs_python
installation was successful and I tried to use the "pbs" module and
which was not working and throwing me an error message.

*In [1]: import pbs*
ImportError                               Traceback (most recent call last)

/home/vipin/codebase/TaskManager/<ipython console> in <module>()

/share/software/lib64/python2.6/site-packages/pbs/ in <module>()
      24                 fp.close()
      25             return _mod
---> 26     _pbs = swig_import_helper()
      27     del swig_import_helper
      28 else:

/share/software/lib64/python2.6/site-packages/pbs/ in
      20         if fp is not None:
      21             try:
---> 22                 _mod = imp.load_module('_pbs', fp, pathname,
      23             finally:
      24                 fp.close()

ImportError: /share/software/lib64/python2.6/site-packages/pbs/
undefined symbol: _Z13log_availablei

I have also checked the files associated with the shared object,
which looks everything fine as here

*pbs_python/pbs_python-4.4.0$ ldd
/share/software/lib64/python2.6/site-packages/pbs/* =>  (0x00007fff1fff0000) => /opt/torque/lib64/
(0x00007f18b85aa000) => /usr/lib64/
(0x00007f18b8203000) => /usr/lib64/ (0x00007f18b7efd000) => /lib64/ (0x00007f18b7c79000) => /lib64/ (0x00007f18b7a62000) => /lib64/ (0x00007f18b7845000) => /lib64/ (0x00007f18b74b2000) => /usr/lib64/ (0x00007f18b715f000) => /lib64/ (0x00007f18b6f49000) => /usr/lib64/ (0x00007f18b6baf000) => /usr/lib64/ (0x00007f18b6951000) => /lib64/ (0x00007f18b6749000) => /lib64/ (0x00007f18b6545000) => /lib64/ (0x00007f18b6341000)
         /lib64/ (0x000000306f000000) => /lib64/
(0x00007f18b60fd000) => /lib64/ (0x00007f18b5e16000) => /lib64/ (0x00007f18b5c12000) => /lib64/ (0x00007f18b59e6000) => /lib64/
(0x00007f18b57da000) => /lib64/ (0x00007f18b55d7000) => /lib64/ (0x00007f18b53bd000) => /lib64/ (0x00007f18b519d000)

Is there anything you can help the situation with me, I am happy to
provide more details from my side. I don't know if I am missing
to put the libs to be the last args at the end of the g++ command line
in make step?

many thanks in advance for the module,
#39 fixed Unable to build debian package bas dennis

I tried to build the Debian package for version 4.4.0 but it fails:

creating /var/tmp/dennis/pbs_python-4.4.0/debian/pbs-python/usr
creating /var/tmp/dennis/pbs_python-4.4.0/debian/pbs-python/usr/lib
creating /var/tmp/dennis/pbs_python-4.4.0/debian/pbs-python/usr/lib/python2.7
creating /var/tmp/dennis/pbs_python-4.4.0/debian/pbs-python/usr/lib/python2.7/site-packages
creating /var/tmp/dennis/pbs_python-4.4.0/debian/pbs-python/usr/lib/python2.7/site-packages/pbs
copying build/lib.linux-x86_64-2.7/ -> /var/tmp/dennis/pbs_python-4.4.0/debian/pbs-python///usr/lib/python2.7/site-packages/pbs
copying build/lib.linux-x86_64-2.7/ -> /var/tmp/dennis/pbs_python-4.4.0/debian/pbs-python///usr/lib/python2.7/site-packages/pbs
copying build/lib.linux-x86_64-2.7/ -> /var/tmp/dennis/pbs_python-4.4.0/debian/pbs-python///usr/lib/python2.7/site-packages/pbs
byte-compiling /var/tmp/dennis/pbs_python-4.4.0/debian/pbs-python///usr/lib/python2.7/site-packages/pbs/ to pbs.pyc
byte-compiling /var/tmp/dennis/pbs_python-4.4.0/debian/pbs-python///usr/lib/python2.7/site-packages/pbs/ to PBSQuery.pyc
running install_egg_info
Writing /var/tmp/dennis/pbs_python-4.4.0/debian/pbs-python///usr/lib/python2.7/site-packages/pbs/pbs_python-4.4.0-py2.7.egg-info
creating /var/tmp/dennis/pbs_python-4.4.0/debian/pbs-python///usr/lib/python2.7/site-packages/pbs.pth
install -D LICENSE.openpbs /var/tmp/dennis/pbs_python-4.4.0/debian/pbs-python///share/doc/ /LICENSE.openpbs
install: target `/LICENSE.openpbs' is not a directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/var/tmp/dennis/pbs_python-4.4.0'
make: *** [debian/stamp-makefile-install] Error 2

This line tries to use the ${PACKAGE} variable. But is is not set.

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