[Pywps-devel] [OSGeo-UK] Catchment Finder: An example of OpenData + OS Software
Jorge de Jesus
jmdj at pml.ac.uk
Tue Nov 1 10:20:47 CET 2011
Hi to all
This is a forward email from peter wells and faunalia UK, comments ?!I
think that the setup.py problem was already fixed in the last release,
but I'm not so certain about the LOCATION_NAME.
I think I've got to the bottom of the GRASS_LOCATION issue - it was an
intermittent problem but then started happening very regularly the other
day so I decided to delve a bit deeper. I've tried to add all my notes
so far which will hopefully be useful for you guys.
I've also copied in my colleague Paolo for his information...
*LOCATION_NAME 'bug'*
It seemed that the grass location was randomly being set to uk:uk
The only thing I've been able to track this down to is line 131 in the
stable version of Grass.py where the LOCATION_NAME environment variable
is set. self.setEnv() is written in a way that appends values if they
already exist (fine for paths but I think this ma be where my problem
comes from). I've now updated self.setEnv() to:
def setEnv(self,key,value,append=True):
"""Set GRASS environmental variables """
origValue = os.getenv(key)
if origValue and append:
value += ":"+origValue
os.putenv(key,value)
os.environ[key] = value
return
and changed lines 130 to 132 to look like:
self.setEnv('LOCATION_NAME',self.locationName, append=False)
Fingers crossed this will solve the issue permanently.
*Broken setup.py*
When trying to run the 'clean' install method, setup.py failed to
process the templates. In the end I had to hard-code baseDir on line
105 to:
baseDir =
os.path.join('/usr/local/lib/python2.6/dist-packages/pywps-3.2.1-py2.6.egg',
name,"Templates")
After your other comment regarding Wsdl, I also added 'Wsdl' to the
template_files array on line 110 and now Wsdl seems to be working.
Aside from those issues, everything else has gone really well. I seem
to remember some bits of the documentation (installation/configuration)
were a bit confusing and may possibly need updating but can't remember
exactly which bits. If it's important for you guys, it may be worth
getting someone to step through the installation/config instructions to
do a documentation test.
I hope this is useful and thank you very much for both PyWPS and your
comments.
Kind regards,
Pete
--------------------------------------------------------------------------------
Plymouth Marine Laboratory
Registered Office:
Prospect Place
The Hoe
Plymouth PL1 3DH
Website: www.pml.ac.uk
Click here for PML Annual Review
Registered Charity No. 1091222
PML is a company limited by guarantee
registered in England & Wales
company number 4178503
Please think before you print
--------------------------------------------------------------------------------
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/20111101/dc12ed50/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0x595FF9D3.asc
Type: application/pgp-keys
Size: 1354 bytes
Desc: not available
Url : http://lists.wald.intevation.org/pipermail/pywps-devel/attachments/20111101/dc12ed50/0x595FF9D3.key
More information about the Pywps-devel
mailing list