<div dir="ltr">Hello,<br><br>I'm running QGIS 2.18.3 on Gentoo Linux and I have adapted a pyqgis script to run standalone, mostly so that I can run it in an IDE and use the debugger. I'm using a combination of SAGA and GRASS algorithms in the script and handing layers back and forth.<br><br>Consider this snippet of code:<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">#import and buffer grid<br>file_grid=path+"Data/grid_map.shp"<br>grid_v = QgsVectorLayer(file_grid, "grid", "ogr")<br>QgsMapLayerRegistry.instance().addMapLayer(grid_v)<br>extent="34.2834319957,40.1165319957,-4.1833333969,3.6163546031"<br>file_grid_r=processing.runalg("saga:shapestogrid",grid_v,"TENSION_KV",0,4,0,1,3,extent,0.008333,1,None)['GRID']<br>file_buffer=processing.runalg("grass:r.buffer",file_grid_r,buffer_sizes,1,False,extent,0,None)['output']<br>buffer= QgsRasterLayer(file_buffer)<br>QgsMapLayerRegistry.instance().addMapLayer(buffer)<br></blockquote><br>The issue is that the processing.runalg("grass:r.buffer".. returns a path that does not exist. It is as though it is generating the layer target name, but not actually writing the file. But there is also no error message, and nothing appears in the processing log. The error message<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">ERROR 4: `/tmp/processing1bd9334de08f4c9abeb227e4b9f5a5d2/e861d6518096485ca004a3efe2b9a9a8/output.tif' does not exist in the file system,<br></blockquote><br>and is not recognised as a supported dataset name.<br><br>appears as soon as anything tries to use the output.tif layer.<br><br>Note that it does not matter if I specify a target layer or not -- in neither case is it generated.<br><br>The most frustrating aspect here is that there are no useful error messages I can use to determine what is actually going wrong here. I'd be grateful for any feedback or assistance.<br><br>Stephen<br></div>