[ZOO-Discuss] Error when running GRASS processes

Soeren Gebbert soerengebbert at googlemail.com
Thu Apr 28 22:25:41 PDT 2011


Hello,

2011/4/29 Pierre Roudier <pierre.roudier at gmail.com>:
> Gerald, Soeren,
>
> Many thanks for your answers.
>
> I do make sure I'm running the latest svn updates of both ZOO and
> wps-grass-bridge (I like the sound of a compiling machine in the
> morning and it keeps my coffee cup warm ;).
>
> Unfortunately, the apache log is not really verbose, only sasying that
> the v_voronoi module is not found:
>
> ImportError: No module named v_voronoi
>
>> make sure that the wps-grass-bridge as well as the zcfg and python
>> services are located in the process directory.
>>
>
> I'm not too sure what you call process directory. Here is the content
> of my /usr/lib/cgi-bin/
> gms  HelloPy.zcfg  main.cfg  pywps.cgi  pywps_start  test_service.py
> v_delaunay.zcfg  v_voronoi.zcfg  ZOOGrassModuleStarter.py
> zoo_loader.cgi

The zoo services v_voronoi.py and v_delaunay.py must be present in
/usr/lib/cgi-bin/ too.

The minimum content of this directory should be:
gms  main.cfg  v_delaunay.py  v_delaunay.zcfg  v_voronoi.py
v_voronoi.zcfg  ZOOGrassModuleStarter.py  zoo_loader.cgi

> the gms directory contains the following files:
> ErrorHandler.py  GrassModuleStarter.py  GrassSettings.py  __init__.py
> ParameterParser.py  ProcessLogging.py  Testing
>
> I guess this is probably where I get it wrong, as the HelloWorld
> module, independant from wps-grass-bridge, is working.
>
>> Since today there are several XML execute requests and a simple python
>> script available in wps-grass-bridge to test the WPS server:
>> http://code.google.com/p/wps-grass-bridge/source/browse/#svn%2Ftrunk%2FTesting%2FPython
>>
>
> Yes, I noticed it - is it supposed to be launched from my server's shell?

Yes, it is designed to run from the shell i.e:
cd wps-grass-bridge/Testing/Python
python SendRequests.py -f ExecuteRequests/v.voronoi.execute.xml -u
"http://localhost/cgi-bin/zoo_loader.cgi"

Best regards
Soeren

>
> Your help, and the efforts you are putting on open-source software,
> is greatly appreciated.
>
> Best,
>
> Pierre
>
>> Best regards
>> Soeren
>>
>>
>> 2011/4/28 Pierre Roudier <pierre.roudier at gmail.com>:
>>> Dear zoo-keepers,
>>>
>>> I'm trying the WPS GRASS bridge - unfortunately I can't make it work so far.
>>>
>>> I've added two GRASS  processes to my /usr/lib/cgi-bin:
>>>
>>> root at grass:/usr/local/src/zoo/zoo-kernel# ls /usr/lib/cgi-bin/ | grep .zcfg
>>> HelloPy.zcfg
>>> v_delaunay.zcfg
>>> v_voronoi.zcfg
>>>
>>> The GetCapabilities is working fine. In QGIS, I'm using the WPS plugin
>>> to try to make a Voronoi tesselation or a Delaunay triangulation of a
>>> dummy points shapefile. In both cases, I got the following error when
>>> running the process:
>>>
>>> <?xml version="1.0" encoding="utf-8"?>
>>> <ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows/1.1"
>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>> xmlns:xlink="http://www.w3.org/1999/xlink"
>>> xsi:schemaLocation="http://www.opengis.net/ows/1.1
>>> http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd"
>>> xml:lang="en-US" version="1.1.0">
>>>  <ows:Exception exceptionCode="NoApplicableCode">
>>>    <ows:ExceptionText>Python module v_delaunay cannot be loaded.
>>> </ows:ExceptionText>
>>>  </ows:Exception>
>>> </ows:ExceptionReport>
>>>
>>> Any suggestion?
>>>
>>> Cheers,
>>>
>>> Pierre
>>>
>>>
>>> --
>>> Scientist
>>> Landcare Research, New Zealand
>>> _______________________________________________
>>> Zoo-discuss mailing list
>>> Zoo-discuss at gisws.media.osaka-cu.ac.jp
>>> http://gisws.media.osaka-cu.ac.jp/mailman/listinfo/zoo-discuss
>>>
>>
>
>
>
> --
> Scientist
> Landcare Research, New Zealand
>



More information about the Zoo-discuss mailing list