Giter Club home page Giter Club logo

pyslurm's People

Contributors

gingergeeks avatar phantez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

ralphbean pkgw

pyslurm's Issues

Tried to build pyslurm, didn't work

Hi,

I tried to build pyslurm with the following commands but it didn't work:

$ git clone git://github.com/gingergeeks/pyslurm
$ cd pyslurm
$ python setup.py build  --slurm-lib=/usr/lib64/slurm --slurm-inc=/usr/include/slurm

Here is the output:

INFO:root:Info: 
INFO:root:Info: Building PySlurm (2.5.0-1)
INFO:root:Info: ------------------------------
INFO:root:Info: 
INFO:root:Info: Cython version 0.17.2 installed

ERROR:root:Warning: Cannot locate the Slurm include in /usr/include/slurm
ERROR:root:Warning: Need to provide either SLURM dir location for --build
ERROR:root:Warning: Please use --slurm=PATH or --slurm-lib=PATH and --slurm-inc=PATH
ERROR:root:Warning: Please set BlueGene type with --bgl --bgp or --bgq

I read the documentation but couldn't solve it. Maybe you could add more information about what directory it is actually looking for ? This is the output of "locate slurm" on the cluster: https://gist.github.com/7f0ec83dd288ecf1499c

symbol lookup error

Hello,

When I run:

python -c "import pyslurm; a, b = pyslurm.slurm_load_jobs('',2); print a"

I get:

python: symbol lookup error: /usr/lib/slurm/select_cons_res.so: undefined symbol: slurm_get_debug_flags

and indeed that symbol is undefined:

# nm --dynamic /usr/lib/slurm/select_cons_res.so|grep slurm_get_debug_flags
             U slurm_get_debug_flags

but included in /usr/lib/libslurm.so.22:

# nm --dynamic /usr/lib/libslurm.so.22|grep slurm_get_debug_flags
00000000000553b0 T slurm_get_debug_flags

which is interesting since pyslrum.so depends on libslurm:

# ldd /usr/lib/python2.6/dist-packages/pyslurm/pyslurm.so
...
    libslurm.so.22 => /usr/lib/libslurm.so.22 (0x00007f9fb37e9000)
...

I don't know why it cannot find the symbol.
If I do:

# LD_PRELOAD=/usr/lib/libslurm.so.22 python -c "import pyslurm; a, b = pyslurm.slurm_load_jobs('',2); print a"

then it works. Can you solve the mystery?

Thanks,

Peter

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.