tmetsch / platform-python-lsf-api Goto Github PK
View Code? Open in Web Editor NEWPython bindings for Platform LSF
Home Page: http://www.platform.com
License: GNU Lesser General Public License v3.0
Python bindings for Platform LSF
Home Page: http://www.platform.com
License: GNU Lesser General Public License v3.0
I'm using swigwin-2.0.4, Visual Studio 2005 (64bits), ActivePython 2.7.2 (64bits) and LSF 7.0.3.
When I try to run functions like lsf.lsb_openjobinfo(), etc, I always get a message that arguments are 'int *', even though they should be taken care of by the typemaps.
Any idea?
root@farm3-srv1:/tmp/platform-python-lsf-api-master# python setup.py build
running build
running build_py
running build_ext
root@farm3-srv1:/tmp/platform-python-lsf-api-master# python setup.py install
running install
running build
running build_py
running build_ext
running install_lib
copying build/lib.linux-x86_64-2.7/pythonlsf/lsf.py -> /software/python-2.7.3/lib/python2.7/site-packages/pythonlsf
byte-compiling /software/python-2.7.3/lib/python2.7/site-packages/pythonlsf/lsf.py to lsf.pyc
running install_egg_info
Removing /software/python-2.7.3/lib/python2.7/site-packages/platform_python_lsf_api-0.0.1-py2.7.egg-info
Writing /software/python-2.7.3/lib/python2.7/site-packages/platform_python_lsf_api-0.0.1-py2.7.egg-info
root@farm3-srv1:/tmp/platform-python-lsf-api-master# python
Python 2.7.3 (default, Jun 11 2013, 13:21:10)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
from pythonlsf import lsf
Traceback (most recent call last):
File "", line 1, in
File "pythonlsf/lsf.py", line 26, in
_lsf = swig_import_helper()
File "pythonlsf/lsf.py", line 18, in swig_import_helper
import _lsf
ImportError: No module named _lsf
quit()
:(
The following typemap in pylsf/lsf.i:
%typemap(freearg) int [ANY] {
free((int *) $1);
}
causes
('LSF Clustername is :', 'tecix')
*** glibc detected *** python2.7: munmap_chunk(): invalid pointer: 0x00007fffde2af360 ***
======= Backtrace: =========
/lib64/libc.so.6(cfree+0x166)[0x3764a729d6]
/home/lsfadmin/dgsi/src/pylsf/build/lib.linux-x86_64-2.7/pylsf/_lsf.so[0x2b5d7599c697]
python2.7(PyEval_EvalFrameEx+0x5ec4)[0x49ba34]
python2.7(PyEval_EvalCodeEx+0x89b)[0x49d87b]
python2.7(PyEval_EvalFrameEx+0x5805)[0x49b375]
python2.7(PyEval_EvalFrameEx+0x6f1d)[0x49ca8d]
python2.7(PyEval_EvalCodeEx+0x89b)[0x49d87b]
python2.7[0x4fbfdf]
python2.7(PyObject_Call+0x5d)[0x41882d]
python2.7[0x41fd3f]
python2.7(PyObject_Call+0x5d)[0x41882d]
python2.7[0x468941]
python2.7[0x468ae5]
python2.7(PyObject_SetAttr+0x84)[0x44d5e4]
python2.7(PyEval_EvalFrameEx+0x14e6)[0x497056]
python2.7(PyEval_EvalFrameEx+0x6f1d)[0x49ca8d]
python2.7(PyEval_EvalCodeEx+0x89b)[0x49d87b]
python2.7(PyEval_EvalCode+0x32)[0x49d8f2]
python2.7(PyRun_FileExFlags+0xc1)[0x4bfa01]
python2.7(PyRun_SimpleFileExFlags+0x1d8)[0x4bfcb8]
python2.7(Py_Main+0x9ec)[0x414a0c]
/lib64/libc.so.6(__libc_start_main+0xf4)[0x3764a1d994]
python2.7[0x413c59]
======= Memory map: ========
[...]
Check if cython can be used...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.