Opened 15 years ago

Closed 15 years ago

#502 closed defect (fixed)

wxgui / osgeo4w: db.describe execution failed

Reported by: hamish Owned by: martinl
Priority: major Milestone: 6.4.0
Component: Database Version: 6.4.0 RCs
Keywords: osgeo4w Cc: grass-dev@…
CPU: x86-32 Platform: MSWindows XP

Description

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

Change History (7)

comment:1 by martinl, 15 years ago

Cc: grass-dev@… added
Owner: changed from grass-dev@… to martinl
Status: newassigned

Hopefully fixed in r35990. Martin

comment:2 by hamish, 15 years ago

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

comment:3 by martinl, 15 years ago

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.

in reply to:  3 ; comment:4 by martinl, 15 years ago

Replying to 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.

in reply to:  4 ; comment:5 by hamish, 15 years ago

Replying to 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

in reply to:  5 comment:6 by martinl, 15 years ago

Replying to 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

comment:7 by hamish, 15 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.