HenrikSpa / GroupStats

GroupStats plugin for QGIS 3. Originally written by Rajmund Szostok.
7 stars 4 forks source link

Blank dialogue and AttributeError: 'GroupStatsDialog' object has no attribute 'tm5' #13

Closed mwtoews closed 1 year ago

mwtoews commented 1 year ago

I'm new to the plug-in, so I can't comment on normal behavior. The dialog is mostly blank, except for working Layers, Fields and filter on the right, but other dialogs are blank and do not respond to selections (clicks) on field names.

Choosing "Features" > "Show selected on map" raises an error with the following trace information:

An error has occurred while executing Python code: 

AttributeError: 'GroupStatsDialog' object has no attribute 'tm5' 
Traceback (most recent call last):
  File "C:\Users/mtoews/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\GroupStats\GroupStatsDialog.py", line 540, in showOnMap
    self.tm5.layer.selectByIds(idList)                                           #   selecting them on the map
AttributeError: 'GroupStatsDialog' object has no attribute 'tm5'

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.30.0-'s-Hertogenbosch 's-Hertogenbosch, f186b8efe0 

Python Path:
C:\Users/mtoews/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\geo_sim_processing
C:/OSGeo4W/apps/qgis/./python
C:/Users/mtoews/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/mtoews/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
C:/OSGeo4W/apps/qgis/./python/plugins
C:\OSGeo4W\apps\grass\grass82\etc\python
C:\Users\mtoews\Documents
C:\OSGeo4W\bin\python39.zip
C:\OSGeo4W\apps\Python39\DLLs
C:\OSGeo4W\apps\Python39\lib
C:\OSGeo4W\bin
C:\Users\mtoews\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/mtoews/AppData/Roaming/QGIS/QGIS3\profiles\default/python
mwtoews commented 1 year ago

Follow-up. Apologies, I've figured out the usability side-of-things. I'm able to get basic functionality working by dragging the appropriate field into the Rows/Columns/Values. And the "Show on map" now works. I suppose the only fix is to show a better error message if nothing is selected rather than an obscure stack trace?