Slurm updated, now get libslurmdb.so.33 error?

82 views
Skip to first unread message

Alan Hoyle

unread,
Jul 5, 2022, 3:06:54 PM7/5/22
to pys...@googlegroups.com
Hey all,

They just updated our cluster from slurm 18.08.4 to slurm 21.08.2.  my old code had been working fine, but now when I run something, I get the following error message at import time:

Traceback (most recent call last):
  File "/path/to/myscript.py", line 11, in <module>
    import pyslurm
  File "/path/to/my_venv/lib/python3.7/site-packages/pyslurm/__init__.py", line 16, in <module>
    from .pyslurm import *
ImportError: libslurmdb.so.33: cannot open shared object file: No such file or directory

I tried uninstalling and reinistalling pyslurm with pip, and the version I'm getting is:

pyslurm            18.8.1.1

which seems to be a bit out of date?  

What do I need to do to get the newer version?  

--
  -  Alan Hoyle  -  al...@alanhoyle.com  -  http://www.alanhoyle.com/  -

Alan Hoyle

unread,
Jul 5, 2022, 3:26:07 PM7/5/22
to pys...@googlegroups.com
It appears that the version of pyslurm available in PIP listed:


is pyslurm 18.8.1.1

Is there any chance this can be updated to the latest release?  

-a

--
  -  Alan Hoyle  -  al...@alanhoyle.com  -  http://www.alanhoyle.com/  -

mick....@gmail.com

unread,
Jul 5, 2022, 3:27:36 PM7/5/22
to pyslurm
That version of pyslurm will only work with Slurm 18.x. You will need to upgrade! :)

I'm running pyslurm 20.02.0.0 with Slurm  21.08.7.

Regards
--Mick

mick....@gmail.com

unread,
Jul 5, 2022, 3:41:59 PM7/5/22
to pyslurm
We install from source and don't use PIP. It would be nice if PIP was updated.

Alan Hoyle

unread,
Jul 5, 2022, 4:56:51 PM7/5/22
to pys...@googlegroups.com
So I downloaded the latest PySlurm from github and the Cython that gets installed by "pip install pyslurm" isn't new enough.  

I had to do the following to make it work in my venv:

  1. source /path/to/my-venv/bin/activate # activate my python venv
  2. pip uninstall cython pyslurm  # uninstall broken pyslurm older cython
  3. pip install cython # installs the latest version
  4. git clone https://github.com/PySlurm/pyslurm.git # get the pyslurm source
  5. cd pyslurm 
  6. python setup.py build
  7. python setup.py install
This resulted in a new version of PySlurm in my venv that works.  

It would be much easier if the latest version was available in pypi though...

-a

--
  -  Alan Hoyle  -  al...@alanhoyle.com  -  http://www.alanhoyle.com/  -

Reply all
Reply to author
Forward
0 new messages