[Zoo-discuss] ZOO WPS - Potential GEOS bug
Jonathan mayer
jonrmayer at yahoo.com
Tue Jan 5 10:18:45 PST 2016
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/ubuntugisubuntugis - Base Ubuntu 14.04 with GDAL etc |
| |
| View on github.com | Preview by Yahoo |
| |
| |
Specific ZooWPS et al set up code:-
jonrmayer/zoowps
| |
| | | | | | | |
| jonrmayer/zoowpszoowps |
| |
| View on github.com | Preview by Yahoo |
| |
| |
Many thanks for your assistance.
Jonathan
The test service is very simple:-
#!/usr/bin/python pythonimport libxml2import osimport sysimport zooimport 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']
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/zoo-discuss/attachments/20160105/975286df/attachment-0001.html>
More information about the Zoo-discuss
mailing list