Bug 754262

Summary: pypar attempting to load outdated libmpi.so
Product: [Fedora] Fedora Reporter: Elliott Forney <elliott.forney>
Component: pyparAssignee: Susi Lehtola <susi.lehtola>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 15CC: dakingun, kaiserkarl31, susi.lehtola
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: pypar-2.1.4_94-5.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-11-26 23:04:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Elliott Forney 2011-11-15 21:10:17 UTC
Description of problem:

The pypar-openmpi rpm attempts to load libmpi.so.0 but the current version is libmpi.so.1.  This causes the module to fail on import.

Version-Release number of selected component (if applicable):

openmpi-1.5-3.fc15.x86_64
openmpi-devel-1.5-3.fc15.x86_64
pypar-openmpi-2.1.4_94-4.fc15.x86_64
pypar-common-2.1.4_94-4.fc15.noarch

How reproducible:

Always.

Steps to Reproduce:

yum install pypar-openmpi
export PATH=/usr/lib64/openmpi/bin:${PATH}
export LD_LIBRARY_PATH=/usr/lib64/openmpi/lib:${LD_LIBRARY_PATH}
export PYTHONPATH=/usr/lib64/python2.7/site-packages/openmpi/
python
import pypar
  
Actual results:

>>> import pypar
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.7/site-packages/openmpi/pypar/__init__.py", line 33, in <module>
    from pypar import *
  File "/usr/lib64/python2.7/site-packages/openmpi/pypar/pypar.py", line 863, in <module>
    mpi = CDLL('libmpi.so.0', RTLD_GLOBAL)
  File "/usr/lib64/python2.7/ctypes/__init__.py", line 353, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: libmpi.so.0: cannot open shared object file: No such file or directory


Expected results:

>>> import pypar
Pypar (version 2.1.4) initialised MPI OK with 1 processors


Additional info:

The following line in pypar.py is causing the problem:

mpi = CDLL('libmpi.so.0', RTLD_GLOBAL)

I presume changing it to libmpi.so.1 will solve it.

Comment 1 Karl 2011-11-15 21:48:37 UTC
I suspect a more general solution is to change it to libmpi.so (which is a symbolic link to libmpi.so.1, and probably was to libmpi.so.0 as well in older versions).  I came very close to duplicating this bug report, by the way....

Comment 2 Susi Lehtola 2011-11-15 22:49:45 UTC
Good point. Seems like no-one has been using the package in quite some time..

It also occurs to me, that MPICH2 support is probably broken by that statement. I'll contact upstream for a fix.

Comment 3 Fedora Update System 2011-11-17 20:08:01 UTC
pypar-2.1.4_94-5.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/pypar-2.1.4_94-5.fc16

Comment 4 Fedora Update System 2011-11-17 20:08:08 UTC
pypar-2.1.4_94-5.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/pypar-2.1.4_94-5.fc15

Comment 5 Fedora Update System 2011-11-19 06:01:58 UTC
Package pypar-2.1.4_94-5.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing pypar-2.1.4_94-5.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-16109/pypar-2.1.4_94-5.fc15
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2011-11-26 23:04:40 UTC
pypar-2.1.4_94-5.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2011-11-26 23:07:50 UTC
pypar-2.1.4_94-5.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.