[Zoo-discuss] ZOO WPS - Potential GEOS bug

Fenoy Gerald gerald.fenoy at geolabs.fr
Thu Jan 7 00:02:53 PST 2016


Hello Jonathan,
I suppose that this answer [1] does not fit with your requirements isn’t it  ?

Hope to hear back from you,

[1] https://lists.osgeo.org/pipermail/zoo-discuss/2015-November/001382.html

> Le 5 janv. 2016 à 19:18, Jonathan mayer <jonrmayer at yahoo.com> a écrit :
> 
> 
> Dear List,
> 
> I have been trying to get shapely to work within a zoo service but it always fails when accessing geos - it can't locate the library.
> 
> Shapely works at the commandline and in another Apache CGI Python test file that I have set up so I believe that I have set up my environment appropriately
> 
> 
> 
> I am using Docker to automate much of this process and the problem is replicable.
> 
> As an aside - I am hoping to produce comprehensive ZooWPS Dockerfiles for the community but I am a beginner in Linux/Docker & ZooWPS, so it is all a little hard!!
> 
> Please view the following relevant Docker files in order:-
> 
> Generic GIS setup - All prerequisites etc
> 
> 
> jonrmayer/ubuntugis
>  
>  
> 
>  
>  
>  
>  
>  
> jonrmayer/ubuntugis
> ubuntugis - Base Ubuntu 14.04 with GDAL etc
> View on github.com
> Preview by Yahoo
>  
> 
> 
> 
> 
> Specific ZooWPS et al set up code:-
> 
> jonrmayer/zoowps
>  
>  
> 
>  
>  
>  
>  
>  
> jonrmayer/zoowps
> zoowps
> View on github.com
> Preview by Yahoo
>  
> 
> 
> 
> 
> Many thanks for your assistance.
> 
> Jonathan
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> The test service is very simple:-
> 
> #!/usr/bin/python python
> import libxml2
> import os
> import sys
> import zoo
> import shapely
> 
> import shapely.wkt
> 
> 
> def testrecreation1(conf,inputs,outputs):
>     outputs["Result"]["value"]=\
>             "Hello "+inputs["a"]["value"]+" from the ZOO-Project Python world !   " + str(sys.path)
>     return zoo.SERVICE_SUCCEEDED
> 
> 
> 
> The error message is:-
> 
> 
> Message: TRACE: (10, 'No child processes')
> <type 'exceptions.IOError'>
> Unable to run your python process properly. Please check the following messages : ['  File "/var/www/cgi-bin/testrecreation1.py", line 8, in <module>\n    import shapely.wkt\n', '  File "/usr/local/lib/python2.7/dist-packages/shapely/wkt.py", line 4, in <module>\n    from shapely import geos\n', '  File "/usr/local/lib/python2.7/dist-packages/shapely/geos.py", line 66, in <module>\n    _lgeos = load_dll(\'geos_c\', fallbacks=[\'libgeos_c.so.1\', \'libgeos_c.so\'])\n', '  File "/usr/local/lib/python2.7/dist-packages/shapely/geos.py", line 33, in load_dll\n    lib = find_library(libname)\n', '  File "/usr/lib/python2.7/ctypes/util.py", line 253, in find_library\n    return _findSoname_ldconfig(name) or _get_soname(_findLib_gcc(name))\n', '  File "/usr/lib/python2.7/ctypes/util.py", line 246, in _findSoname_ldconfig\n    f.close()\n']
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Zoo-discuss mailing list
> Zoo-discuss at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/zoo-discuss



Gérald Fenoy
http://wiki.osgeo.org/wiki/User:Djay



More information about the Zoo-discuss mailing list