|
List Info
Thread: pywps on mac osx
|
|
| pywps on mac osx |
  Italy |
2007-10-02 05:25:29 |
HI
Apologize me for this mail if it is off topic here...
i'm new to python,
i've just a little experience about this wonderfull language
i'm tring to configure a python web processing server
"pywps" on my mbp
http://pywps.wald.i
ntevation.org/
it is an open project to port python environment on the web
to use it in on-line mapping application like web-gis
i'm tring to configure it on mac osx but it don't works as
aspected,
i tried to resolve the problem with the developpers of pywps
but they
haven't a mac machine to try it :-(
pywps is designed to use application like
R
or
GRASS
installed on a server
and use this application with local data trought the web ,
with
local data.
to configure and try it, a Grass installation is needed,
have any experience about?
i'v grass installed from source and i followed the
instruction to
install pywps,
but i've an error to import the "subprocess"
routine
(colling it from pyshall :
- import subprocess
it works )
the error that i've is :
./wps.py
"service=WPS&version=0.4.0&request=getcapabilit
ies"
Traceback (most recent call last):
File "./wps.py", line 74, in ?
raise ServerError(e)
File
"/Library/WebServer/CGI-Executables/pywps-2.0.0-rc3/pyw
ps/Wps/
wpsexceptions.py", line 105, in __init__
raise NoApplicableCode(value)
pywps.Wps.wpsexceptions.NoApplicableCodePyWPS
NoApplicableCode: No
module named subprocess
Content-type: text/xml
to configure it this is what i done :
cp /pywps-2.0.0-rc4
/Library/WebServer/CGI-Executables/pywps-2.0.0-
rc4/
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
i'm very happy if anyone mac python expert, woulėd give me
an help to
figure out
if you wont try it, i can post the instruction
needed to have a mac grass installation.
(it have a .app make file to build a binary installation
to solve the grass dependancies a really nice frameworks are
avaible
on :
http://ww
w.kyngchaos.com/software/unixport/ )
thanks for any suggestion about!
Massimo.
_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
|
|
| Re: pywps on mac osx |
  Germany |
2007-10-02 06:52:56 |
Am 2007-10-02 um 12:25 schrieb massimo di stefano:
> ./wps.py
"service=WPS&version=0.4.0&request=getcapabilit
ies"
> Traceback (most recent call last):
> File "./wps.py", line 74, in ?
> raise ServerError(e)
> File
"/Library/WebServer/CGI-Executables/pywps-2.0.0-rc3/pyw
ps/Wps/
> wpsexceptions.py", line 105, in __init__
> raise NoApplicableCode(value)
> pywps.Wps.wpsexceptions.NoApplicableCodePyWPS
NoApplicableCode: No
> module named subprocess
> Content-type: text/xml
"No module named subprocess"
seems rather clear to me, even if that normally rises an
ImportError.
I guess you run Python 2.3?
AFAIR subprocess is a core library since 2.4, before you
could
install it separately.
Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net
https://www.cacert.org
(I'm an assurer)
_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
|
|
| Re: pywps on mac osx |
  United States |
2007-10-02 07:19:11 |
On Tue, 2 Oct 2007 12:25:29 +0200, massimo di stefano
wrote:
> i'm tring to configure a python web processing server
"pywps" on my mbp
>
> http://pywps.wald.i
ntevation.org/
>
> it is an open project to port python environment on the
web
> to use it in on-line mapping application like web-gis
I haven't used GRASS, but Barry Rowlingson just presented at
FOSS4G about an
integrated system called "Arlat" using Quantum GIS
(available for Mac OS X) for
desktop mapping and R as a statistics engine, connected with
Python.
http://www.foss4g2007.org/presentations/view.php
?abstract_id=135
He is planning on posting details to the R-SIG-Geo list
(https
://stat.ethz.ch/mailman/listinfo/r-sig-geo), but there
is a paper
describing the implementation here:
http://www.bepress.com/cgi/viewcon
tent.cgi?article=1103&context=jhubiostat
I'm looking into this for use with MapServer:
http://mapserver.gis.um
n.edu/
William Kyngesburye has Mac OS X binaries of MapServer at
his kyngchaos site,
although I don't recall if they use Apple's Apache 1.3 or
permit you to install
your own Apache 2.
This doesn't solve your immediate problem, but if you want
to serve up spatial
data via a web interface, I think you'll find MapServer much
easier to use than
rolling your own.
Thomas Juntunen
_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
|
|
| Re: pywps on mac osx |
  United States |
2007-10-02 11:33:24 |
massimo di stefano wrote:
> i'm tring to configure a python web processing server
"pywps" on my mbp
>
> http://pywps.wald.i
ntevation.org/
building stuff on OS-X is often a bit different than other
*nix systems.
I'd recommend that you try using these packages:
http://www
.kyngchaos.com/software/unixport
And also use the Framework Python 2.5 from:
htt
p://pythonmac.org/packages/py25-fat/index.html
That's a good source of other assorted packages that you may
need, also.
Good luck!
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker noaa.gov
_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
|
|
| Re: pywps on mac osx |
  Italy |
2007-10-02 14:35:52 |
Hi,
thanks for the suggestion,
already i've installed on my mac
grass, qgis, R, ossim, ossimplanet, mapserver + kamap
all works fine
thanks to william and to all mac comunity (really great
people !)
i'll try to explain why a wps :
i need pywps beacouse my targhet is to have a web-processing
server
(not a simple web gis)
i.e. use the function of grass and R (installed on a
server) through
the web, by a web-gis interface
called from a kml file loaded into ossimplanet.
something like "embrio" or "openlayer +
pywps" : http://
pywps.ominiverdi.org/
i need this solution to try the integration of ossimplanet
too
ossimplanet is able to load kml file and wms map
i done a script to produce kml , elevation-data and wms map
from
grass data,
using pywps i can integrate this script in ossimplanet
using the
"kml" as connection point
apologize me for my englesh and for the bad explanation of
what i
want try to do :-/
let me know if anyone wont help me toinstall pywps
thanks for any suggestion!
Massimo.
Il giorno 02/ott/07, alle ore 14:19, Thomas Juntunen ha
scritto:
> On Tue, 2 Oct 2007 12:25:29 +0200, massimo di stefano
wrote:
>
>> i'm tring to configure a python web processing
server "pywps" on
>> my mbp
>>
>> http://pywps.wald.i
ntevation.org/
>>
>> it is an open project to port python environment on
the web
>> to use it in on-line mapping application like
web-gis
>
> I haven't used GRASS, but Barry Rowlingson just
presented at FOSS4G
> about an
> integrated system called "Arlat" using
Quantum GIS (available for
> Mac OS X) for
> desktop mapping and R as a statistics engine, connected
with Python.
>
> http://www.foss4g2007.org/presentations/view.php
?abstract_id=135
>
> He is planning on posting details to the R-SIG-Geo
list
> (https
://stat.ethz.ch/mailman/listinfo/r-sig-geo), but there
is a
> paper
> describing the implementation here:
> http://ww
w.bepress.com/cgi/viewcontent.cgi?
> article=1103&context=jhubiostat
>
> I'm looking into this for use with MapServer:
> http://mapserver.gis.um
n.edu/
>
> William Kyngesburye has Mac OS X binaries of MapServer
at his
> kyngchaos site,
> although I don't recall if they use Apple's Apache 1.3
or permit
> you to install
> your own Apache 2.
>
> This doesn't solve your immediate problem, but if you
want to serve
> up spatial
> data via a web interface, I think you'll find MapServer
much easier
> to use than
> rolling your own.
>
> Thomas Juntunen
_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
|
|
| Re: pywps on mac osx |
  United States |
2007-10-02 15:11:39 |
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
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker noaa.gov
_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
|
|
[1-6]
|
|