[GRASS-user] How to use g.extension in GRASS7.8

Hi,

I am trying to install the extension r.area using the g.extension tool in GRASS 7.8.
However, I get the error that it was not found in the Github repo (because the repo changed).
Here the error:

g.extension extension=r.area
Fetching <r.area> from GRASS GIS Addons repository (be patient)…
svn: E170000: URL ‘https://github.com/OSGeo/grass-addons/trunk/grass7/raster/r.area’ doesn’t exist
ERROR: GRASS Addons <r.area> not found

I tried adding url=https://github.com/OSGeo/grass-addons/tree/grass8/src/raster/r.area" but it also does not work:

g.extension extension=r.area url=https://github.com/OSGeo/grass-addons/tree/grass8/src/raster/r.area

The command:
g.extension extension=r.area url=https://github.com/OSGeo/grass-addons/tree/grass8/src/raster/r.area operation=add
produced an error (1) during execution:
Fetching <r.area> from
https://github.com/OSGeo/grass-addons/tree/grass8/src/raster/r.area/archive/master.zip
(be patient)…
ERROR: Extension <r.area> not found

How should I proceed to install it in GRASS 7.8?

Best
Bernardo

Hi,

On Mon, Jan 9, 2023 at 11:50 AM Bernardo Santos via grass-user
<grass-user@lists.osgeo.org> wrote:

Hi,

I am trying to install the extension r.area using the g.extension tool in GRASS 7.8.
However, I get the error that it was not found in the Github repo (because the repo changed).
Here the error:

> g.extension extension=r.area
Fetching <r.area> from GRASS GIS Addons repository (be patient)...
svn: E170000: URL 'https://github.com/OSGeo/grass-addons/trunk/grass7/raster/r.area’ doesn't exist
ERROR: GRASS Addons <r.area> not found

I tried adding url=https://github.com/OSGeo/grass-addons/tree/grass8/src/raster/r.area&quot; but it also does not work:
> g.extension extension=r.area url=https://github.com/OSGeo/grass-addons/tree/grass8/src/raster/r.area
The command:
g.extension extension=r.area url=https://github.com/OSGeo/grass-addons/tree/grass8/src/raster/r.area operation=add
produced an error (1) during execution:
Fetching <r.area> from
<https://github.com/OSGeo/grass-addons/tree/grass8/src/raster/r.area/archive/master.zip&gt;
(be patient)...
ERROR: Extension <r.area> not found

How should I proceed to install it in GRASS 7.8?

It should work like this (g.extension will figure out the correct path):

g.extension extension=r.area

HTH,
Markus

PS: Full path is only needed when the addon isn't part of the standard
addon repository but found elsewhere.

Hi Markus,

That was my first try, and then I get the error below:

g.extension extension=r.area
Fetching <r.area> from GRASS GIS Addons repository (be patient)…
svn: E170000: URL ‘https://github.com/OSGeo/grass-addons/trunk/grass7/raster/r.area’ doesn’t exist
ERROR: GRASS Addons <r.area> not found

B

Em segunda-feira, 9 de janeiro de 2023 14:35:48 GMT+1, Markus Neteler neteler@osgeo.org escreveu:

Hi,

On Mon, Jan 9, 2023 at 11:50 AM Bernardo Santos via grass-user

<grass-user@lists.osgeo.org> wrote:

Hi,

I am trying to install the extension r.area using the g.extension tool in GRASS 7.8.

However, I get the error that it was not found in the Github repo (because the repo changed).

Here the error:

g.extension extension=r.area

Fetching <r.area> from GRASS GIS Addons repository (be patient)…

svn: E170000: URL 'https://github.com/OSGeo/grass-addons/trunk/grass7/raster/r.area’ doesn’t exist

ERROR: GRASS Addons <r.area> not found

I tried adding url=https://github.com/OSGeo/grass-addons/tree/grass8/src/raster/r.area" but it also does not work:

g.extension extension=r.area url=https://github.com/OSGeo/grass-addons/tree/grass8/src/raster/r.area

The command:

g.extension extension=r.area url=https://github.com/OSGeo/grass-addons/tree/grass8/src/raster/r.area operation=add

produced an error (1) during execution:

Fetching <r.area> from

<https://github.com/OSGeo/grass-addons/tree/grass8/src/raster/r.area/archive/master.zip>

(be patient)…

ERROR: Extension <r.area> not found

How should I proceed to install it in GRASS 7.8?

It should work like this (g.extension will figure out the correct path):

g.extension extension=r.area

HTH,

Markus

PS: Full path is only needed when the addon isn’t part of the standard

addon repository but found elsewhere.

Which GRASS 7.8 you have and which operating system? Any chances you can update to GRASS 8.2?

El lun, 9 ene 2023 a las 10:58, Bernardo Santos via grass-user (<grass-user@lists.osgeo.org>) escribió:

Hi Markus,

That was my first try, and then I get the error below:

g.extension extension=r.area
Fetching <r.area> from GRASS GIS Addons repository (be patient)…
svn: E170000: URL ‘https://github.com/OSGeo/grass-addons/trunk/grass7/raster/r.area’ doesn’t exist
ERROR: GRASS Addons <r.area> not found

B

Em segunda-feira, 9 de janeiro de 2023 14:35:48 GMT+1, Markus Neteler <neteler@osgeo.org> escreveu:

Hi,

On Mon, Jan 9, 2023 at 11:50 AM Bernardo Santos via grass-user

<grass-user@lists.osgeo.org> wrote:

Hi,

I am trying to install the extension r.area using the g.extension tool in GRASS 7.8.

However, I get the error that it was not found in the Github repo (because the repo changed).

Here the error:

g.extension extension=r.area

Fetching <r.area> from GRASS GIS Addons repository (be patient)…

svn: E170000: URL 'https://github.com/OSGeo/grass-addons/trunk/grass7/raster/r.area’ doesn’t exist

ERROR: GRASS Addons <r.area> not found

I tried adding url=https://github.com/OSGeo/grass-addons/tree/grass8/src/raster/r.area" but it also does not work:

g.extension extension=r.area url=https://github.com/OSGeo/grass-addons/tree/grass8/src/raster/r.area

The command:

g.extension extension=r.area url=https://github.com/OSGeo/grass-addons/tree/grass8/src/raster/r.area operation=add

produced an error (1) during execution:

Fetching <r.area> from

<https://github.com/OSGeo/grass-addons/tree/grass8/src/raster/r.area/archive/master.zip>

(be patient)…

ERROR: Extension <r.area> not found

How should I proceed to install it in GRASS 7.8?

It should work like this (g.extension will figure out the correct path):

g.extension extension=r.area

HTH,

Markus

PS: Full path is only needed when the addon isn’t part of the standard

addon repository but found elsewhere.


grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Hi Bernardo,

On Mon, Jan 9, 2023 at 2:58 PM Bernardo Santos
<bernardo_brandaum@yahoo.com.br> wrote:

Hi Markus,

That was my first try, and then I get the error below:

> g.extension extension=r.area
Fetching <r.area> from GRASS GIS Addons repository (be patient)...
svn: E170000: URL 'https://github.com/OSGeo/grass-addons/trunk/grass7/raster/r.area’ doesn't exist
ERROR: GRASS Addons <r.area> not found

Ah right. Then your GRASS GIS 7.8 version may be too old. G 7.8.7
should be ok (G 7.8.8 is on the way these days) but in any case, as
Vero pointed out, we highly recommend to upgrade to GRASS GIS 8.2.x.

Best,
Markus

Hi Markus and Vero,

Thanks. Indeed, my GRASS version is old:
GRASS 7.8.5
Ubuntu 18.04.6 LTS

I unfortunately do not have a way to upgrade it myself since this is a company server shared with other people (and we have been fighting with IT to change to GRASS 8).
But maybe it is easier to at lease update GRASS to version 7.8.7 (or 7.8.8).

I just talked to a colleague (@mauricio.vancince) who mentioned he had the same problem but could overcome it opening the terminal as a superuser and using
g.extension r.area -s
Unfortunately I do not have admin rights, but I will see what is possible to be done.

Thanks!
Best
Bernardo

Em segunda-feira, 9 de janeiro de 2023 15:19:07 GMT+1, Markus Neteler neteler@osgeo.org escreveu:

Hi Bernardo,

On Mon, Jan 9, 2023 at 2:58 PM Bernardo Santos

<bernardo_brandaum@yahoo.com.br> wrote:

Hi Markus,

That was my first try, and then I get the error below:

g.extension extension=r.area

Fetching <r.area> from GRASS GIS Addons repository (be patient)…

svn: E170000: URL 'https://github.com/OSGeo/grass-addons/trunk/grass7/raster/r.area’ doesn’t exist

ERROR: GRASS Addons <r.area> not found

Ah right. Then your GRASS GIS 7.8 version may be too old. G 7.8.7

should be ok (G 7.8.8 is on the way these days) but in any case, as

Vero pointed out, we highly recommend to upgrade to GRASS GIS 8.2.x.

Best,

Markus

Hei Bernardo,

The problem is likely that the layout of the addon repo changed after 7.8.5, thus the path is not constructed correctly by g.extension in that version.

A workaround could be to fetch the add on repo with git (git clone https://github.com/osgeo/grass-addons)

And then point g.extension to your local copy:
g.extension extension=r.area url=./grass-addons/src/raster/r.area

You may need a zip file, but you can try the above first...

Good luck..

Cheers,
Stefan

Gesendet: Montag, den 09.01.2023 um 21:14 Uhr
Von: "Bernardo Santos via grass-user" <grass-user@lists.osgeo.org>
An: "Markus Neteler" <neteler@osgeo.org>
Cc: "GRASS User List" <grass-user@lists.osgeo.org>
Betreff: Re: [GRASS-user] How to use g.extension in GRASS7.8

Hi Markus and Vero,
Thanks. Indeed, my GRASS version is old:GRASS 7.8.5Ubuntu 18.04.6 LTS
I unfortunately do not have a way to upgrade it myself since this is a company server shared with other people (and we have been fighting with IT to change to GRASS 8).But maybe it is easier to at lease update GRASS to version 7.8.7 (or 7.8.8).
I just talked to a colleague (@mauricio.vancince) who mentioned he had the same problem but could overcome it opening the terminal as a superuser and using g.extension r.area -sUnfortunately I do not have admin rights, but I will see what is possible to be done.
Thanks!BestBernardo
    Em segunda-feira, 9 de janeiro de 2023 15:19:07 GMT+1, Markus Neteler <neteler@osgeo.org> escreveu:

Hi Bernardo,

On Mon, Jan 9, 2023 at 2:58 PM Bernardo Santos
<bernardo_brandaum@yahoo.com.br> wrote:
>
> Hi Markus,
>
> That was my first try, and then I get the error below:
>
> > g.extension extension=r.area
> Fetching <r.area> from GRASS GIS Addons repository (be patient)...
> svn: E170000: URL 'https://github.com/OSGeo/grass-addons/trunk/grass7/raster/r.area’ doesn't exist
> ERROR: GRASS Addons <r.area> not found

Ah right. Then your GRASS GIS 7.8 version may be too old. G 7.8.7
should be ok (G 7.8.8 is on the way these days) but in any case, as
Vero pointed out, we highly recommend to upgrade to GRASS GIS 8.2.x.

Best,
Markus
  _______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

On 1/10/23 1:44 AM, Bernardo Santos via grass-user wrote:

I unfortunately do not have a way to upgrade it myself since this is a company server shared with other people (and we have been fighting with IT to change to GRASS 8).
But maybe it is easier to at lease update GRASS to version 7.8.7 (or 7.8.8).

A workaround, without having to upgrade GRASS (which is not a good idea), is to clone the grass-addons repo and supply a local path as extension URL.

 git clone \-b grass7 https://github.com/OSGeo/grass-addons $PWD/grass\-addons
 g\.extension extension=r\.area url=$PWD/grass\-addons/src/raster/r\.area

Asim

Hi Stefan,

this worked perfectly for now! Thanks!
Best
Bernardo

Em terça-feira, 10 de janeiro de 2023 07:37:15 GMT+1, Stefan Blumentrath stefan.blumentrath@gmx.de escreveu:

Hei Bernardo,

The problem is likely that the layout of the addon repo changed after 7.8.5, thus the path is not constructed correctly by g.extension in that version.

A workaround could be to fetch the add on repo with git (git clone https://github.com/osgeo/grass-addons)

And then point g.extension to your local copy:

g.extension extension=r.area url=./grass-addons/src/raster/r.area

You may need a zip file, but you can try the above first…

Good luck…

Cheers,

Stefan

Gesendet: Montag, den 09.01.2023 um 21:14 Uhr

Von: “Bernardo Santos via grass-user” <grass-user@lists.osgeo.org>

An: “Markus Neteler” <neteler@osgeo.org>

Cc: “GRASS User List” <grass-user@lists.osgeo.org>

Betreff: Re: [GRASS-user] How to use g.extension in GRASS7.8

Hi Markus and Vero,

Thanks. Indeed, my GRASS version is old:GRASS 7.8.5Ubuntu 18.04.6 LTS

I unfortunately do not have a way to upgrade it myself since this is a company server shared with other people (and we have been fighting with IT to change to GRASS 8).But maybe it is easier to at lease update GRASS to version 7.8.7 (or 7.8.8).

I just talked to a colleague (@mauricio.vancince) who mentioned he had the same problem but could overcome it opening the terminal as a superuser and using g.extension r.area -sUnfortunately I do not have admin rights, but I will see what is possible to be done.

Thanks!BestBernardo

Em segunda-feira, 9 de janeiro de 2023 15:19:07 GMT+1, Markus Neteler <neteler@osgeo.org> escreveu:

Hi Bernardo,

On Mon, Jan 9, 2023 at 2:58 PM Bernardo Santos

<bernardo_brandaum@yahoo.com.br> wrote:

Hi Markus,

That was my first try, and then I get the error below:

g.extension extension=r.area

Fetching <r.area> from GRASS GIS Addons repository (be patient)…

svn: E170000: URL 'https://github.com/OSGeo/grass-addons/trunk/grass7/raster/r.area’ doesn’t exist

ERROR: GRASS Addons <r.area> not found

Ah right. Then your GRASS GIS 7.8 version may be too old. G 7.8.7

should be ok (G 7.8.8 is on the way these days) but in any case, as

Vero pointed out, we highly recommend to upgrade to GRASS GIS 8.2.x.

Best,

Markus


grass-user mailing list

grass-user@lists.osgeo.org

https://lists.osgeo.org/mailman/listinfo/grass-user


grass-user mailing list

grass-user@lists.osgeo.org

https://lists.osgeo.org/mailman/listinfo/grass-user