[Pywps-devel] help Could not import process [script]: No module named grass.script
Jorge de Jesus
jmdj at pml.ac.uk
Wed Jan 26 09:45:16 CET 2011
Hi Diego
Do you manage to get pyWPS working, in the console or just the process
script ?! I think that you are correct and your problem is related to
permissions, remember that in the console you run things as
<user>:<usergroup> while calling from the server you run things as
apache:apache
Python, can't load the grass module due to permission or some pythonpath
problem/permission
Jorge
On 26/01/11 04:06, diego fernando castillo osorio wrote:
> Hi, I'm pond in a project for college and I need to configure PYWPS
> Grass and followed the manual configuration of this page and me is
> getting the following error in the browser:
>
> <ExceptionReport version="1.0.0">
> −
> <Exception exceptionCode="NoApplicableCode">
> −
> <ExceptionText>
>
> Could not import process [script]: No module named
> grass.script
>
> </ExceptionText>
> </Exception>
> </ExceptionReport
>
> in the LOG that I have configured in the pywps.cfg I get the following:
>
> Traceback (most recent call last):
> File "/usr/lib/cgi-bin/wps.py", line 248, in <module>
> wps = WPS()
> File "/usr/lib/cgi-bin/wps.py", line 143, in __init__
> self.performRequest()
> File "/usr/lib/cgi-bin/wps.py", line 215, in performRequest
> self.request = Execute(self)
> File "/usr/local/lib/python2.6/dist-packages/pywps/Wps/Execute.py",
> line 136, in __init__
> self.initProcess()
> File "/usr/local/lib/python2.6/dist-packages/pywps/Wps/Execute.py",
> line 312, in initProcess
> (self.wps.inputs["identifier"], e))
> pywps.Exceptions.NoApplicableCodePyWPS NoApplicableCode: None
>
>
> not bad I know I have revised several times but finding the
> configuration error.
>
> if I run from the console if I get python script.py correctly.
>
> I think the error may be permissions on a folder,
>
> I hope I can help, thank you very much.
>
> Diego Fernando Castillo Osorio
>
>
>
> _______________________________________________
> Pywps-devel mailing list
> Pywps-devel at wald.intevation.org
> http://lists.wald.intevation.org/mailman/listinfo/pywps-devel
--------------------------------------------------------------------------------
Plymouth Marine Laboratory
Registered Office:
Prospect Place
The Hoe
Plymouth PL1 3DH
Website: www.pml.ac.uk
Registered Charity No. 1091222
PML is a company limited by guarantee
registered in England & Wales
company number 4178503
--------------------------------------------------------------------------------
This e-mail, its content and any file attachments are confidential.
If you have received this e-mail in error please do not copy, disclose it to any third party or use the contents or attachments in any way. Please notify the sender by replying to this e-mail or e-mail forinfo at pml.ac.uk and then delete the email without making any copies or using it in any other way.
The content of this message may contain personal views which are not the views of Plymouth Marine Laboratory unless specifically stated.
You are reminded that e-mail communications are not secure and may contain viruses. Plymouth Marine Laboratory accepts no liability for any loss or damage which may be caused by viruses.
--------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wald.intevation.org/pipermail/pywps-devel/attachments/20110126/9d374017/attachment-0001.htm
More information about the Pywps-devel
mailing list