Bug 754262 - pypar attempting to load outdated libmpi.so
Summary: pypar attempting to load outdated libmpi.so
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: pypar
Version: 15
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Susi Lehtola
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-15 21:10 UTC by Elliott Forney
Modified: 2011-11-26 23:07 UTC (History)
3 users (show)

Fixed In Version: pypar-2.1.4_94-5.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-26 23:04:40 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.