g.extension crashed with FileNotFoundError in _execute_child(): [Errno 2] No such file or directory: 'svn'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grass (Ubuntu) |
New
|
Medium
|
Unassigned |
Bug Description
Grass v.7.8.2
Ubuntu 20.04.3
Using grass_gui, attempted to install extension 'r.in.usgs'. Results returned 'FileNotFoundError' then application crashed.
###
(Fri Jan 7 11:24:18 2022)
g.extension --verbose extension=r.in.usgs
Fetching <r.in.usgs> from GRASS GIS Addons repository (be patient)...
Downloading source code for <r.in.usgs> from <https:/
Traceback (most recent call last):
File "/usr/lib/
<module>
sys.
File "/usr/lib/
main
install_
File "/usr/lib/
install_extension
ret1, installed_modules, tmp_dir =
install_
File "/usr/lib/
install_
download_
File "/usr/lib/
download_
download_
directory)
File "/usr/lib/
download_
if grass.call(['svn', 'export',
File "/usr/lib/
line 74, in call
return Popen(*args, **kwargs).wait()
File "/usr/lib/
line 63, in __init__
subprocess.
File "/usr/lib/
__init__
self.
close_fds,
File "/usr/lib/
_execute_child
raise child_exception
err_filename)
FileNotFoundError: [Errno 2] No such file or directory:
'svn'
(Fri Jan 7 11:24:19 2022) Command finished (0 sec)
##
ProblemType: Crash
DistroRelease: Ubuntu 20.04
Package: grass-core 7.8.2-1build3
ProcVersionSign
Uname: Linux 5.11.0-44-generic x86_64
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
CrashCounter: 1
CurrentDesktop: XFCE
Date: Fri Jan 7 11:24:19 2022
ExecutablePath: /usr/lib/
InstallationDate: Installed on 2021-11-12 (55 days ago)
InstallationMedia: Xubuntu 20.04.3 LTS "Focal Fossa" - Release amd64 (20210819.1)
InterpreterPath: /usr/bin/python3.8
ProcCmdline: /usr/bin/python3 /usr/lib/
Python3Details: /usr/bin/python3.8, Python 3.8.10, python3-minimal, 3.8.2-0ubuntu2
PythonArgs: ['/usr/
PythonDetails: N/A
SourcePackage: grass
Title: g.extension crashed with FileNotFoundError in _execute_child(): [Errno 2] No such file or directory: 'svn'
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo users
mtime.conffile.
tags: | removed: need-duplicate-check |
Changed in grass (Ubuntu): | |
importance: | Undecided → Medium |
The reason is that the GRASS GIS Addons repository has been restructured in 2021 to distinguish GRASS GIS 7 from the new version 8.
Hence,
`Downloading source code for <r.in.usgs> from <https:/ /github. com/OSGeo/ grass-addons/ trunk/grass7/ raster/ r.in.usgs>`
is no longer a valid path, the new path is:
https:/ /github. com/OSGeo/ grass-addons/ tree/grass7/ src/raster/ r.in.usgs
Possibilities for you: grass78/ scripts/ g.extension` , using the changes provided here: https:/ /github. com/OSGeo/ grass/pull/ 1762
a) you use GRASS GIS 7.8.2 which is fairly old. Please update as `g.extension` has been updated accordingly to use the new path in later versions (starting from GRASS GIS 7.8.6).
b) if that's not possible, you may edit your local `g.extension` file in `/usr/lib64/
See also:
https:/ /trac.osgeo. org/grass/ wiki/Release/ 7.8.6-News# Majormodulechan ges
- G78:g.extension: updated to match new addon repository structure (PR:1762)