[GRASS-dev] g.extension global name error

Greetings,

I just checkout and compiled g.extension for RC5 here on Mac OS X.

If I just enter g.extension at the prompt, the GUI comes up. If I run it from the GUI or the command line I get this error:

(Tue Sep 1 19:11:25 2009)
g.extension -l svnurl=https://svn.osgeo.org/grass/grass-addons/grass7 prefix=$(HOME)/.grass6/addons
Traceback (most recent call last):
  File
"/Library/OpenOSX/grass/grass-6.4.0RC5/scripts/g.extension",
line 237, in <module>
    sys.exit(main())
  File
"/Library/OpenOSX/grass/grass-6.4.0RC5/scripts/g.extension",
line 206, in main
    list_available_modules(options['svnurl'])
  File
"/Library/OpenOSX/grass/grass-6.4.0RC5/scripts/g.extension",
line 112, in list_available_modules
    grass.message(_('Fetching list of modules from GRASS-
Addons SVN (be patient)...'))
NameError: global name '_' is not defined
(Tue Sep 1 19:11:26 2009) Command finished (0 sec)

I am pretty much a python noob, so not sure where to start looking.

Any ideas?

Thanks,

Jeshua Lacock, Owner
<http://OpenOSX.com>
phone: 208.462.4171

Hi,

2009/9/2 Jeshua Lacock <jeshua@openosx.com>:

[...]

I am pretty much a python noob, so not sure where to start looking.

Any ideas?

Python script from trunk is suitable for GRASS 7. For GRASS 6 use
shell script from GRASS Add-ons [1].

Martin

[1] https://svn.osgeo.org/grass/grass-addons/general/g.extension

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

Hi,

2009/9/2 Martin Landa <landa.martin@gmail.com>:

I am pretty much a python noob, so not sure where to start looking.

Any ideas?

Python script from trunk is suitable for GRASS 7. For GRASS 6 use
shell script from GRASS Add-ons [1].

Fixed in r38942, anyway it's not guaranteed that python script from
GRASS 7 will work in GRASS 6.

Martin

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

On Wed, Sep 2, 2009 at 8:20 AM, Martin Landa<landa.martin@gmail.com> wrote:

Python script from trunk is suitable for GRASS 7. For GRASS 6 use
shell script from GRASS Add-ons [1].

..

[1] https://svn.osgeo.org/grass/grass-addons/general/g.extension

Maybe more precisely:
- use the GRASS Add-ons [1] script for GRASS 6.4
- in GRASS 6.5.svn g.extension is included

Markus