[GRASS-dev] Re: [GRASS GIS] #623: compiling error grass6-devel - winvista 32

GRASS GIS trac at osgeo.org
Sun May 31 15:10:57 EDT 2009


#623: compiling error grass6-devel - winvista 32
------------------------------+---------------------------------------------
  Reporter:  hellik           |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect           |      Status:  closed                   
  Priority:  normal           |   Milestone:  6.5.0                    
 Component:  default          |     Version:  svn-develbranch6         
Resolution:  fixed            |    Keywords:                           
  Platform:  MSWindows Vista  |         Cpu:  Unspecified              
------------------------------+---------------------------------------------
Comment (by hellik):

 Replying to [comment:10 hamish]:

 fresh svn-ckeckout for develbranch6 at rev37660

 compiling and automatically installing with package.sh is now working
 without any error

 > Hamish:
 >
 > great. Can you tell me if Config -> Manage GRASS working enviro ->
 > Change Default GUI works? (restart grass65 without options or
 > run g.gisenv from the command prompt to check)


 {{{
 Traceback (most recent call last):
   File
 "c:/OSGeo4W/apps/grass/grass-6.5.svn/etc/wxpython/wxgui.py",
 line 458, in OnMenuCmd

 menuform.GUI().ParseCommand(cmd, parentframe=self)
   File "c:\OSGeo4W\apps\grass\grass-6.5.svn\etc\wxpython\gui
 _modules\menuform.py", line 1710, in ParseCommand

 self.grass_task = self.ParseInterface(cmd)
   File "c:\OSGeo4W\apps\grass\grass-6.5.svn\etc\wxpython\gui
 _modules\menuform.py", line 1678, in ParseInterface

 tree = etree.fromstring(getInterfaceDescription(cmd[0]).deco
 de(enc).encode("utf-8"))
   File "c:\OSGeo4W\apps\grass\grass-6.5.svn\etc\wxpython\gui
 _modules\menuform.py", line 1640, in getInterfaceDescription

 raise IOError, _("Unable to fetch interface description for
 command '%s'.") % cmd
 IOError
 :
 Unable to fetch interface description for command
 'g.change.gui.py'.
 }}}


 > Hamish:
 > Can you also test if 'Cmd> ' works from the wxGUI

 for quick testing this, i follow
 [http://trac.osgeo.org/grass/wiki/HowToTestGrass6 HowToTestGrass6]. Maybe
 is it possible add line numbers in this txt-files to refer to at possible
 bugs?

 commands copied from grasstestrast.txt to 'Cmd>

 g.region rast=elevation -p => working
 d.rast elevation => raster is added in layer manager, but nothing is seen
 in map display (auto-rendering activated)
 d.his h_map=elevation i_map=elevation_shade => working, map displayed in
 map display
 r.info -r elevation => working
 d.rast landuse96_28m cat=1,2 bg=black => raster is added in layer manager,
 but nothing is seen in map display
 d.rast -o elevation val=100-160 => raster is added in layer manager, but
 nothing is seen in map display
 r.cats landuse96_28m => working
 r.report landuse96_28m unit=c,h,p => working
 r.stats -pl zipcodes,landuse96_28m => working
 r.random.cells out=randomcells_200m distance=200 => working
 r.random.surface out=rand_surf_100m => working
 r.random.surface out=rand_surf_100m_d1000 distance=1000 => working

 commands copied from grasstestvect.txt to 'Cmd>

 g.region region=swwake_10m -p => working
 d.vect streams col=blue => vector is added in layer manager, but nothing
 is seen in map display
 d.vect.thematic -l censusblk_swwake column=HOUSEHOLDS nint=6 color=yellow-
 cyan => vector is added in layer manager, but nothing is seen in map
 display
 v.info schools_wake => working
 g.copy vect=soils_general,myvectmap => working
 v.support myvectmap scale=24000  => working
 v.db.connect -p schools_wake  => working
 v.info -c schools_wake  => working
 db.tables -p   => working
 v.db.select schools_wake where="CAPACITYTO > 300" => working
 v.extract -r schools_wake out=small_schools_wake => working
 g.copy vect=lakes,mylakes => working
 v.db.select mylakes => working
 v.db.select mylakes where="FTYPE IS NULL" => working
 v.db.update mylakes col=FTYPE value=WETLAND where="FTYPE IS NULL" =>
 working
 v.db.select mylakes => working
 g.copy vect=geodetic_pts,mygeodetic_pts => working
 v.db.addcol mygeodetic_pts col="zval double precision" => working
 v.db.update mygeodetic_pts col=zval qcol="CAST(z_value AS double
 precision)" where="z_value <> 'N/A'"

 {{{
 (Sun May 31 20:58:07 2009)
 v.db.update mygeodetic_pts col=zval qcol=CAST(z_value AS double precision)
 where=z_value <> 'N/A'
 DBMI-DBF driver error:
 ERROR: Error while executing: 'UPDATE mygeodetic_pts SET zval=CAST(z_value
 AS double precision) WHERE z_value <> N/A
 '
 (Sun May 31 20:58:10 2009) Command finished (3 sec)
 }}}

 echo "UPDATE mygeodetic_pts SET zval=NULL WHERE zval=0" | db.execute =>
 how can this be tested if command is executed

 v.db.select mygeodetic_pts col=Z_VALUE,zval => working

 > Hamish:
 > and if '[Run in DOS box]' now works from the Tcl/Tk GUI Output window?
 >

 for testing this starting grass in the msys-shell
 with $ /osgeo4w/apps/grass/bin/grass65 -tcltk

 following error message:

 {{{
 syringia at NADA /c/osgeo4w
 $ /osgeo4w/apps/grass/bin/grass65 -tcltk
 Cleaning up temporary files ...
 Starting GRASS ...
 GISDBASE='C:\gisdata\grassdata';
 LOCATION_NAME='nc_spm_08';
 MAPSET='user1';
 WARNING: Attention!
 WARNING: Locking is not supported on Windows!
 /c/OSGeo4W/apps/grass/grass-6.5.svn/scripts/gis.m:
 c:/osgeo4w/C:\OSGeo4W\bin\wi                          sh.exe: No such file
 or directory
 /c/OSGeo4W/apps/grass/grass-6.5.svn/scripts/gis.m: exec:
 c:/osgeo4w/C:\OSGeo4W\                          bin\wish.exe: cannot
 execute: No such file or directory
 }}}

 /C:\OSGeo4W\bin\wish.exe is definitly there; also interesting that the
 tcltk-start-window for choosing the location is working, but gis.m is not

 best regards
 Helli

 p.s. for this testing should we open another thread, wiki, trac, mail,
 ...?

 p.p.s maybe would there be a kind of a "test-suite" possible to avoid
 copying commands from to example-txt-files to wx-python-command-line?

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/623#comment:11>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list