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
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.
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)
···
Mario Reyes
Dra. Verónica Andreo
Investigadora Adjunta de CONICET
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)
···
Mario Reyes
Dra. Verónica Andreo
Investigadora Adjunta de CONICET