[GRASS-user] r.basin error

Margherita Di Leo diregola at gmail.com
Tue Nov 13 00:04:17 PST 2012


Hi,

On Tue, Nov 13, 2012 at 6:17 AM, kapo coulibaly <kmcoulib at gmail.com> wrote:

> inside /usr/local/grass-6.4.2/tools/g.html2man there is a file called
> g.html2man. I moved it outside and deleted the folder with the same name.
> After that r.basin installed without error. But when I try to run it get:
>
> GRASS 6.4.2 (test):/usr/local/grass-6.4.2/tools > r.basin
> /root/.grass6/addons/r.basin:572: Warning: 'with' will become a reserved
> keyword in Python 2.6
>   File "/root/.grass6/addons/r.basin", line 572
>     with open(prefix+'_parameters.csv', 'w') as f:
>             ^
> SyntaxError: invalid syntax


 This is due to Python 2.5.x, you need to upgrade to 2.6 in order to run
r.basin.

Best regards,
m


-- 
Margherita DI LEO
Postdoctoral Researcher
European Commission - DG JRC
Forest Resources and Climate
I-21020 Ispra (VA) - Italy - TP 261

Tel. +39 0332 78 3600
margherita.di-leo at jrc.ec.europa.eu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20121113/ca5cfa50/attachment.html>


More information about the grass-user mailing list