Custom Query (43 matches)


Show under each result:

Results (4 - 6 of 43)

1 2 3 4 5 6 7 8 9 10 11 12
Ticket Resolution Summary Owner Reporter
#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,
#32 fixed incorrect version check bas thomas.moschny@…

While trying to use pbs_python with Torque 3.0.0 we saw that the 2.1 versions of and are symlinked and used, and not the 2.4 ones. This results in certain functions not being available.

The reason is this check in

if major_version  >= 2 and minor_version >= 4 and build_version >= 7:

Obviously this evals to False when major_version is 3, but minor_version and build_version are 0.

Using tuple comparison like this:

if (major_version, minor_version, build_version) > (2, 4, 7):

fixes the issue for us.

#36 fixed support for torque 4.2 bas stijn.deweirdt@…

although pbs_python code compiles, one cannot load the

>>> import pbs
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.6/site-packages/pbs/", line 25, in <module>
    _pbs = swig_import_helper()
  File "/usr/lib64/python2.6/site-packages/pbs/", line 21, in swig_import_helper
    _mod = imp.load_module('_pbs', fp, pathname, description)
ImportError: /usr/lib64/python2.6/site-packages/pbs/ undefined symbol: log_record

a lots has changed codewise in torque 4.2, i assume a new swig interface file has to be generated.

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