[GRASS-dev] Re: [GRASS GIS] #1613: r.hazard.flood.py returns a ParseError

GRASS GIS trac at osgeo.org
Tue Mar 13 18:44:26 EDT 2012

#1613: r.hazard.flood.py returns a ParseError
 Reporter:  Ddm                |       Owner:  grass-dev@…              
     Type:  defect             |      Status:  new                      
 Priority:  normal             |   Milestone:  6.4.3                    
Component:  Raster             |     Version:  unspecified              
 Keywords:  r.hazard.flood.py  |    Platform:  MSWindows 7              
      Cpu:  Unspecified        |  

Comment(by Ddm):


 Thanks for your help.
 Actually, it is not a typo: I do have to launch "r.hazard.flood.py".
 Otherwise I get the error message below. It is also hte name that appears
 in my list of modules. As a matter of fact, it is the only one that has
 the ".py" extension in this list.

 I also updated with the latest code but I still get the same error message
 (the original one I mean).

 (Tue Mar 13 23:39:10 2012)
 C:\Program Files (x86)\GRASS 6.4.2\Python27\lib\site.py:158:
 Warning: 'with' will become a reserved keyword in Python 2.6
 'import site' failed; use -v for traceback
 C:\Program Files (x86)\GRASS
 6.4.2\Python27\lib\linecache.py:127: Warning: 'with' will
 become a reserved keyword in Python 2.6
 Traceback (most recent call last):
   File "C:\Users\David\AppData\Roaming\GRASS6\addons\r.hazar
 d.flood.py", line 47, in <module>
     import grass.script as grass
   File "C:\Program Files (x86)\GRASS
 6.4.2\etc\python\grass\__init__.py", line 1, in <module>
     import os
   File "C:\Program Files (x86)\GRASS
 6.4.2\Python27\lib\os.py", line 754
     bs = b""
 SyntaxError: invalid syntax
 (Tue Mar 13 23:39:10 2012) La commande s'est terminée (0 sec)

Ticket URL: <http://trac.osgeo.org/grass/ticket/1613#comment:2>
GRASS GIS <http://grass.osgeo.org>

More information about the grass-dev mailing list