<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;"><div>Dear Grass users,<br></div><div>I obtain this error running <b>r.terraflow</b> module from the python environment:<br></div><div><br></div><div><span class="font" style="font-family:"courier new", courier, monospace, sans-serif"><span class="highlight" style="background-color:rgb(204, 204, 204)">import grass.script as gs</span></span><span class="highlight" style="background-color:rgb(204, 204, 204)"><br></span></div><div><span class="font" style="font-family:"courier new", courier, monospace, sans-serif"><span class="highlight" style="background-color:rgb(204, 204, 204)">...</span></span><span class="highlight" style="background-color:rgb(204, 204, 204)"><br></span></div><div><span class="font" style="font-family:"courier new", courier, monospace, sans-serif"><span class="highlight" style="background-color:rgb(204, 204, 204)">gs.run_command("r.terraflow", elevation='DSM_neg', filled='DSM_neg_filled', overwrite=True)</span></span><span class="highlight" style="background-color:rgb(204, 204, 204)"><br></span></div><div><span class="font" style="font-family:"courier new", courier, monospace, sans-serif"><br></span></div><div><span class="font" style="font-family:"courier new", courier, monospace, sans-serif"><br></span></div><div><span class="font" style="font-family:"courier new", courier, monospace, sans-serif"><span class="highlight" style="background-color:rgb(255, 229, 204)">WARNING: Raster map <DSM_neg> is of type DCELL_TYPE -- precision may be</span><span class="highlight" style="background-color:rgb(255, 229, 204)"><br></span></span></div><div><span class="font" style="font-family:"courier new", courier, monospace, sans-serif"><span class="highlight" style="background-color:rgb(255, 229, 204)">         lost</span><span class="highlight" style="background-color:rgb(255, 229, 204)"><br></span></span></div><div><span class="font" style="font-family:"courier new", courier, monospace, sans-serif"><span class="highlight" style="background-color:rgb(255, 229, 204)">ami_single_temp_name: G_mkstemp() failed: : No such file or directory</span><span class="highlight" style="background-color:rgb(255, 229, 204)"><br></span></span></div><div><span class="font" style="font-family:"courier new", courier, monospace, sans-serif"><span class="highlight" style="background-color:rgb(255, 229, 204)">r.terraflow: ami_stream.cpp:93: int ami_single_temp_name(const string&, char*): Assertion `0' failed.</span><span class="highlight" style="background-color:rgb(255, 229, 204)"><br></span></span></div><div><span class="font" style="font-family:"courier new", courier, monospace, sans-serif"><span class="highlight" style="background-color:rgb(255, 229, 204)">Traceback (most recent call last):</span><span class="highlight" style="background-color:rgb(255, 229, 204)"><br></span></span></div><div><span class="font" style="font-family:"courier new", courier, monospace, sans-serif"><span class="highlight" style="background-color:rgb(255, 229, 204)">  File "/home/manuele/.virtualenvs/ETS/bin/ets.py", line 7, in <module></span><span class="highlight" style="background-color:rgb(255, 229, 204)"><br></span></span></div><div><span class="font" style="font-family:"courier new", courier, monospace, sans-serif"><span class="highlight" style="background-color:rgb(255, 229, 204)">    exec(compile(f.read(), __file__, 'exec'))</span><span class="highlight" style="background-color:rgb(255, 229, 204)"><br></span></span></div><div><span class="font" style="font-family:"courier new", courier, monospace, sans-serif"><span class="highlight" style="background-color:rgb(255, 229, 204)">  File "/home/manuele/Lavoro/ETS/ETSCore/scripts/ets.py", line 87, in <module></span><span class="highlight" style="background-color:rgb(255, 229, 204)"><br></span></span></div><div><span class="font" style="font-family:"courier new", courier, monospace, sans-serif"><span class="highlight" style="background-color:rgb(255, 229, 204)">    terraflow(env['resolution'], area_studio=env['aoi'])</span><span class="highlight" style="background-color:rgb(255, 229, 204)"><br></span></span></div><div><span class="font" style="font-family:"courier new", courier, monospace, sans-serif"><span class="highlight" style="background-color:rgb(255, 229, 204)">  File "/home/manuele/Lavoro/ETS/ETSCore/src/ETSCore/core.py", line 159, in terraflow</span><span class="highlight" style="background-color:rgb(255, 229, 204)"><br></span></span></div><div><span class="font" style="font-family:"courier new", courier, monospace, sans-serif"><span class="highlight" style="background-color:rgb(255, 229, 204)">    gs.run_command("r.terraflow", elevation='DSM_neg', filled='DSM_neg_filled', overwrite=True)</span><span class="highlight" style="background-color:rgb(255, 229, 204)"><br></span></span></div><div><span class="font" style="font-family:"courier new", courier, monospace, sans-serif"><span class="highlight" style="background-color:rgb(255, 229, 204)">  File "/usr/lib/grass78/etc/python/grass/script/core.py", line 441, in run_command</span><span class="highlight" style="background-color:rgb(255, 229, 204)"><br></span></span></div><div><span class="font" style="font-family:"courier new", courier, monospace, sans-serif"><span class="highlight" style="background-color:rgb(255, 229, 204)">    return handle_errors(returncode, returncode, args, kwargs)</span><span class="highlight" style="background-color:rgb(255, 229, 204)"><br></span></span></div><div><span class="font" style="font-family:"courier new", courier, monospace, sans-serif"><span class="highlight" style="background-color:rgb(255, 229, 204)">  File "/usr/lib/grass78/etc/python/grass/script/core.py", line 342, in handle_errors</span><span class="highlight" style="background-color:rgb(255, 229, 204)"><br></span></span></div><div><span class="font" style="font-family:"courier new", courier, monospace, sans-serif"><span class="highlight" style="background-color:rgb(255, 229, 204)">    raise CalledModuleError(module=None, code=code,</span><span class="highlight" style="background-color:rgb(255, 229, 204)"><br></span></span></div><div><span class="font" style="font-family:"courier new", courier, monospace, sans-serif"><span class="highlight" style="background-color:rgb(255, 229, 204)">grass.exceptions.CalledModuleError: Module run None r.terraflow --o elevation=DSM_neg filled=DSM_neg_filled ended with error</span><span class="highlight" style="background-color:rgb(255, 229, 204)"><br></span></span></div><div><span class="font" style="font-family:"courier new", courier, monospace, sans-serif"><span class="highlight" style="background-color:rgb(255, 229, 204)">Process ended with non-zero return code -6. See errors in the (error) output.</span></span><br></div><div><br></div><div><br></div><div>I haven't found any help looking about it on the web and I cannot understand the reference about the missing file <br></div><div><span style="font-family: "courier new", courier, monospace, sans-serif;" class="font"><span style="background-color:#ffe5cc" class="highlight">ami_single_temp_name: G_mkstemp() failed: : No such file or directory</span></span><br></div><div>that I guess is the problem.<br></div><div><br></div><div>thanks a lot for any help.<br></div><div>Cheers<br></div><div><br></div><div>      Manuele<br></div></div><br></body></html>