<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p><font size="-1">Hello,</font></p>
<p><font size="-1">I've installed GRASS 7.8.3 on Ubuntu 20.10
(groovy) and when I try to install my own python script, the
message is :</font></p>
<p><font size="-1">Fetching <r.wtg> from
</media/zephyr/ress/informatique/scripts/grass/scripts/r.wtg>
(be patient)...<br>
Compiling...<br>
/bin/sh: 1:
/tmp/grass7-geophom-78286/tmp1tw0ncyb/r.wtg/scripts/r.wtg.visibility.threshold:
not found<br>
/bin/sh: 1:
/tmp/grass7-geophom-78286/tmp1tw0ncyb/r.wtg/scripts/r.wtg.visibility.conv:
not found<br>
/bin/sh: 1:
/tmp/grass7-geophom-78286/tmp1tw0ncyb/r.wtg/scripts/r.wtg.surround:
not found<br>
/bin/sh: 1:
/tmp/grass7-geophom-78286/tmp1tw0ncyb/r.wtg/scripts/r.wtg.visibility:
not found<br>
/bin/sh: 1:
/tmp/grass7-geophom-78286/tmp1tw0ncyb/r.wtg/scripts/r.wtg.intervisibility:
not found<br>
/bin/sh: 1:
/tmp/grass7-geophom-78286/tmp1tw0ncyb/r.wtg/scripts/r.wtg.visual.area:
not found<br>
/bin/sh: 1:
/tmp/grass7-geophom-78286/tmp1tw0ncyb/r.wtg/scripts/r.wtg.visual.cone:
not found<br>
/bin/sh: 1:
/tmp/grass7-geophom-78286/tmp1tw0ncyb/r.wtg/scripts/r.wtg.visual.competition:
not found<br>
/bin/sh: 1:
/tmp/grass7-geophom-78286/tmp1tw0ncyb/r.wtg/scripts/r.wtg.horizontal.visibility:
not found<br>
/bin/sh: 1:
/tmp/grass7-geophom-78286/tmp1tw0ncyb/r.wtg/scripts/r.terrain.vertical.angle:
not found<br>
/bin/sh: 1:
/tmp/grass7-geophom-78286/tmp1tw0ncyb/r.wtg/scripts/r.terrain.horizon:
not found<br>
/bin/sh: 1:
/tmp/grass7-geophom-78286/tmp1tw0ncyb/r.wtg/scripts/r.wtg.pit2hwtg:
not found<br>
/bin/sh: 1:
/tmp/grass7-geophom-78286/tmp1tw0ncyb/r.wtg/scripts/r.wtg.overhang:
not found<br>
/bin/sh: 1:
/tmp/grass7-geophom-78286/tmp1tw0ncyb/r.wtg/scripts/v.wtg.visibility.what:
not found<br>
/bin/sh: 1:
/tmp/grass7-geophom-78286/tmp1tw0ncyb/r.wtg/scripts/r.wtg.series:
not found<br>
/bin/sh: 1:
/tmp/grass7-geophom-78286/tmp1tw0ncyb/r.wtg/scripts/v.wtg.surround:
not found<br>
/bin/sh: 1:
/tmp/grass7-geophom-78286/tmp1tw0ncyb/r.wtg/scripts/g.wtg.listfromtable:
not found<br>
/bin/sh: 1:
/tmp/grass7-geophom-78286/tmp1tw0ncyb/r.wtg/scripts/v.wtg.drawline:
not found<br>
/bin/sh: 1:
/tmp/grass7-geophom-78286/tmp1tw0ncyb/r.wtg/scripts/v.wtg.transect:
not found<br>
Installing...<br>
Updating private addons metadata file...<br>
WARNING: No addons metadata available. Addons metadata file not
updated.<br>
Installation of <r.wtg> successfully finished<br>
</font></p>
<p><font size="-1">All files are well copied in
/home/me/.grass7/addons/scripts</font></p>
<p><font size="-1">And when i want to execute one of them (here
r.wtg.visibility), I get :</font></p>
<p><font size="-1">Traceback (most recent call last):<br>
File "/usr/lib/grass78/etc/python/grass/script/task.py",<br>
line 473, in get_interface_description<br>
<br>
p = Popen([cmd, '--interface-description'], stdout=PIPE,<br>
File "/usr/lib/grass78/etc/python/grass/script/core.py",<br>
line 63, in __init__<br>
<br>
subprocess.Popen.__init__(self, args, **kwargs)<br>
File "/usr/lib/python3.8/subprocess.py", line 854, in<br>
__init__<br>
<br>
self._execute_child(args, executable, preexec_fn, close_fds,<br>
File "/usr/lib/python3.8/subprocess.py", line 1702, in<br>
_execute_child<br>
<br>
raise child_exception_type(errno_num, err_msg, err_filename)<br>
FileNotFoundError<br>
:<br>
[Errno 2] No such file or directory: 'r.wtg.visibility'<br>
During handling of the above exception, another exception<br>
occurred:<br>
Traceback (most recent call last):<br>
File "/usr/lib/grass78/gui/wxpython/gui_core/prompt.py",<br>
line 272, in OnItemSelected<br>
<br>
self.cmdDesc = gtask.parse_interface(cmd)<br>
File "/usr/lib/grass78/etc/python/grass/script/task.py",<br>
line 522, in parse_interface<br>
<br>
tree = etree.fromstring(get_interface_description(name))<br>
File "/usr/lib/grass78/etc/python/grass/script/task.py",<br>
line 501, in get_interface_description<br>
<br>
raise ScriptError(_("Unable to fetch interface description<br>
for command '<{cmd}>'."<br>
grass.exceptions<br>
.<br>
ScriptError<br>
:<br>
Unable to fetch interface description for command<br>
'<r.wtg.visibility>'.<br>
Details: <[Errno 2] No such file or directory:<br>
'r.wtg.visibility'></font></p>
<p><font size="-1">If i rename a script with .py, I can execute it
from the menu File>execute script</font></p>
<p><font size="-1">I have two other Grass (7.9) on Debian Buster and
it works fine...<br>
</font></p>
<p><font size="-1">The $GRASS_ADDON_BASE = </font><font size="-1"><font
size="-1">/home/me/.grass7/addons</font><br>
The $GRASS_ADDON_PATH = </font><font size="-1"><font size="-1">/home/me/.grass7/addons/scripts</font></font></p>
<p><font size="-1"><font size="-1">Do you have any idea that problem
?</font></font></p>
<p><font size="-1"><font size="-1">Thank you for your help.<br>
</font></font></p>
<div class="moz-signature"><font size="-1">Frank David</font><br>
</div>
</body>
</html>