[GRASS-dev] WindowsEror: exception: access violation writing
0x0000000
Mohammed Rashad
mohammedrashadkm at gmail.com
Thu Jul 21 08:52:21 EDT 2011
OS: windows7 x86
grass: grass-7.0.SVN native build
WinGRASS-7.0.SVN-r47191-1-Setup.exe
import os
import sys
gbase = os.getenv("GISBASE")
pypath = os.path.join(gbase,'etc','gui','wxpython','gui_modules')
sys.path.append(pypath)
pypath = os.path.join(gbase,'etc','python')
sys.path.append(pypath)
import globalvar
grassPath = os.path.join(globalvar.ETCDIR, "python")
sys.path.append(grassPath)
from grass.lib import gis as grasslib
from grass.lib import raster as raster
cellhd = grasslib.Cell_head()
if (raster.Rast_get_cellhd('lsat5_1987_20', 'landsat', cellhd))!=0 :
print "error1"
error log:
-> if (raster.Rast_get_cellhd('lsat5_1987_20', 'landsat', cellhd))!=0 :
WindowsEror: exception: access violation writing 0x0000000
--
Thanks && Regards
Rashad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-dev/attachments/20110721/b77e0bb6/attachment.html
More information about the grass-dev
mailing list