[GRASS-user] Bug in GRASS 6.4 svn and 7.0 svn; both from 13.december this year

Hi!
Are others experiencing this behaviour:

When trying to add a new vector datasett to the map display window in either
6.4 or 7 I get no file dialog with lists of available datasets. (Using the
button in the tools row in the the layer manager.) If I try to add a raster
datasett the list is displayed! And data can be added as normal.

The behavior is normal in 6.3 (SUSE 10.3 most recent rpm's).

I presume its a bug in Python: (errors from command output follows)

-----------------copy----------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/grass-6.4.svn/etc/wxpython/wxgui.py",
line 1359, in AddVector

self.curr_page.maptree.AddLayer('vector')
  File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/wx
gui_utils.py", line 750, in AddLayer

self.PropertiesDialog(layer, show=True)
  File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/wx
gui_utils.py", line 842, in PropertiesDialog

parentframe=self)
  File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/me
nuform.py", line 1715, in ParseCommand

get_dcmd=get_dcmd, layer=layer)
  File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/me
nuform.py", line 617, in __init__

mainFrame=self)
  File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/me
nuform.py", line 1166, in __init__

multiple=multiple, mapsets=mapsets)
  File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/gs
elect.py", line 53, in __init__

self.tcp.GetElementList(type, mapsets, exceptOf)
  File "/usr/local/grass-6.4.svn/etc/wxpython/gui_modules/gs
elect.py", line 212, in GetElementList

filesdict = grass.list_grouped2(elementdict[element])
  File "/usr/local/grass-6.4.svn/etc/python/grass.py", line
325, in list_grouped2

map, mapset = line.split('@')
ValueError
:
too many values to unpack
filesdict = grass.list_grouped2(elementdict[element])
  File "/usr/local/grass-6.4.svn/etc/python/grass.py", line
325, in list_grouped2

map, mapset = line.split('@')
ValueError
:
too many values to unpack

-----------------------------end copy-----------------------------------------

regards
larsf

Hi,

2008/12/14 Lars Forseth <lars.forseth@bluezone.no>:

When trying to add a new vector datasett to the map display window in either
6.4 or 7 I get no file dialog with lists of available datasets. (Using the
button in the tools row in the the layer manager.) If I try to add a raster
datasett the list is displayed! And data can be added as normal.

what

g.mlist -m vect

says?

[...]

Martin

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *

Hi,

2008/12/14 Lars Forseth <lars.forseth@bluezone.no>:

GRASS 6.4.svn (Frosta):~ > g.mlist -m vect

[...]

Vp_rand1@larsf@larsf

[...]

this is bad, how have you created this element?

Martin

PS: please keep cc to grass-user ML.

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *

Mandag 15. desember 2008 skreiv Martin Landa:

Hi,

2008/12/14 Lars Forseth <lars.forseth@bluezone.no>:
> GRASS 6.4.svn (Frosta):~ > g.mlist -m vect

[...]

> Vp_rand1@larsf@larsf

[...]

this is bad, how have you created this element?

Martin

PS: please keep cc to grass-user ML.

Thanks

Agreed, bad. I think I've tried to overwrite an existing dataset; and @larsf
is then tagged on. I think I've created such elements before (ie with two @),
but what happened then was that I had problems getting rid of them; and that
was the worst.

Maybe something could be done to prevent such names being applied to datasets?
A test, (if...then) which tests for such cases?

Regards
larsf

Hi,

2008/12/15 Lars Forseth <lars.forseth@bluezone.no>:

Maybe something could be done to prevent such names being applied to datasets?
A test, (if...then) which tests for such cases?

invalid elements are ignored

http://trac.osgeo.org/grass/changeset/34900

Martin

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *