[GRASS-user] Installing addons in GRASS 8.2.0 - Ubuntu 22.04.3 LTS

Hi,

I want to install the r.clip addon in Ubuntu 22.04.3 LTS. I am using GRASS 8.2.0, installed from https://launchpad.net/%7Eubuntugis/+archive/ubuntu/ppa. I also installed svn and grass-dev. When I use g.extension I get the following error:

g.extension r.clip
/usr/lib/grass82/scripts/g.extension:167: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
  from distutils.dir_util import copy_tree
Fetching <r.clip> from GRASS GIS Addons repository (be patient)...
svn: E170013: Unable to connect to a repository at URL '[https://github.com/OSGeo/grass-addons/branches/grass8/src/raster/r.clip](https://github.com/OSGeo/grass-addons/branches/grass8/src/raster/r.clip)'
svn: E160013: '/OSGeo/grass-addons/branches/grass8/src/raster/r.clip' path not found
ERROR: GRASS Addons <r.clip> not found
Do you know what the problem is?


···

Mario Reyes

Hi!

This problem seems to have been fixed proactively 10 months ago in https://github.com/OSGeo/grass/pull/2895 and released in Grass 8.3.0 on June 24. 2023.

GitHub announced last year that it was sunsetting SVN protocol access, and has been sunset on January 8 2024. So it’s expected that the installation using an now in existing url won’t work.

[

Product@2x.png

Sunsetting Subversion support
github.blog

](https://github.blog/2023-01-20-sunsetting-subversion-support/)

[

Subversion has been sunset
github.blog

cropped-github-favicon-512.png

](https://github.blog/changelog/2024-01-08-subversion-has-been-sunset/)

Apart from using 8.3.0+, like from https://launchpad.net/~ubuntugis/+archive/ubuntu/ubuntugis-unstable, I don’t remember the specific workaround to specify an alternative url that won’t use the SVN code path for code stored in GitHub.
Can someone step in?

Edouard Choinière

···

Mario Reyes

Hola Mario,

You could download the r.clip folder to your disk and install the extension using the path to the folder. Something like: g.extension extension=r.clip url=path/to/folder/r.clip

hth,
Vero

(attachments)

Product@2x.png
cropped-github-favicon-512.png

···

Mario Reyes

Dra. Verónica Andreo
Investigadora Adjunta de CONICET

Instituto Gulich (CONAE - UNC)

Centro Espacial Teófilo Tabanera (CETT)

Falda del Cañete - Córdoba, Argentina

+54 3547 400000 int. 1153
https://veroandreo.gitlab.io/

Hello Veronica and Edoardo:

Thanks for your help. I know now that it’s not possible to install GRASS addons with g.extension in 8.2. The workaround provided by Veronica is what I need. Thanks!

Best Regards,

(attachments)

Product@2x.png
cropped-github-favicon-512.png

···

Mario Reyes

Dra. Verónica Andreo
Investigadora Adjunta de CONICET

Instituto Gulich (CONAE - UNC)

Centro Espacial Teófilo Tabanera (CETT)

Falda del Cañete - Córdoba, Argentina

+54 3547 400000 int. 1153
https://veroandreo.gitlab.io/

Mario Reyes