[QGIS-Developer] Processing R scripts - TypeError: cannot concatenate 'str' and 'NoneType' objects
Anita Graser
anitagraser at gmx.at
Sat Jun 3 03:36:49 PDT 2017
Maybe a fix ...
On Fri, Jun 2, 2017 at 8:31 PM, Anita Graser <anitagraser at gmx.at> wrote:
> File "C:/OSGEO4~1/apps/qgis-ltr/./python/plugins\processing\algs\r\RAlgorithm.py",
> line 404, in getExportCommands
>
> commands.append('cat("##' + out.name + '",file="' + outputDataFile +
> '",sep="\n",append=TRUE)')
>
> TypeError: cannot concatenate 'str' and 'NoneType' objects
>
Not sure if it breaks anything else, but if I add
elif isinstance(out, OutputHTML):
pass
before the offending
elif out.name != RAlgorithm.R_OUTPUT_VALUES:
commands.append('cat("##' + out.name + '",file="' +
outputDataFile + '",sep="\n",append=TRUE)')
commands.append('cat(' + out.name + ',file="' +
outputDataFile + '",sep="\n",append=TRUE)')
Then the HTML output is created and visible in the results viewer and there
is no error.
I'm not sure what the problematic lines were supposed to do anyway ...
Best wishes,
Anita
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20170603/56d22546/attachment.html>
More information about the QGIS-Developer
mailing list