OS: windows7 x86<div>grass: grass-7.0.SVN native build</div><div>WinGRASS-7.0.SVN-r47191-1-Setup.exe</div><div><br></div><div><div>import os, sys</div><div>from grass.lib import gis as grass</div><div>from grass.lib import raster as raster</div>
<div>if "GISBASE" not in os.environ:</div><div> print "You must be in GRASS GIS to run this program."</div><div> sys.exit(1)</div><div> </div><div><br></div><div>grass.G_gisinit('')</div>
<div>data_type = raster.G_raster_map_type('myrast', 'PERMANENT')</div><div><br></div><div><br></div><div><br></div><div>error log</div><div><br></div><div>data_type = raster.G_raster_map_type('myrast', 'PERMANENT')</div>
<div>AttributeError: `module` object has no attribute `G_raster_map_type`</div><div><br clear="all"><br>-- <br><div>Thanks && Regards</div>Rashad<br>
</div></div>