Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rasterize and Rasterize Over algorithms not opening #23976

Closed
qgib opened this issue Jan 11, 2017 · 10 comments
Closed

Rasterize and Rasterize Over algorithms not opening #23976

qgib opened this issue Jan 11, 2017 · 10 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Processing Relating to QGIS Processing framework or individual Processing algorithms Regression Something which used to work, but doesn't anymore
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Jan 11, 2017

Author Name: matteo ghetta (@ghtmtt)
Original Redmine Issue: 16061
Affected QGIS version: 2.18.13
Redmine category:processing/gdal
Assignee: Victor Olaya


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

@qgib
Copy link
Contributor Author

qgib commented Jan 12, 2017

Author Name: Giovanni Manghi (@gioman)


  • priority_id was changed from High to Severe/Regression

@qgib
Copy link
Contributor Author

qgib commented Feb 7, 2017

Author Name: Alexander Bruy (@alexbruy)


  • operating_system was changed from Linux mint to
  • os_version was changed from sarah to

@qgib
Copy link
Contributor Author

qgib commented Feb 7, 2017

Author Name: Alexander Bruy (@alexbruy)


Just a small note. This error thrown only if algorithm opened with empty project, if there is a vector layer loaded all not error is displayed.

@qgib
Copy link
Contributor Author

qgib commented Feb 7, 2017

Author Name: matteo ghetta (@ghtmtt)


mmm.. on my machine I get the same error also with layers in the toc and with or without any project opened

@qgib
Copy link
Contributor Author

qgib commented Feb 14, 2017

Author Name: Giovanni Manghi (@gioman)


I also see the error regardless the project is empty or not.

@qgib
Copy link
Contributor Author

qgib commented Apr 29, 2017

Author Name: Arnaud Morvan (@arnaud-morvan)


Pull request proposed : #4445

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Alexander Bruy (@alexbruy)


Fixed in bc09875


  • resolution was changed from to fixed/implemented
  • status_id was changed from Open to Closed
  • description was changed from 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 to 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

@qgib
Copy link
Contributor Author

qgib commented Sep 26, 2017

Author Name: Richard Duivenvoorde (@rduivenvoorde)


Reopening this , running current 2.18(.13) head ( QGIS code revision ce11ebb ) here.

Having exact this error message in 'Rasterize (vector to raster)'

Printing out the 'arguments'-string of share/qgis/python/plugins/processing/algs/gdal/rasterize.py" I have:

['-a', u'1', '-ot', 'Int16', '-of', 'GTiff', '-tr', u'1', u'1', '-a_nodata', u'1', '-co COMPRESS=JPEG', u'-co JPEG_QUALITY=1', '-co BIGTIFF=YES', u'1', '-l', None, u'1', u'dummy']

Looks like this is the inLayer? Which in my case is not yet choosen (as it is the first time I open the dialog, maybe not even with layers in my legend...)?


  • priority_id was changed from Severe/Regression to Low
  • regression was changed from 0 to 1

@qgib
Copy link
Contributor Author

qgib commented Sep 26, 2017

Author Name: Giovanni Manghi (@gioman)


The error (seen on Windows and Linux) is

Traceback (most recent call last):
File "/usr/local/share/qgis/python/plugins/processing/gui/ProcessingToolbox.py", line 250, in executeAlgorithm
dlg = alg.getCustomParametersDialog()
File "/usr/local/share/qgis/python/plugins/processing/algs/gdal/GdalAlgorithm.py", line 49, in getCustomParametersDialog
return GdalAlgorithmDialog(self)
File "/usr/local/share/qgis/python/plugins/processing/algs/gdal/GdalAlgorithmDialog.py", line 40, in init
AlgorithmDialogBase.init(self, alg)
File "/usr/local/share/qgis/python/plugins/processing/gui/AlgorithmDialogBase.py", line 71, in init
algHelp = self.alg.shortHelp()
File "/usr/local/share/qgis/python/plugins/processing/algs/gdal/GdalAlgorithm.py", line 78, in shortHelp
url = helpPath + '{}.html'.format(self.commandName())
File "/usr/local/share/qgis/python/plugins/processing/algs/gdal/GdalAlgorithm.py", line 90, in commandName
name = alg.getConsoleCommands()[0]
File "/usr/local/share/qgis/python/plugins/processing/algs/gdal/rasterize_over.py", line 80, in getConsoleCommands
return ['gdal_rasterize', GdalUtils.escapeAndJoin(arguments)]
File "/usr/local/share/qgis/python/plugins/processing/algs/gdal/GdalUtils.py", line 180, in escapeAndJoin
if s[0] != '-' and ' ' in s:
TypeError: 'NoneType' object has no attribute 'getitem'


  • status_id was changed from Closed to Open
  • priority_id was changed from Low to High
  • version was changed from master to 2.18.13
  • resolution was changed from fixed/implemented to
  • subject was changed from Rasterize and Rasterize Ovr algorithm not opening to Rasterize and Rasterize Over algorithms not opening

@qgib
Copy link
Contributor Author

qgib commented Sep 28, 2017

Author Name: Alexander Bruy (@alexbruy)


Applied in changeset 2116a60.


  • status_id was changed from Open to Closed
  • done_ratio was changed from 0 to 100

@qgib qgib closed this as completed Sep 28, 2017
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Processing Relating to QGIS Processing framework or individual Processing algorithms Regression Something which used to work, but doesn't anymore labels May 25, 2019
@qgib qgib added this to the Version 3.0 milestone May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Processing Relating to QGIS Processing framework or individual Processing algorithms Regression Something which used to work, but doesn't anymore
Projects
None yet
Development

No branches or pull requests

1 participant