[GRASS-dev] [GRASS GIS] #502: wxgui / osgeo4w: db.describe execution failed

#502: wxgui / osgeo4w: db.describe execution failed
----------------------+-----------------------------------------------------
Reporter: hamish | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: Database | Version: 6.4.0 RCs
Keywords: osgeo4w | Platform: MSWindows XP
      Cpu: x86-32 |
----------------------+-----------------------------------------------------
Hi,

latest OSGeo4W binary install of 6.4.0rc3 on windows xp.

using the wxpython GUI.

Spearfish: add vector map

select roads. (or any other map)
don't even press [ok].

pop up error:
{{{
window title: Error in command execution db.describe.exe

Execution failed 'db.describe.exe -c --q table=roads driver=dbf
database=C:/DocumentsandSettings/Hamish/grassdata/spearfish60/PERMANENT/dbf/'

Details:
Error: Unable to open database
<C:/DocumentsandSettings/Hamish/grassdata/spearfish60/PERMANENT/dbf/>
}}}

perhaps it is something to do with the spaces being stripped out of
"DocumentsandSettings" ??

after that the map renders ok, but I get the same error if I try to query
the vector map.

querying the elevation.10m raster map spits out some error messages to the
output window but then scrolls away and gives good data. (sorry already
gone, no cut&paste)

Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/502&gt;
GRASS GIS <http://grass.osgeo.org>

#502: wxgui / osgeo4w: db.describe execution failed
---------------------------+------------------------------------------------
  Reporter: hamish | Owner: martinl
      Type: defect | Status: assigned
  Priority: major | Milestone: 6.4.0
Component: Database | Version: 6.4.0 RCs
Resolution: | Keywords: osgeo4w
  Platform: MSWindows XP | Cpu: x86-32
---------------------------+------------------------------------------------
Changes (by martinl):

  * status: new => assigned
  * owner: grass-dev@lists.osgeo.org => martinl
* cc: grass-dev@lists.osgeo.org (added)

Comment:

Hopefully fixed in r35990. Martin

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/502#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#502: wxgui / osgeo4w: db.describe execution failed
---------------------------+------------------------------------------------
  Reporter: hamish | Owner: martinl
      Type: defect | Status: assigned
  Priority: major | Milestone: 6.4.0
Component: Database | Version: 6.4.0 RCs
Resolution: | Keywords: osgeo4w
  Platform: MSWindows XP | Cpu: x86-32
---------------------------+------------------------------------------------
Comment (by hamish):

Hi,

attempting to try out these changes by copying in wxgui.py, gis_set.py,
and the gui_modules/ dir from SVN over the top of the OSGeo4W 6.4.0rc3
files on the Windows machine. When I try to start GRASS I get this error:

{{{
Traceback (most recent call last):
   File "C:/OSGeo4W/apps/grass/grass-6.4.0RC3/etc/wxpython/gis_set.py",
line 816,
  in <module>
     GRASSStartUp = StartUp(0)
   File "C:\OSGeo4W\apps\Python25\lib\site-packages\wx-2.8-msw-
unicode\wx\_core.py", line 7935, in __init__
     self._BootstrapApp()
   File "C:\OSGeo4W\apps\Python25\lib\site-packages\wx-2.8-msw-
unicode\wx\_core.py", line 7509, in _BootstrapApp
     return _core_.PyApp__BootstrapApp(*args, **kwargs)
   File "C:/OSGeo4W/apps/grass/grass-6.4.0RC3/etc/wxpython/gis_set.py",
line 799,
  in OnInit
     StartUp = GRASSStartup()
   File "C:/OSGeo4W/apps/grass/grass-6.4.0RC3/etc/wxpython/gis_set.py",
line 156,
  in __init__
     self._set_properties()
   File "C:/OSGeo4W/apps/grass/grass-6.4.0RC3/etc/wxpython/gis_set.py",
line 195,
  in _set_properties
     self.OnSetDatabase(None)
   File "C:/OSGeo4W/apps/grass/grass-6.4.0RC3/etc/wxpython/gis_set.py",
line 639,
  in OnSetDatabase
     self.OnSelectLocation(None)
   File "C:/OSGeo4W/apps/grass/grass-6.4.0RC3/etc/wxpython/gis_set.py",
line 604,
  in OnSelectLocation
     self.listOfLocations[self.lblocations.GetSelection()]))
   File "C:/OSGeo4W/apps/grass/grass-6.4.0RC3/etc/wxpython/gis_set.py",
line 574,
  in UpdateMapsets
     for line in mapsets.ReadStdOutput():
AttributeError: Command instance has no attribute 'ReadStdOutput'
Traceback (most recent call last):
   File "C:/OSGeo4W/apps/grass/grass-6.4.0RC3/etc/wxpython/wxgui.py", line
70, in
  <module>
     import gui_modules.wxgui_utils as wxgui_utils
   File
"C:\OSGeo4W\apps\grass\grass-6.4.0RC3\etc\wxpython\gui_modules\wxgui_utils.py",
line 38, in <module>
     import mapdisp
   File
"C:\OSGeo4W\apps\grass\grass-6.4.0RC3\etc\wxpython\gui_modules\mapdisp.py",
line 54, in <module>
     import toolbars
   File
"C:\OSGeo4W\apps\grass\grass-6.4.0RC3\etc\wxpython\gui_modules\toolbars.py",
line 36, in <module>
     from icon import Icons as Icons
   File "C:\OSGeo4W\apps\grass\grass-6.4.0RC3\etc\wxpython\icons\icon.py",
line 31, in <module>
     import grassenv
ImportError: No module named grassenv
Press any key to continue . . .
}}}

?
Hamish

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/502#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#502: wxgui / osgeo4w: db.describe execution failed
---------------------------+------------------------------------------------
  Reporter: hamish | Owner: martinl
      Type: defect | Status: assigned
  Priority: major | Milestone: 6.4.0
Component: Database | Version: 6.4.0 RCs
Resolution: | Keywords: osgeo4w
  Platform: MSWindows XP | Cpu: x86-32
---------------------------+------------------------------------------------
Comment (by martinl):

Do you mean to copy from trunk/devbr6? If so, don't copy, but merge the
changes - wxGUI changed a lot since relbr64, 'grassenv' has been removed
from trunk and devbr6.

M.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/502#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#502: wxgui / osgeo4w: db.describe execution failed
---------------------------+------------------------------------------------
  Reporter: hamish | Owner: martinl
      Type: defect | Status: assigned
  Priority: major | Milestone: 6.4.0
Component: Database | Version: 6.4.0 RCs
Resolution: | Keywords: osgeo4w
  Platform: MSWindows XP | Cpu: x86-32
---------------------------+------------------------------------------------
Comment (by martinl):

Replying to [comment:3 martinl]:
> Do you mean to copy from trunk/devbr6? If so, don't copy, but merge the
changes - wxGUI changed a lot since relbr64, 'grassenv' has been removed
from trunk and devbr6.

Copying files from relbr64 should work.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/502#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#502: wxgui / osgeo4w: db.describe execution failed
---------------------------+------------------------------------------------
  Reporter: hamish | Owner: martinl
      Type: defect | Status: assigned
  Priority: major | Milestone: 6.4.0
Component: Database | Version: 6.4.0 RCs
Resolution: | Keywords: osgeo4w
  Platform: MSWindows XP | Cpu: x86-32
---------------------------+------------------------------------------------
Comment (by hamish):

Replying to [comment:4 martinl]:
> Copying files from relbr64 should work.

ok, I tried again with full dir, seemed to start up ok this time.

adding vector maps works without error, as does querying vector and raster
maps.

I notice trying to Query vector map (edit mode) for roads@PERMANENT
[spearfish] gives me a pop up window error about not being able to find
the DBF file, and if I try again I get a traceback error in the Command
Output window. It should error-out if the map in not in the current mapset
(perhaps at the module level?) as @othermapset should always be read-only.

strangely the rendered map in the map display canvas became smaller while
I was doing these tests (first just a sliver on the right, then when I hit
the eyeball redraw button about 1/2 the canvas width). [Render is
ticked] Zoom to selected map didn't help, needed to fully use the zoom
_(+) tool.
aaaaaaaaah, the surviving part of the map display is that which IS
overlapped by the Layer Manager window when I change the "Comand output"
tab to "map layers for display" then put the Map display window back on
top. very weird. "Re-render map" doesn't help, but the pan tool does.
Again: clicking the eyeball makes the unoverlapped part disappear. now it
works. strange, maybe change of map (roads(vect)/elevation.10m) is part of
it. ??
hmmph, oh well. something to keep an eye out for.

Hamish

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/502#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>

#502: wxgui / osgeo4w: db.describe execution failed
---------------------------+------------------------------------------------
  Reporter: hamish | Owner: martinl
      Type: defect | Status: assigned
  Priority: major | Milestone: 6.4.0
Component: Database | Version: 6.4.0 RCs
Resolution: | Keywords: osgeo4w
  Platform: MSWindows XP | Cpu: x86-32
---------------------------+------------------------------------------------
Comment (by martinl):

Replying to [comment:5 hamish]:
> I notice trying to Query vector map (edit mode) for roads@PERMANENT
[spearfish] gives me a pop up window error about not being able to find
the DBF file, and if I try again I get a traceback error in the Command
Output window. It should error-out if the map in not in the current mapset
(perhaps at the module level?) as @othermapset should always be read-only.

in r36092 is added check for vector map mapset, in the result it's
possible to query in this mode only vector maps from the current mapset.

Martin

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/502#comment:6&gt;
GRASS GIS <http://grass.osgeo.org>

#502: wxgui / osgeo4w: db.describe execution failed
---------------------------+------------------------------------------------
  Reporter: hamish | Owner: martinl
      Type: defect | Status: closed
  Priority: major | Milestone: 6.4.0
Component: Database | Version: 6.4.0 RCs
Resolution: fixed | Keywords: osgeo4w
  Platform: MSWindows XP | Cpu: x86-32
---------------------------+------------------------------------------------
Changes (by hamish):

  * status: assigned => closed
  * resolution: => fixed

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/502#comment:7&gt;
GRASS GIS <http://grass.osgeo.org>