0 votes
51 views
Hello,

I'm trying to use the package mpi4py to parallelize a task in a python script (PHAT_Segment.py). I've typed the command:

mpiexec -n 4 python PHAT_Segment.py

And I am getting the following error:

ImportError: librt.so.1: cannot open shared object file: No such file or directory

I've checked that mpi4py is installed and have tried to look up this error online and haven't had any success. Please let me know how I should proceed.
by aspatel (140 points)
edited by 0 | 51 views

1 Answer

0 votes
Thanks for the report and we apologize for the inconvenience.  The missing libraries have been copied to the right environment and you should be able to use MPI again.  If you continue to have problems, please follow up.
by datalab (21.6k points)
Thank you for the response. I've re-run my script and am receiving the following error message:

Traceback (most recent call last):
  File "/data0/sw/anaconda3/lib/python3.10/site-packages/psutil/_pslinux.py", line 303, in <module>
    set_scputimes_ntuple("/proc")
  File "/data0/sw/anaconda3/lib/python3.10/site-packages/psutil/_common.py", line 399, in wrapper
    ret = cache[key] = fun(*args, **kwargs)
  File "/data0/sw/anaconda3/lib/python3.10/site-packages/psutil/_pslinux.py", line 270, in set_scputimes_ntuple
    with open_binary('%s/stat' % procfs_path) as f:
  File "/data0/sw/anaconda3/lib/python3.10/site-packages/psutil/_common.py", line 711, in open_binary
    return open(fname, "rb", **kwargs)
FileNotFoundError: [Errno 2] No such file or directory: '/proc/stat'
Follow-up on MPI question

449 questions

463 answers

473 comments

658 users

Welcome to Data Lab Help Desk, where you can ask questions and receive answers from other members of the community.

Categories