[Community] import error (libspatialindex_c.so)
ml at ottenweller.net
Wed Aug 3 16:26:28 EEST 2011
I'm having problems getting RTree up and running. There seems to be a
problem with spatialindex.
The following happens when importing rtree:
>>> import rtree
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/rtree/__init__.py", line
8, in <module>
from index import Rtree
File "/usr/local/lib/python2.7/dist-packages/rtree/index.py", line 2,
File "/usr/local/lib/python2.7/dist-packages/rtree/core.py", line 85,
rt = ctypes.CDLL(lib_name)
File "/usr/lib/python2.7/ctypes/__init__.py", line 353, in __init__
self._handle = _dlopen(self._name, mode)
OSError: libspatialindex_c.so: cannot open shared object file: No such
file or directory
SpatialIndex (Version 1.5) is install as described on your website. The
shared object is present at '/usr/local/lib/libspatialindex_c.so'.
I'm running in to this problem on Ubuntu 11.04 64bit while my
rtree/spatialindex installation on OS X (via homebrew) works fine.
I actually don't know how and where to look to get this fixed.
thanks for your help
More information about the Community