On Wed, Jun 9, 2010 at 5:37 PM, Christian Ledermann
<[email protected]> wrote:
> Hi,
>
> I have problems getting Rtree to run.
>
> when i start up zope (with zgeo.wfs) i get the error:
> ---------------
> ...
>  from index import BaseIndex
>  File
> "/home/ledermac/devel/plone4zgeo/zinstance/src/zgeo.wfs/zgeo/wfs/geocatalog/index.py",
>  line 4, in <module>
>    from rtree import Rtree
>  File
> "/home/ledermac/.buildout/eggs/Rtree-0.6.0-py2.6.egg/rtree/__init__.py",
> line 8, in <module>
>    from index import Rtree
>  File
> "/home/ledermac/.buildout/eggs/Rtree-0.6.0-py2.6.egg/rtree/index.py",
> line 2, in <module>
>    import core
>  File
> "/home/ledermac/.buildout/eggs/Rtree-0.6.0-py2.6.egg/rtree/core.py",
> line 85, in <module>
>    rt = ctypes.CDLL(lib_name)
>  File
> "/home/ledermac/devel/plone4zgeo/Python-2.6/lib/python2.6/ctypes/__init__.py",
>  line 353, in __init__
>    self._handle = _dlopen(self._name, mode)
> zope.configuration.xmlconfig.ZopeXMLConfigurationError: File
> "/home/ledermac/devel/plone4zgeo/zinstance/parts/instance/etc/site.zcml", 
> line 15.2-15.55
>    ZopeXMLConfigurationError: File
> "/home/ledermac/devel/plone4zgeo/zinstance/parts/instance/etc/package-includes/008-zgeo.wfs-configure.zcml",
>  line 1.0-1.52
>    ZopeXMLConfigurationError: File
> "/home/ledermac/devel/plone4zgeo/zinstance/src/zgeo.wfs/zgeo/wfs/configure.zcml",
>  line 9.4-13.4
>    OSError: libspatialindex_c.so: cannot open shared object file: No
> such file or directory
> -----------------------
>
> libspatialindex_c.so is present in /usr/local/lib/
>
> #ls -l /usr/local/lib/
> total 2792
> -rw-r--r--  1 root root  1465800 2010-06-09 12:58 libspatialindex.a
> -rw-r--r--  1 root root   236400 2010-06-09 12:58 libspatialindex_c.a
> -rwxr-xr-x  1 root root     1042 2010-06-09 12:58 libspatialindex_c.la
> lrwxrwxrwx  1 root root       26 2010-06-09 12:58 libspatialindex_c.so
> -> libspatialindex_c.so.1.0.0
> lrwxrwxrwx  1 root root       26 2010-06-09 12:58 libspatialindex_c.so.1
> -> libspatialindex_c.so.1.0.0
> -rwxr-xr-x  1 root root   162913 2010-06-09 12:58
> libspatialindex_c.so.1.0.0
> -rwxr-xr-x  1 root root      985 2010-06-09 12:58 libspatialindex.la
> lrwxrwxrwx  1 root root       24 2010-06-09 12:58 libspatialindex.so ->
> libspatialindex.so.1.0.0
> lrwxrwxrwx  1 root root       24 2010-06-09 12:58 libspatialindex.so.1
> -> libspatialindex.so.1.0.0
> -rwxr-xr-x  1 root root   934342 2010-06-09 12:58
> libspatialindex.so.1.0.0
>
>
> I installed spatialindex-src-1.5.0.tar.gz but also have an older version
> in /usr/lib
>
> the python i am using is the one from the plone 4 installer.
>
> Any pointers?

Hi Christian,

First: I am not at all sure that zgeo.wfs works with Rtree 0.6. I
would need some confirmation from Eric Brehault.

You need to put /usr/local/lib ahead of /usr/lib on your library
search path. I wouldn't do this system wide, but would set
LD_LIBRARY_PATH=/usr/local/lib:... within the process running
Zope/Plone. You're using buildout, yes? If so, you can set the path
through an instance buildout option. Otherwise, set it in your start
up script.

Cheers,

-- 
Sean
_______________________________________________
Community mailing list
[email protected]
http://lists.gispython.org/mailman/listinfo/community

Reply via email to