{"issue":{"state":"closed","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/3f5c31f8d45afe12f19559041a8cb1e3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"3f5c31f8d45afe12f19559041a8cb1e3","url":"https://api.github.com/users/pjodrr","login":"pjodrr","id":1140866},"milestone":null,"updated_at":"2011-10-27T17:02:32Z","labels":[],"assignee":null,"comments":5,"closed_at":"2011-10-27T17:02:32Z","url":"https://api.github.com/repos/phantez/pyslurm/issues/1","body":"Hello,\r\n\r\nWhen I run:\r\n\r\n    python -c \"import pyslurm; a, b = pyslurm.slurm_load_jobs('',2); print a\"\r\n\r\nI get:\r\n\r\n    python: symbol lookup error: /usr/lib/slurm/select_cons_res.so: undefined symbol: slurm_get_debug_flags\r\n\r\nand indeed that symbol is undefined:\r\n\r\n    # nm --dynamic /usr/lib/slurm/select_cons_res.so|grep slurm_get_debug_flags\r\n                 U slurm_get_debug_flags\r\n\r\nbut included in /usr/lib/libslurm.so.22:\r\n\r\n    # nm --dynamic /usr/lib/libslurm.so.22|grep slurm_get_debug_flags\r\n    00000000000553b0 T slurm_get_debug_flags\r\n\r\nwhich is interesting since pyslrum.so depends on libslurm:\r\n\r\n    # ldd /usr/lib/python2.6/dist-packages/pyslurm/pyslurm.so\r\n    ...\r\n        libslurm.so.22 => /usr/lib/libslurm.so.22 (0x00007f9fb37e9000)\r\n    ...\r\n\r\nI don't know why it cannot find the symbol.\r\nIf I do:\r\n\r\n    # LD_PRELOAD=/usr/lib/libslurm.so.22 python -c \"import pyslurm; a, b = pyslurm.slurm_load_jobs('',2); print a\"\r\n\r\nthen it works.  Can you solve the mystery?\r\n\r\nThanks,\r\n\r\n  Peter\r\n","html_url":"https://github.com/phantez/pyslurm/issues/1","number":1,"title":"symbol lookup error","id":2005216,"created_at":"2011-10-20T14:25:40Z"},"action":"closed"}