Bug report #16061

Updated by Alexander Bruy over 7 years ago

Both gdal algorithms of gdal won't open in processing due to this python error (QGIS compiled from source):



TypeError: 'NoneType' object is not subscriptable

Traceback (most recent call last):

File "/home/matteo/lavori/QGIS/build-qgis3/output/python/plugins/processing/gui/ProcessingToolbox.py", line 259, in executeAlgorithm

dlg = alg.getCustomParametersDialog()

File "/home/matteo/lavori/QGIS/build-qgis3/output/python/plugins/processing/algs/gdal/GdalAlgorithm.py", line 57, in getCustomParametersDialog

return GdalAlgorithmDialog(self)

File "/home/matteo/lavori/QGIS/build-qgis3/output/python/plugins/processing/algs/gdal/GdalAlgorithmDialog.py", line 39, in __init__

AlgorithmDialogBase.__init__(self, alg)

File "/home/matteo/lavori/QGIS/build-qgis3/output/python/plugins/processing/gui/AlgorithmDialogBase.py", line 108, in __init__

algHelp = self.alg.shortHelp()

File "/home/matteo/lavori/QGIS/build-qgis3/output/python/plugins/processing/algs/gdal/GdalAlgorithm.py", line 86, in shortHelp

url = helpPath + '{}.html'.format(self.commandName())

File "/home/matteo/lavori/QGIS/build-qgis3/output/python/plugins/processing/algs/gdal/GdalAlgorithm.py", line 98, in commandName

name = alg.getConsoleCommands()[0]

File "/home/matteo/lavori/QGIS/build-qgis3/output/python/plugins/processing/algs/gdal/rasterize.py", line 162, in getConsoleCommands

return ['gdal_rasterize', GdalUtils.escapeAndJoin(arguments)]

File "/home/matteo/lavori/QGIS/build-qgis3/output/python/plugins/processing/algs/gdal/GdalUtils.py", line 183, in escapeAndJoin

if s[0] != '-' and ' ' in s:

TypeError: 'NoneType' object is not subscriptable

Back