I would like to use jobmonarch with LSF queuing system. I downloaded already latest sources from svn. I found that lsfObject is needed to use LSF features. Hence I downloaded lsfObject-0.1. Problems started here.
Script build.sh had to be adjusted:
*** build.sh-ORG 2008-03-12 20:43:16.000000000 +0100
--- build.sh 2008-11-07 11:59:20.000000000 +0100
***************
*** 49,54 ****
--- 49,55 ----
exit
fi
+ cd ..
sed -e "s,<LSFINCLUDEPATH>,${LSFINCLUDEPATH}," -e "s,<SWIGLIBPATH>,$SWIGLIBPATH," $interfaceFile > "lsfSwig/lsfSwig.i"
cd lsfSwig
------------------------------------------------------------------
The same was with lsfSwig.i.templet (I'm not sure if I did it correctly):
** lsfSwig.i.templet 2008-11-06 17:28:53.000000000 +0100
--- lsfSwig.i.templet-ORG 2008-03-12 16:04:03.000000000 +0100
***************
*** 32,39 ****
After above changes all has compiled without error or warnings but jobmond.py said that lsfObject is not installed.
test.py in lsfObject gave me following error:
/usr/lib64/python2.4/site-packages/lsfObject/test.py
Traceback (most recent call last):
File "/usr/lib64/python2.4/site-packages/lsfObject/test.py", line 3, in ?
from lsfObject import *
File "/usr/lib64/python2.4/site-packages/lsfObject/lsfObject.py", line 23, in ?
from lsfSwig import *
File "/usr/lib64/python2.4/site-packages/lsfSwig/__init__.py", line 21, in ?
from lsfSwig import *
File "/usr/lib64/python2.4/site-packages/lsfSwig/lsfSwig.py", line 7, in ?
import _lsfSwig
ImportError: /usr/lib64/python2.4/site-packages/_lsfSwig.so: undefined symbol: lsb_closestream
Could you help me to resolve this problem?
Regards
Jarek
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have found solution by myself. Additional to previously mentioned changes, changes in setup.py have to be done - lsfSwig library has to be linked also with lsbstream and python2.4:
Hello,
I would like to use jobmonarch with LSF queuing system. I downloaded already latest sources from svn. I found that lsfObject is needed to use LSF features. Hence I downloaded lsfObject-0.1. Problems started here.
Script build.sh had to be adjusted:
*** build.sh-ORG 2008-03-12 20:43:16.000000000 +0100
--- build.sh 2008-11-07 11:59:20.000000000 +0100
***************
*** 49,54 ****
--- 49,55 ----
exit
fi
+ cd ..
sed -e "s,<LSFINCLUDEPATH>,${LSFINCLUDEPATH}," -e "s,<SWIGLIBPATH>,$SWIGLIBPATH," $interfaceFile > "lsfSwig/lsfSwig.i"
cd lsfSwig
------------------------------------------------------------------
The same was with lsfSwig.i.templet (I'm not sure if I did it correctly):
** lsfSwig.i.templet 2008-11-06 17:28:53.000000000 +0100
--- lsfSwig.i.templet-ORG 2008-03-12 16:04:03.000000000 +0100
***************
*** 32,39 ****
%include "<SWIGLIBPATH>/cpointer.i";
%include "<SWIGLIBPATH>/carrays.i";
! #%include "<SWIGLIBPATH>/typemaps.i";
! %include "<SWIGLIBPATH>/python/typemaps.i";
%include "<SWIGLIBPATH>/python/file.i";
-------------------------------------------------------------------
After above changes all has compiled without error or warnings but jobmond.py said that lsfObject is not installed.
test.py in lsfObject gave me following error:
/usr/lib64/python2.4/site-packages/lsfObject/test.py
Traceback (most recent call last):
File "/usr/lib64/python2.4/site-packages/lsfObject/test.py", line 3, in ?
from lsfObject import *
File "/usr/lib64/python2.4/site-packages/lsfObject/lsfObject.py", line 23, in ?
from lsfSwig import *
File "/usr/lib64/python2.4/site-packages/lsfSwig/__init__.py", line 21, in ?
from lsfSwig import *
File "/usr/lib64/python2.4/site-packages/lsfSwig/lsfSwig.py", line 7, in ?
import _lsfSwig
ImportError: /usr/lib64/python2.4/site-packages/_lsfSwig.so: undefined symbol: lsb_closestream
Could you help me to resolve this problem?
Regards
Jarek
I have found solution by myself. Additional to previously mentioned changes, changes in setup.py have to be done - lsfSwig library has to be linked also with lsbstream and python2.4:
*** setup.py 2008-11-18 19:58:57.000000000 +0100
--- setup.py-ORG 2008-03-12 14:41:58.000000000 +0100
***************
*** 44,50 ****
sources=['lsfSwig/lsfSwig_wrap.c'],
include_dirs=[lsfIncDir],
library_dirs=[lsfLibDir],
! libraries=['bat', 'lsf', 'lsbstream', 'dl', 'nsl', 'python2.4'] )
setup (name = 'lsfObject',
version = '0.1',
Regards,
Jarek
P.S. I'm using Platform LSF 7.0