<div dir="ltr">Hi everybody, <div><br></div><div>Some addons depend on other addons. E.g. r.lfp depends on r.stream.distance.</div><div><br></div><div>If you try to use it while r.stream.distance is not installed, you get the following traceback which is not particularly helpful; especially so if you are not familiar with Python.</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Traceback (most recent call last):<br>  File "/home/grassuser/.grass7/addons/scripts/r.lfp", line 111, in <module><br>    sys.exit(main())<br>  File "/home/grassuser/.grass7/addons/scripts/r.lfp", line 43, in main<br>    calculate_lfp(input, output, coords)<br>  File "/home/grassuser/.grass7/addons/scripts/r.lfp", line 67, in calculate_lfp<br>    distance=flds)<br>  File "/usr/lib/grass70/etc/python/grass/script/core.py", line 392, in run_command<br>    ps = start_command(*args, **kwargs)<br>  File "/usr/lib/grass70/etc/python/grass/script/core.py", line 361, in start_command<br>    return Popen(args, **popts)<br>  File "/usr/lib/grass70/etc/python/grass/script/core.py", line 64, in __init__<br>    subprocess.Popen.__init__(self, args, **kwargs)<br>  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__<br>    errread, errwrite)<br>  File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child<br>    raise child_exception<br>OSError: [Errno 2] No such file or directory</blockquote><div><br></div><div>So my question is whether there is a way to define addon dependencies, and if there is not, what would be a sensible way to support something like this.</div></div><div><br></div><div>best regards,</div><div>Panos</div></div>