Code Monkey home page Code Monkey logo

platform-python-lsf-api's People

Contributors

tmetsch avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

platform-python-lsf-api's Issues

typemaps do not seem to work on Windows

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?

Looks like this may be broken for lsf 9.1

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()

:(

One typemap behaves weird on centos 5.5...

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: ========
[...]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.