Dear Grass users,
I obtain this error running r.terraflow module from the python environment:
import grass.script as gs
…
gs.run_command(“r.terraflow”, elevation=‘DSM_neg’, filled=‘DSM_neg_filled’, overwrite=True)
WARNING: Raster map <DSM_neg> is of type DCELL_TYPE – precision may be
lost
ami_single_temp_name: G_mkstemp() failed: : No such file or directory
r.terraflow: ami_stream.cpp:93: int ami_single_temp_name(const string&, char*): Assertion `0’ failed.
Traceback (most recent call last):
File “/home/manuele/.virtualenvs/ETS/bin/ets.py”, line 7, in
exec(compile(f.read(), file, ‘exec’))
File “/home/manuele/Lavoro/ETS/ETSCore/scripts/ets.py”, line 87, in
terraflow(env[‘resolution’], area_studio=env[‘aoi’])
File “/home/manuele/Lavoro/ETS/ETSCore/src/ETSCore/core.py”, line 159, in terraflow
gs.run_command(“r.terraflow”, elevation=‘DSM_neg’, filled=‘DSM_neg_filled’, overwrite=True)
File “/usr/lib/grass78/etc/python/grass/script/core.py”, line 441, in run_command
return handle_errors(returncode, returncode, args, kwargs)
File “/usr/lib/grass78/etc/python/grass/script/core.py”, line 342, in handle_errors
raise CalledModuleError(module=None, code=code,
grass.exceptions.CalledModuleError: Module run None r.terraflow --o elevation=DSM_neg filled=DSM_neg_filled ended with error
Process ended with non-zero return code -6. See errors in the (error) output.
I haven’t found any help looking about it on the web and I cannot understand the reference about the missing file
ami_single_temp_name: G_mkstemp() failed: : No such file or directory
that I guess is the problem.
thanks a lot for any help.
Cheers
Manuele