Numerous processing algs which export to file are broken #23968
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Processing
Relating to QGIS Processing framework or individual Processing algorithms
Author Name: Nyall Dawson (@nyalldawson)
Original Redmine Issue: 16053
Affected QGIS version: master
Redmine category:processing/core
Assignee: Victor Olaya
A number of processing algs are broken on master. This seems to be any which use output.getTableWriter or the TableWriter class:
Error is:
Uncaught error while executing algorithm
Traceback (most recent call last):
File "/home/nyall/dev/build-QGIS/output/python/plugins/processing/core/GeoAlgorithm.py", line 213, in execute
self.processAlgorithm(progress)
File "/home/nyall/dev/build-QGIS/output/python/plugins/processing/algs/qgis/StatisticsByCategories.py", line 84, in processAlgorithm
writer = output.getTableWriter(fields)
File "/home/nyall/dev/build-QGIS/output/python/plugins/processing/core/outputs.py", line 295, in getTableWriter
return TableWriter(self.value, self.encoding, fields)
File "/home/nyall/dev/build-QGIS/output/python/plugins/processing/tools/vector.py", line 746, in init
self.writer.writerow(fields)
File "/home/nyall/dev/build-QGIS/output/python/plugins/processing/tools/vector.py", line 774, in writerow
data = data.decode('utf-8')
AttributeError: 'str' object has no attribute 'decode'
The text was updated successfully, but these errors were encountered: