<div dir="ltr">

<p style="margin:0px;text-indent:0px;white-space:pre-wrap">Hello,</p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><br></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap">I am working on a QGIS plugin, that should use the module r.kappa from GRASS. It looks like this in my plugin source code: <br></p><pre style="background-color:rgb(255,255,255);color:rgb(0,0,0);font-family:"Courier New"">processing.run(<span style="color:rgb(0,128,128);font-weight:bold">'grass7:r.kappa'</span>,<br>               {<span style="color:rgb(0,128,128);font-weight:bold">"classification"</span>: classificationLayer,<br>                <span style="color:rgb(0,128,128);font-weight:bold">"reference"</span>: referenceLayer,<br>                <span style="color:rgb(0,128,128);font-weight:bold">"title"</span>: <span style="color:rgb(0,128,128);font-weight:bold">'ACCURACY ASSESSMENT'</span>,<br>                <span style="color:rgb(0,128,128);font-weight:bold">"-h"</span>: <span style="color:rgb(0,0,128);font-weight:bold">False</span>,<br>                <span style="color:rgb(0,128,128);font-weight:bold">"-w"</span>: <span style="color:rgb(0,0,128);font-weight:bold">False</span>,<br>                <span style="color:rgb(0,128,128);font-weight:bold">"GRASS_REGION_CELLSIZE_PARAMETER"</span>: cellSize,<br>                <span style="color:rgb(0,128,128);font-weight:bold">"GRASS_REGION_PARAMETER"</span>: <span style="color:rgb(0,0,128);font-weight:bold">None</span>,<br>                <span style="color:rgb(0,128,128);font-weight:bold">"output"</span>: outputFile})</pre>

<div>As an error, I get a QgsProcessingException saying 'There were errors executing the algorithm'.<br></div><div><br></div><div>If I run the same manually in QGIS via the toolbox, everything works fine. Both calls of the module (manually and via the plugin) look similar in the log message panel.



I have tried providing the inputs as QgsRasterLayer and as full filenames/paths, without success. I don't think the error is in the GRASS module, as it works fine when executed manually. Maybe someone encountered a similar problem?</div><div><br></div><div>Thank you in advance,</div><div><br></div><div>Sophie<br></div><div><br></div><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><br></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><br></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><br></p><pre style="background-color:rgb(255,255,255);color:rgb(0,0,0);font-family:"Courier New""><br></pre></div>