phantez / pyslurm Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v2.0
License: GNU General Public License v2.0
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
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
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.