On Oct 19, 2009, at 10:30 AM, Neil wrote:

> I seem to be having the same problem as mentioned in this message:
> http://lists.gispython.org/pipermail/community/2009-August/002162.html
>
> I download svn version 1466, spatiallibrary as per website, and build
> works fine. In python prompt, though, I get
>  File "<stdin>", line 1, in <module>
>  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ 
> python2.6/site-packages/Rtree-0.5.0-py2.6.egg/rtree/__init__.py",
> line 8, in <module>
>    from index import Rtree
>  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ 
> python2.6/site-packages/Rtree-0.5.0-py2.6.egg/rtree/index.py",
> line 2, in <module>
>    import core
>  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ 
> python2.6/site-packages/Rtree-0.5.0-py2.6.egg/rtree/core.py",
> line 88, in <module>
>    rt = ctypes.CDLL(lib_name)
>  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ 
> python2.6/ctypes/__init__.py",
> line 353, in __init__
>    self._handle = _dlopen(self._name, mode)
> OSError: dlopen(libspatialindex_c.dylib, 6): image not found
>
> which is the same error. Setting LD_LIBRARY_PATH to the location of
> the Rtree egg directory doesn't work, however.

Please try DYLD_LIBRARY_PATH, which is the osx-equivalent of  
LD_LIBRARY_PATH.

This reminds me we need a release of both libspatialindex (which has  
the C API now) and Rtree to fix up these issues.  I will try to kick a  
libspatialindex release out this week so we can do an Rtree one.  
Brent's added a lot of fun stuff in svn that he can tell folks about.
_______________________________________________
Community mailing list
[email protected]
http://lists.gispython.org/mailman/listinfo/community

Reply via email to