Bug report #16123

Processing Build Virtual Raster not opening

Added by matteo ghetta almost 8 years ago. Updated over 6 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Tests Suite
Affected QGIS version:2.18.4 Regression?:No
Operating System:Linux Mint Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:24035

Description

Trying to add the Build Virtual Raster gdal test, the algorithm works fine (output is correctly generated).
But, when trying to right click in the Processing -> History menu in order to add the test in the yaml file, this error appears:

AttributeError: 'NoneType' object has no attribute 'ReadAsArray'
Traceback (most recent call last):
File "/home/matteo/lavori/QGIS/build-qgis3/output/python/plugins/processing/gui/HistoryDialog.py", line 129, in createTest
TestTools.createTest(item.entry.text)
File "/home/matteo/lavori/QGIS/build-qgis3/output/python/plugins/processing/gui/TestTools.py", line 256, in createTest
dataArray = nan_to_num(dataset.ReadAsArray(0))
AttributeError: 'NoneType' object has no attribute 'ReadAsArray'

Associated revisions

Revision 60a87e94
Added by Nyall Dawson over 6 years ago

[processing] Fix error when creating tests and raster output
no longer exists

Fixes #16123

History

#1 Updated by Giovanni Manghi over 7 years ago

  • Affected QGIS version changed from master to 2.18.4
  • Target version set to Version 2.18

On 2.18.4 the error is different (in both cases also Windows is affected)

Traceback (most recent call last):
File "/usr/share/qgis/python/plugins/processing/gui/HistoryDialog.py", line 129, in createTest
TestTools.createTest(item.entry.text)
File "/usr/share/qgis/python/plugins/processing/gui/TestTools.py", line 234, in createTest
dataset = gdal.Open(token, GA_ReadOnly)
File "/usr/lib/python2.7/dist-packages/osgeo/gdal.py", line 2939, in Open
return _gdal.Open(*args)
RuntimeError: not a string

#2 Updated by Giovanni Manghi over 7 years ago

  • Priority changed from High to Normal

#3 Updated by Giovanni Manghi over 7 years ago

  • Regression? set to No
  • Easy fix? set to No

#4 Updated by Nyall Dawson over 6 years ago

  • % Done changed from 0 to 100
  • Status changed from Open to Closed

Also available in: Atom PDF