[Pywps-devel] pywps on mac osx

massimo di stefano massimodisasha at yahoo.it
Mon Sep 24 13:23:35 CEST 2007


Hi,

thanks a lot for Jachym,

sorry for the gap time in my answers,
but i was without internet connection during this days.


as next try, i deleted the old pywps installation, and re-installing  
it using the last rc3 version,

i followed the same configure step,

i.e.:

cp /pywps-2.0.0-rc3     /Library/WebServer/CGI-Executables/ 
pywps-2.0.0-rc3/
cd /Library/WebServer/CGI-Executables/pywps-2.0.0-rc3/
python setup.py install
ln -s /Library/WebServer/CGI-Executables/pywps-2.0.0-rc3/wps.py / 
Library/WebServer/CGI-Executables/wps.py

i done the same change in the files :  "settings.py"  and "grass.py"


then i commented the file out all the line only in the file :  /pywps/ 
processes/__init__.py
as follow :


# Author:	Jachym Cepicky
#		http://les-ejk.cz

#__all__ = [
#        "addvalue",
#        "classify" ,
#        "flow",
#        "ndvi",
#        "shortestpath",
#        "spearpath",
#        "visibility",
#        "inputsoutputs",
#        "buffer",
#        "convert",
#	]



now running :

cd /Library/WebServer/CGI-Executables/pywps-2.0.0-rc3
./wps.py


i've this log :


computer-di-epifanio:/Library/WebServer/CGI-Executables/pywps-2.0.0- 
rc3 epifanio$ ./wps.py
Traceback (most recent call last):
   File "./wps.py", line 347, in ?
     wps = WPS()
   File "./wps.py", line 126, in __init__
     self._checkRequest()
   File "./wps.py", line 188, in _checkRequest
     raise MissingParameterValue("service")
pywps.Wps.wpsexceptions.MissingParameterValuePyWPS  
MissingParameterValue: service
Content-type: text/xml

<?xml version="1.0" encoding="utf-8"?>
<ExceptionReport version="1.0.0" xmlns="http://www.opengis.net/ows"  
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <Exception exceptionCode="MissingParameterValue"  
locator="service"/>
computer-di-epifanio:/Library/WebServer/CGI-Executables/pywps-2.0.0- 
rc3 epifanio$ ln -s /Library/WebServer/CGI-Executables/pywps-2.0.0- 
rc3/wps.py /Library/WebServer/CGI-Executables/wps.py


is this .log  usefool ?



really thanks for your help!!!

Massimo.



Il giorno 21/set/07, alle ore 09:21, Jachym Cepicky ha scritto:

> Hi,
>
> well, you should modify the one, in pywsp/processes (more
> excatly /Library/WebServer/CGI-Executables/pywps-2.0.0-rc1/pywps/ 
> processes/__init__.py) directory, so NO process can be seen from  
> PyWPS, everything else should work.
>
> pywps/__init__.py should remain unchanged
>
> jachym
>
> massimo di stefano píše v Čt 20. 09. 2007 v 19:53 +0200:
>> Hi Jachym,
>>
>> i tried to comment out every process in __init.py__
>>
>> there are more than one     "__init.py__"   file, in the source tree
>> of py-wps,
>> i modified only ::
>> (/Library/WebServer/CGI-Executables/pywps-2.0.0-rc1/pywps/ 
>> __init__.py)
>>
>> # Author:	Jachym Cepicky
>> #		http://les-ejk.cz
>>
>> #__all__ = [ "wpsexceptions",
>> #        "ows",
>> #        "describe",
>> #        "execute",
>> #        "capabilities",
>> #        "settings",
>> #        "default_settings",
>> #        "default_grass",
>> #        "process"
>> #        ]
>>
>>
>> tring to run   .wps.py
>>
>> no produce any changes, it give me the same error log.
>>
>> thanks a lot for your help!
>>
>> Massimo.
>>
>>
>> Il giorno 19/set/07, alle ore 08:21, Jachym Cepicky ha scritto:
>>
>>> Hi,
>>>
>>> massimo di stefano píše v Út 18. 09. 2007 v 23:20 +0200:
>>>
>>>>
>>>>
>>>> computer-di-epifanio:/Library/WebServer/CGI-Executables/
>>>> pywps-2.0.0-rc1 epifanio$ ./wps.py
>>>> Traceback (most recent call last):
>>>>   File "./wps.py", line 73, in ?
>>>>     raise ServerError(e)
>>>>   File
>>>> "/Library/WebServer/CGI-Executables/pywps-2.0.0-rc1/pywps/Wps/
>>>> wpsexceptions.py", line 105, in __init__
>>>>     raise NoApplicableCode(value)
>>>> pywps.Wps.wpsexceptions.NoApplicableCodePyWPS NoApplicableCode: No
>>>> module named subprocess
>>>
>>> this is something strange. it failes on line 73, which says:
>>>
>>> ...
>>>  71 try:
>>>  72     from pywps.processes import *
>>>  73 except Exception,e :
>>>  74     raise ServerError(e)
>>> ...
>>>
>>> No module named subprocess -> addvalue uses no module called
>>> subprocess, does it? try to comment out
>>> *every* process in __init__.py (all =[]) and see, what happens
>>>
>>> Jachym
>>>
>>>
>>>
>>> -- 
>>> Jachym Cepicky
>>> e-mail: jachym.cepicky at gmail.com
>>> URL: http://les-ejk.cz
>>> GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub
>>>
>>
> -- 
> Jachym Cepicky
> e-mail: jachym.cepicky at gmail.com
> URL: http://les-ejk.cz
> GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wald.intevation.org/pipermail/pywps-devel/attachments/20070924/5c341214/attachment.html


More information about the Pywps-devel mailing list