Bug 1001840 - python-Rtree fails with wrong SONAME
Summary: python-Rtree fails with wrong SONAME
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-Rtree
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Volker Fröhlich
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-27 23:03 UTC by Philip Rowlands
Modified: 2014-02-17 21:08 UTC (History)
1 user (show)

Fixed In Version: python-Rtree-0.7.0-5.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-17 21:04:00 UTC
Type: Bug


Attachments (Terms of Use)

Description Philip Rowlands 2013-08-27 23:03:25 UTC
Description of problem:
The rtree module provided with python-Rtree fails to load, because it's trying to dlopen the wrong file.

$ rpm -q python-Rtree
python-Rtree-0.7.0-2.fc19.noarch

$ python -c 'import rtree'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/rtree/__init__.py", line 1, in <module>
    from index import Rtree
  File "/usr/lib/python2.7/site-packages/rtree/index.py", line 2, in <module>
    import core
  File "/usr/lib/python2.7/site-packages/rtree/core.py", line 85, in <module>
    rt = ctypes.CDLL(lib_name)
  File "/usr/lib64/python2.7/ctypes/__init__.py", line 360, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: libspatialindex_c.so: cannot open shared object file: No such file or directory

$ readelf -d /usr/lib64/libspatialindex_c.so.3 | grep soname
 0x000000000000000e (SONAME)             Library soname: [libspatialindex_c.so.3]

The code in rtree/core.py should open libspatialindex_c by its SONAME (or libspatialindex should change its SONAME, don't mind which).

Comment 1 Fedora Update System 2014-02-08 13:29:24 UTC
python-Rtree-0.7.0-5.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/python-Rtree-0.7.0-5.fc20

Comment 2 Fedora Update System 2014-02-08 13:29:34 UTC
python-Rtree-0.7.0-5.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/python-Rtree-0.7.0-5.fc19

Comment 3 Volker Fröhlich 2014-02-08 13:29:42 UTC
Sorry it took so long!

Comment 4 Fedora Update System 2014-02-09 03:51:18 UTC
Package python-Rtree-0.7.0-5.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing python-Rtree-0.7.0-5.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-2195/python-Rtree-0.7.0-5.fc20
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2014-02-17 21:04:00 UTC
python-Rtree-0.7.0-5.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2014-02-17 21:08:26 UTC
python-Rtree-0.7.0-5.fc20 has been pushed to the Fedora 20 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.