[Pywps-devel] pywps on mac osx
massimo di stefano
massimodisasha at yahoo.it
Tue Sep 18 23:20:03 CEST 2007
Hi,
i tried to install pywps on a mac osx,
but without success.
pleas let me know if anyone have pywps up and runnig on osx platform.
this what i done for now :
- i copied the entire pywps directory in my cgi-bin folder :
/Library/WebServer/CGI-Executables/pywps-2.0.0-rc1/
- cd into ../pywps-2.0.0-rc1 and run :
python setup.py install
- make a simbolic link from :
/Library/WebServer/CGI-Executables/pywps-2.0.0-rc1/wps.py
to
/Library/WebServer/CGI-Executables/wps.py
- i created a directory in :
/Library/WebServer/Documents/wps/wpsoutputs/
( it have read-write permisions )
- renamed __init__.py-dist to __init__.py
- modified it to have only one "processes" :
__init__.py :
# Author: Jachym Cepicky
# http://les-ejk.cz
__all__ = ["addvalue"]
- renamed addvalue.py-dist
to
addvalue.py
i have grass installed from source in :
/usr/local/grass-6.3.cvs
and i've python2.5 as standard python.
This is main configuration file for pywps.
The most importand parts are
WPS[ServiceIdenteification]
ServerSettings
"""
# Author: Jachym Cepicky
# http://les-ejk.cz
# Lince:
#
# Web Processing Service implementation (conf. file)
# Copyright (C) 2006 Jachym Cepicky
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA
###########################################################
#
# In this WPS structure the main configuration is stored
#
###########################################################
WPS = {
# version of supported WPS
# 'version':"0.4.0"
'version': "0.4.0",
# debuging 0 (minimum) - 3 (maximum)
# "debuglevel": 0
"debuglevel": 0,
#
# This are mandatory and optional conf. parameters
#
'ServiceIdentification': {
####################
# Mandatory options
####################
#
# 'Title':"This WPS Title",
#
'Title':"PyWPS 2.0.0",
#
# 'ServiceType":"WPS",
#
'ServiceType':"WPS",
#
# 'ServiceTypeVersion':"1.0.0",
#
'ServiceTypeVersion':"1.0.0",
####################
# Optional options
####################
#
#'Abstract':'Abstract to this WPS',
#
#
#'Fees':'$0',
#
#
#'AccesConstraints':'',
#
},
#
# Service provider identification
#
'ServiceProvider': {
'ProviderName' : "SASHA",
'IndividualName':"EPI",
'PositionName':"UP",
'Role':"UP",
'DeliveryPoint': "Street ",
'City': "City",
'PostalCode':"000000",
'Country': "Your Country",
'ElectronicMailAddress':"massimodisasha at yahoo.it",
},
#
# OperationsMetadata options
#
'OperationsMetadata': {
#
# ServerAddress - URL address to your pywps server
#'ServerAddress' : "http://localhost/cgi-bin/wps/wps.py",
'ServerAddress' : "http://localhost/cgi-bin/pywps-2.0.0-rc1/
wps.py",
},
#
# Server Keywords array
#
# 'Keywords': ['GRASS','GIS','WPS'],
'Keywords' : ['GRASS','GIS','WPS'],
}
###########################################################
#
# In this ServerSettings structure, the most importand server
settings are
# stored
#
###########################################################
ServerSettings = {
#
# outputPath - directory, where your files will be stored, if
# storeSupported is set to "true"
# NOTE: You have to create this directory manualy and set
rights, so
# the program is able to store data in there
# 'outputPath':'/var/www/wpsoutputs',
'outputPath': '/Library/WebServer/Documents/wps/wpsoutputs/',
#
# 'outputUrl' - URL of the directory, where the outputs will be
stored
# 'outputUrl': 'http://localhost/wpsoutputs',
'outputUrl': 'http://localhost/wps/wpsoutputs',
#
# tempPath - path to directory, where temporary data will be
stored.
# NOTE: the pywps has to have rights, to create directories and
files
# in this directory
# 'tempPath':'/tmp',
'tempPath': '/var/tmp',
#
# maxOperations - maximum number of operations, which is allowed
to low
# on this server at ones
# default = 1
# 'maxOperations':1,
'maxOperations':1,
#
# maxSize: maximum input file size in bytes
# NOTE: maximum file size is 5MB, no care, if this number is
heigher
# 'maxSize':5242880, # 5 MB
'maxSize':5242880, # 5 MB
#
# maxInputParamLength: maximal length of input values
# NOTE: maximal length of input parameters is 256, no mather,
how height
# is this number
# 'maxInputParamLength':1024,
'maxInputParamLength':1024,
}
this is my etc/grass.py
"""
This is configuration file for pywps. In this file, you can set your
GRASS
environment and other variables.
"""
# Author: Jachym Cepicky
# http://les-ejk.cz
# Lince:
#
# Web Processing Service implementation (conf. file)
# Copyright (C) 2006 Jachym Cepicky
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA
###########################################################
#
# In this env structure the main configuration for GRASS GIS
# is stored
#
###########################################################
grassenv = {
# PATH in which your modules (processes) shold be able the search.
# Defatult value:
# 'PATH': "/usr/lib/grass/bin/:/usr/lib/grass/scripts/:/usr/
bin/:/bin/:",
'PATH': "/usr/local/grass-6.3.cvs/bin/:/usr/local/grass-6.3.cvs/
scripts/:/usr/bin/:/bin/:",
# Add eventualy some other path, in which should GRASS search
for modules
#'GRASS_ADDON_PATH': "",
'GRASS_ADDON_PATH': "/Library/GRASS/6.3/Modules/bin/",
# Version of GRASS, you are using
# 'GRASS_VERSION': "6.2.0",
'GRASS_VERSION': "6.3.cvs",
# GRASS_PERL, where is your PERL bin installed
# 'GRASS_PERL': "/usr/bin/perl",
'GRASS_PERL': "/usr/bin/perl",
# GRASS_GUI should be always "text" unless you know, what you
are doing
# 'GRASS_GUI': "text",
'GRASS_GUI': "text",
# GISBASE is place, where your GRASS installation is
# 'GISBASE': "/usr/lib/grass",
'GISBASE': "/usr/local/grass-6.3.cvs",
# LD_LIBRARY_PATH
'LD_LIBRARY_PATH':"/usr/local/grass-6.3.cvs/lib",
# HOME has to be set
# 'HOME':'/var/www',
'HOME':"/Library/WebServer/Documents",
}
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
i'm sure that i'm missing/wrong something :-(
thanks for any suggestion !!!
Massimo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wald.intevation.org/pipermail/pywps-devel/attachments/20070918/4db06b73/attachment.htm
More information about the Pywps-devel
mailing list