[GRASS-dev] G70 Ubuntu: GUI menu access for i.eb.hsebal01 looks for i.eb.h_sebal01

Hi,

just got the Ubuntu PPA being worked out for G70.

it looks like there is a name issue in the Imagery menu looking for i.eb.h_sebal01 instead of i.eb.hsebal01.

Cheers,
Yann

···

On Wed, Dec 31, 2014 at 12:44 PM, Yann Chemin <ychemin@gmail.com> wrote:

Hi,

just got the Ubuntu PPA being worked out for G70.
it looks like there is a name issue in the Imagery menu looking for
i.eb.h_sebal01 instead of i.eb.hsebal01.

Can you please search for the file? Because in SVN is all ok:

cd grass70/gui/wxpython/

grep i.eb.hsebal01 */*
xml/menudata.xml: <command>i.eb.hsebal01</command>
xml/module_tree_menudata.xml: <command>i.eb.hsebal01</command>
xml/toolboxes.xml: <module-item name="i.eb.hsebal01">

Either the version you installed is outdated or something else happened.

Markus

indeed Markus,

it is using an old file from:
/home/yann/.grass7/toolboxes/menudata.xml

Correcting that file makes it OK.

Deleting it makes it follow the PPA version.

Welcome page does show GRASS version 7.

Additional things:

the rev number in the welcome page indicates (r00000)

The WxGUI window header say:

GRASS GIS ? Layer Manager

GRASS GIS ? Map Display: 1 - Location: GRASSDB@PERMANENT

···

On 31 December 2014 at 17:59, Markus Neteler <neteler@osgeo.org> wrote:

On Wed, Dec 31, 2014 at 12:44 PM, Yann Chemin <ychemin@gmail.com> wrote:

Hi,

just got the Ubuntu PPA being worked out for G70.
it looks like there is a name issue in the Imagery menu looking for
i.eb.h_sebal01 instead of i.eb.hsebal01.

Can you please search for the file? Because in SVN is all ok:

cd grass70/gui/wxpython/

grep i.eb.hsebal01 /
xml/menudata.xml: i.eb.hsebal01
xml/module_tree_menudata.xml: i.eb.hsebal01
xml/toolboxes.xml:

Either the version you installed is outdated or something else happened.

Markus


On Wed, Dec 31, 2014 at 3:52 PM, Yann Chemin <ychemin@gmail.com> wrote:

indeed Markus,

it is using an old file from:
/home/yann/.grass7/toolboxes/menudata.xml

Correcting that file makes it OK.

Good. But do you need that file at all?

Deleting it makes it follow the PPA version.

Perfect. Not sure if we could auto-detect an outdated toolbox file....

Welcome page does show GRASS version 7.

Additional things:
the rev number in the welcome page indicates (r00000)
The WxGUI window header say:
GRASS GIS ? Layer Manager
GRASS GIS ? Map Display: 1 - Location: GRASSDB@PERMANENT

This new "r00000" I introduced yesterday as workaround for Ubuntu's
"Unable to get GRASS version" error.
This originates from the fact that the PPA does not have "svnversion"
installed when compiling GRASS which is currently needed to determined
the revision number (done by "configure", saved in
include/Make/Platform.make).
A better solution is needed for such cases by I have no idea how.

Markus

On Wed, Dec 31, 2014 at 11:06 AM, Markus Neteler <neteler@osgeo.org> wrote:

On Wed, Dec 31, 2014 at 3:52 PM, Yann Chemin <ychemin@gmail.com> wrote:
> indeed Markus,
>
> it is using an old file from:
> /home/yann/.grass7/toolboxes/menudata.xml
>
> Correcting that file makes it OK.

Good. But do you need that file at all?

The file is generated if you have your custom menu and/or toolboxes

defined.

> Deleting it makes it follow the PPA version.

Perfect. Not sure if we could auto-detect an outdated toolbox file....

We do that for user-created files but not for the files in the
distribution; it just didn't seem important at the time of writing.

See:

http://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/core/toolboxes.py

maybe creating a directory in user with two significant number for the version might help in this case

but not sure it is in the general interest.

···

.grass7/toolboxes/menudata.xml

.grass70/toolboxes/menudata.xml

On 2 January 2015 at 06:49, Vaclav Petras <wenzeslaus@gmail.com> wrote:

On Wed, Dec 31, 2014 at 11:06 AM, Markus Neteler <neteler@osgeo.org> wrote:

On Wed, Dec 31, 2014 at 3:52 PM, Yann Chemin <ychemin@gmail.com> wrote:

indeed Markus,

it is using an old file from:
/home/yann/.grass7/toolboxes/menudata.xml

Correcting that file makes it OK.

Good. But do you need that file at all?

The file is generated if you have your custom menu and/or toolboxes defined.

Deleting it makes it follow the PPA version.

Perfect. Not sure if we could auto-detect an outdated toolbox file…

We do that for user-created files but not for the files in the distribution; it just didn’t seem important at the time of writing.

See:

http://trac.osgeo.org/grass/browser/grass/trunk/gui/wxpython/core/toolboxes.py


Hi,

2015-01-02 4:32 GMT+01:00 Yann Chemin <ychemin@gmail.com>:

maybe creating a directory in user with two significant number for the
version might help in this case

but not sure it is in the general interest.

.grass7/toolboxes/menudata.xml
->
.grass70/toolboxes/menudata.xml

I would suggest to keep .grass7{majorversion}, if you need something
special for toolboxes then probably

.grass7/toolboxes/metadata-7.0.xml

Martin

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.eu/mentors/landa