Skip to content

TypeError: QgsVectorLayer.selectByRect(): argument 2 has unexpected type 'bool'  #6

@ar-siddiqui

Description

@ar-siddiqui

Getting the following error while selecting multiple layers.

An error has occurred while executing Python code:

TypeError: QgsVectorLayer.selectByRect(): argument 2 has unexpected type 'bool' 
Traceback (most recent call last):
  File "C:\Users/asiddiqui/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\MultipleLayerSelection\MultiLayerRectangleSelection.py", line 43, in canvasReleaseEvent
    layer.selectByRect(lRect, False)
TypeError: QgsVectorLayer.selectByRect(): argument 2 has unexpected type 'bool'


Python version: 3.9.5 (tags/v3.9.5:0a7dcbd, May  3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] 
QGIS version: 3.26.2-Buenos Aires Buenos Aires, feec3d3b12f 

Python Path:
C:\Users/asiddiqui/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\curve_number_generator
C:\Users/asiddiqui/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\curve_number_generator\processing\algorithms\conus_nlcd_ssurgo
C:/OSGeo4W/apps/qgis/./python
C:/Users/asiddiqui/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/asiddiqui/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
C:/OSGeo4W/apps/qgis/./python/plugins
C:\OSGeo4W\bin\python39.zip
C:\OSGeo4W\apps\Python39\DLLs
C:\OSGeo4W\apps\Python39\lib
C:\OSGeo4W\bin
C:\Users\asiddiqui\AppData\Roaming\Python\Python39\site-packages
C:\OSGeo4W\apps\Python39
C:\OSGeo4W\apps\Python39\lib\site-packages
C:\OSGeo4W\apps\Python39\lib\site-packages\win32
C:\OSGeo4W\apps\Python39\lib\site-packages\win32\lib
C:\OSGeo4W\apps\Python39\lib\site-packages\Pythonwin
C:/Users/asiddiqui/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:\Users/asiddiqui/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\curve_number_generator\processing
C:\Users/asiddiqui/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\curve_number_generator\processing\algorithms\custom
C:\Users\asiddiqui\AppData\Roaming\Python\Python39\site-packages\IPython\extensions
C:\Users\asiddiqui\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\mmqgis/forms

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions