Red Hat Bugzilla – Bug 1001840
python-Rtree fails with wrong SONAME
Last modified: 2014-02-17 16:08:26 EST
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 -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>
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).
python-Rtree-0.7.0-5.fc20 has been submitted as an update for Fedora 20.
python-Rtree-0.7.0-5.fc19 has been submitted as an update for Fedora 19.
Sorry it took so long!
* 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:
then log in and leave karma (feedback).
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.
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.