hi, I've a addon script:
http://trac.osgeo.org/grass/browser/grass-addons/grass7/vector/v.habitat.dem which calls v.what.rast http://trac.osgeo.org/grass/browser/grass-addons/grass7/vector/v.habitat.dem/v.habitat.dem.py#L297 this gives following error: -------------- Upload DEM zonal statistics to the attribute table ... Adding columns '['e_dem_minimum DOUBLE PRECISION', 'e_dem_maximum DOUBLE PRECISION', 'e_dem_range DOUBLE PRECISION', 'e_dem_average DOUBLE PRECISION', 'e_dem_median DOUBLE PRECISION']' Adding column <e_dem_minimum> to the table Adding column <e_dem_maximum> to the table Adding column <e_dem_range> to the table Adding column <e_dem_average> to the table Adding column <e_dem_median> to the table Processing data (240 categories)... Updating the database ... Statistics calculated from raster map <dembik> and uploaded to attribute table of vector map <bik_hart_bruck_bioid>. Traceback (most recent call last): File "C:\Users\myricaria\AppData\Roaming\GRASS7\addons/scr ipts/v.habitat.dem.py", line 534, in <module> sys.exit(main()) File "C:\Users\myricaria\AppData\Roaming\GRASS7\addons/scr ipts/v.habitat.dem.py", line 304, in main method = 'minimum,maximum,range,average,median') File "C:\OSGeo4W\apps\grass\grass-7.1.svn\etc\python\grass \script\core.py", line 373, in run_command return handle_errors(returncode, returncode, args, kwargs) File "C:\OSGeo4W\apps\grass\grass-7.1.svn\etc\python\grass \script\core.py", line 308, in handle_errors returncode=returncode) grass.exceptions.CalledModuleError: Module run None ['v.rast.stats', '-c', 'map=bik_hart_bruck_bioid', 'layer=1', 'column_prefix=e_dem', 'method=minimum,maximum,range,average,median', 'raster=dembik'] ended with error Process ended with non-zero return code 1. See errors in the (error) output. ----------- the columns in the attribute table are correctly be filled by the stats data. any idea the error? thanks ----- best regards Helmut -- View this message in context: http://osgeo-org.1560.x6.nabble.com/v-what-rast-in-a-python-script-causes-grass-exceptions-CalledModuleError-tp5175682.html Sent from the Grass - Dev mailing list archive at Nabble.com. _______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev