Happy Friday!
For many moon we've been happy monitoring PBS/Torque clusters using
pbswebmon. Oxford brought it to attention, & it's a great little tool.
http://sourceforge.net/projects/pbswebmon
To date our pbswebmon-itoring boxen all been SL5. No problem. Now one is
SL6 (non-LCG) & pbswebmon not work.
Traceback (most recent call last):
File "/var/www/cgi-bin/pbswebmon.py", line 19, in <module>
from PBSQuery import PBSQuery, PBSError
File "/usr/lib64/python2.6/PBSQuery.py", line 61, in <module>
import pbs
File "/usr/lib64/python2.6/pbs.py", line 5, in <module>
import _pbs
ImportError: /usr/lib64/python2.6/_pbs.so: undefined symbol: Py_InitModule4
Premature end of script headers: pbswebmon.py
To those of you who were using pbswebmon with SL5, did you make it work on
SL6? If so, HowTo very welcome! Very sadly I hardly know python at all so
would really appreciate a fix.
I did figure out that the "Py_InitModule4" function should be
"Py_InitModule4_64"; basically /usr/include/python2.6/modsupport.h renames
the former to the latter.
Someone at my site has written a dummy library that forwards the
Py_InitModule4 call to Py_InitModule4_64, but still no work, segfault:
LD_PRELOAD=/users/phmag/temp/createLibFor_Py_InitModule4/_dummy_Py_InitModule4.so /var/www/cgi-bin/pbswebmon.py
/usr/lib64/python2.6/pbs.py:5: RuntimeWarning: Python C API version mismatch for module _pbs: This Python has API version 1013, module _pbs has version 1012.
import _pbs
/usr/lib64/python2.6/pbs.py:5: RuntimeWarning: Python C API version mismatch for module swig_runtime_data2: This Python has API version 1013, module swig_runtime_data2 has version 1012.
import _pbs
Content-Type: text/html
Segmentation fault
Grateful for an SL6-working version of pbswebmon if anyone got one....
|