nextgis / quickmapservices

QGIS plugin to find and add map services to a project in one click
http://plugins.qgis.org/plugins/quick_map_services/
GNU General Public License v2.0
170 stars 49 forks source link

AttributeError: 'NoneType' object has no attribute 'nodeType' #146

Closed arthuragone closed 3 years ago

arthuragone commented 7 years ago

Hello, When trying to use the plugin I always got this error:

File "/Users/arthur/.qgis2/python/plugins/quick_map_services/quick_map_services.py", line 172, in insert_layer add_layer_to_map(ds) File "/Users/arthur/.qgis2/python/plugins/quick_map_services/qgis_map_helpers.py", line 142, in add_layer_to_map if selected_node.nodeType() == selected_node.NodeGroup: AttributeError: 'NoneType' object has no attribute 'nodeType'

simgislab commented 7 years ago

please provide the following: version of QGIS version of QMS type and version of OS

what exactly are you doing before getting this error

arthuragone commented 7 years ago

QGIS 2.18.13 QuickMap Services 0.19.3

OS: OsX

Doing nothing before getting this error, just trying to add any web raster (BING, Google, OSM, etc.)

JCCabreraMX commented 6 years ago

I have the same issue in QGIS 3.2.3, QMS 0.19.10.1 and OS Linux Ubuntu 18.04

arthuragone commented 5 years ago

I completely changed environnement but got again this bug:

  File "C:/Users/AVIGNACQ/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\quick_map_services\quick_map_services.py", line 176, in insert_layer
              add_layer_to_map(ds)
              File "C:/Users/AVIGNACQ/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\quick_map_services\qgis_map_helpers.py", line 148, in add_layer_to_map
              if selected_node.nodeType() == selected_node.NodeGroup:
             AttributeError: 'NoneType' object has no attribute 'nodeType'

Windows 10 PRO 64 bits QGIS 3.4.2

1riggs commented 5 years ago

I have also run into this issue.

QGIS 3.8.2-Zanzibar QMS 0.19.10.1 OS Linux Ubuntu 18.04.3

Were any of the other reporters able to solve this?

1riggs commented 5 years ago

I was able to use the plugin after rebooting then running sudo apt update && sudo apt -y upgrade

514ckw4r3 commented 3 years ago

Fixed in 0.19.19