Bug report #21552

Python error when trying to set the "region" from layer extent in Processing in a GRASS tool: "type object 'QgsMapLayerProxyModel' has no attribute 'MeshLayer'"

Added by Giovanni Manghi about 5 years ago. Updated about 5 years ago.

Status:Closed
Priority:High
Assignee:-
Category:Processing/Core
Affected QGIS version:3.4.5 Regression?:Yes
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:invalid
Crashes QGIS or corrupts data:No Copied to github as #:29368

Description

This make impossible to use tool where the GRASS regoin must be set to be the same to the input layer (i.e. r.flow)

Traceback (most recent call last):
File "C:/OSGEO4~1/apps/qgis-ltr/./python/plugins\processing\gui\ExtentSelectionPanel.py", line 167, in useLayerExtent
dlg = LayerSelectionDialog(self)
File "C:/OSGEO4~1/apps/qgis-ltr/./python/plugins\processing\gui\ExtentSelectionPanel.py", line 72, in init
QgsMapLayerProxyModel.HasGeometry | QgsMapLayerProxyModel.RasterLayer | QgsMapLayerProxyModel.MeshLayer)
AttributeError: type object 'QgsMapLayerProxyModel' has no attribute 'MeshLayer'

History

#1 Updated by Nyall Dawson about 5 years ago

  • Status changed from Open to Closed

Already fixed for 3.4.6

#2 Updated by Giovanni Manghi about 5 years ago

  • Resolution set to invalid

Nyall Dawson wrote:

Already fixed for 3.4.6

sorry, I probably have missed the PR about it.

Also available in: Atom PDF