In PyQGIS 2.X I could handle the output of processings algorithm as follows:
import processing
# None is the OUTPUT parameter here
buffer = processing.runalg('qgis:fixeddistancebuffer', network_from_nv_tmp, 0.1, 10, True, None)
clip = processing.runalg('qgis:clip', self.network_layer, buffer['OUTPUT'], None)
key approach here is to set the output parameter to None
for running the algorithm and access it via result['OUTPUT']
in subsequent algorithms.
Now I try the same (or comparitivly the same) in PyQGIS 3:
import processing
buffer = processing.run('qgis:buffer', {'INPUT':network_from_nv_tmp, 'DISTANCE':0.1, 'SEGMENTS':10, 'END_CAP_STYLE':0, 'JOIN_STYLE':0, 'MITER_LIMIT':2, 'DISSOLVE':True, 'OUTPUT':None})
clip = processing.run('qgis:clip', {'INPUT':self.network_layer, 'OVERLAY':buffer['OUTPUT'], 'OUTPUT':None})
which throws the following traceback:
[...]
_core.QgsProcessingException: Unable to execute algorithm
Could not create destination layer for OUTPUT: invalid value
So my question is: What is a valid value for parameter OUTPUT
here?