[GRASS-dev] [GRASS GIS] #2177: g.gui.animation fail to create gif

Vaclav Petras wenzeslaus at gmail.com
Fri Feb 7 14:03:51 PST 2014


On Fri, Feb 7, 2014 at 4:31 PM, Markus Neteler <neteler at osgeo.org> wrote:

> Hi Anna,
>
> so some feedback here:
>
>  I tried in my brain scan location (that's a limited dataset):
>
> GRASS 7.0.svn (markus_brain_ct):~ > g.gui.animation
> GRASS 7.0.svn (markus_brain_ct):~ >
> GRASS_INFO_MESSAGE(19932,1): ERROR: Unsupported temporal database.
> Version mismatch.
>
> GRASS_INFO_MESSAGE(19932,1): Supported temporal database version is: 2
>
> GRASS_INFO_MESSAGE(19932,1): Please remove your old temporal database.
>
> GRASS_INFO_MESSAGE(19932,1): A new one will be created automatically.
>
> GRASS_INFO_MESSAGE(19932,1): Current temporal database info:
>
> GRASS_INFO_MESSAGE(19932,1): DBMI interface:..... sqlite3
>
> GRASS_INFO_MESSAGE(19932,1): Temporal database:..
> /home/neteler/grassdata/markus_brain_ct/PERMANENT/tgis/sqlite.db
> GRASS_INFO_END(19932,1)
> Traceback (most recent call last):
>   File
> "/home/neteler/software/grass70/dist.x86_64-unknown-linux-gnu/scripts/g.gui.animation",
> line 139, in <module>
>     GuiModuleMain(main)
>   File
> "/home/neteler/software/grass70/dist.x86_64-unknown-linux-gnu/etc/gui/wxpython/core/utils.py",
> line 1070, in GuiModuleMain
>     mainfn()
>   File
> "/home/neteler/software/grass70/dist.x86_64-unknown-linux-gnu/scripts/g.gui.animation",
> line 129, in main
>     frame = AnimationFrame(parent=None, giface=StandaloneGrassInterface())
>   File
> "/home/neteler/software/grass70/dist.x86_64-unknown-linux-gnu/etc/gui/wxpython/animation/frame.py",
> line 63, in __init__
>     tgis.init()
>   File
> "/home/neteler/software/grass70/dist.x86_64-unknown-linux-gnu/etc/python/grass/temporal/core.py",
> line 588, in init
>     "info":get_database_info_string()}))
>   File
> "/home/neteler/software/grass70/dist.x86_64-unknown-linux-gnu/etc/python/grass/pygrass/messages/__init__.py",
> line 262, in fatal
>     raise FatalError(message)
> grass.pygrass.messages.FatalError: Unsupported temporal database.
> Version mismatch.
> Supported temporal database version is: 2
> Please remove your old temporal database.
> A new one will be created automatically.
> Current temporal database info:
> DBMI interface:..... sqlite3
> Temporal database:..
> /home/neteler/grassdata/markus_brain_ct/PERMANENT/tgis/sqlite.db
>
> I am not scared at all but I feel that it should suggest how to remove
> it, in the phrase
> "Please remove your old temporal database."
>
> A silly user would do:
> g.list db
> --> db does not exist
>
> GRASS 7.0.svn (markus_brain_ct):~ > db.tables -p
> No tables found
>
> so it is not that obvious how to "reach" the file. I have now simply
> removed it.
>
> Perhaps also trap the "Version mismatch" with try/except or so?
>
>
Not sure if try/except and then GUI window is needed. More important is the
content of the message. Not only that it does gives suggestion what to do
but it is misleading since it is silent about the fact that simple removal
(which is suggested) will lead to the data loss.

In #2158, I say:

 Sentences `Please remove your old temporal database. A new one will be
 created automatically.` could seem that you just remove the old file and
 the new one will be created. It isn't that simple, you will loose your
 temporal data. This detail should be mentioned in the message.

 Shouldn't the message say something like `Please backup and then remove
 your old temporal database.`? Maybe with some suggestion how to backup. Or
 do you have some other idea, how to deal with this?

http://trac.osgeo.org/grass/ticket/2158#comment:7

Vaclav

More I'll add to the ticket.
>
> Markus
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20140207/8bd78b63/attachment-0001.html>


More information about the grass-dev mailing list