[Pythonmac-SIG] pywps on mac osx

massimo di stefano massimodisasha at yahoo.it
Wed Oct 3 03:13:19 CEST 2007


HI

how defoult i'm using the framework build  2.5 :

Python 2.5.1 (r251:54869, Apr 18 2007, 22:08:04)
/Library/Frameworks/Python.framework/Versions/2.5/bin/python

i'v also :

- Python 2.4.4 (#1, Oct 18 2006, 10:34:39)
   /Library/Frameworks/Python.framework/Versions/2.4/bin/python2.4

whith a sim link in :
/usr/local/bin/python2.4


and a fink installation  :
- Python 2.4.3 (#1, Aug  8 2007, 21:43:02)
   /sw/bin/python2.4


 From the pywps doc about the required extra packages
  (only xml is required )


this is what i done to install pywps :

- unzip the archive pywps-2.0.0.tar.gz and copy the pywps-2.0.0-rc4  
folder in :
  /Library/WebServer/CGI-Executables/
- cd /Library/WebServer/CGI-Executables/pywps-2.0.0-rc4/
- python setup.py install
- ln -s /Library/WebServer/CGI-Executables/pywps-2.0.0-rc4/wps.py / 
Library/WebServer/CGI-Executables/wps.py

in
/Library/WebServer/CGI-Executables/pywps-2.0.0-rc4/pywps/processes/

- renamed

   __init__.py-dist
   to
    __init__.py

   and
  addvalue.py-dist
  to
  addvalue.py

in
__init__.py

- added a comment to
   all processes axcept for : addvalue.py

   it looks like :


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


-  created a directory in :

   /Library/WebServer/Documents/wps/wpsoutputs/

  ( it have read-write permisions )


-  modified the file :

    /Library/WebServer/CGI-Executables/pywps-2.0.0-rc4/pywps/settings.py

   /Library/WebServer/CGI-Executables/pywps-2.0.0-rc4/pywps/etc/grass.py

to reflect my environment


to test if it works (as explained in the docs)
i tried to run :

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


http://rafb.net/p/lvWEOw58.html
http://rapidshare.com/files/59870693/pywps_setting.tgz.html


i have grass installed from source in :

/usr/local/grass-6.3.cvs


this is the error log :

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


mybe i'm missing/wrong something :-(


thanks for your help :-)

Massimo.





Il giorno 02/ott/07, alle ore 22:11, Christopher Barker ha scritto:
massimo di stefano wrote:
let me know if anyone wont help me toinstall pywps :-)

You need to tell us what you've done so far, and what the errors are.  
IN any case:

1) install the Framework build of either python2.4 or 2.5 (whichever  
one the pywps folks are using)

2) What python external modules does pywps require? Are they in the  
repository at pythonmac.org/packages

3) Does pywps have any compiled components? If so, try building them  
with "setup.py build". If that doesn't work, what errors do you get?

etc....

-Chris

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20071003/a59ad3c4/attachment-0001.htm 


More information about the Pythonmac-SIG mailing list