johnpholden / qgis3redistricter

Redistricting for QGIS v3
GNU General Public License v3.0
5 stars 2 forks source link

Python error launching plugin #12

Closed canredist closed 2 years ago

canredist commented 2 years ago

After installing the plugin in QGIs and creaing a new redistricting plan, I click on OK and get the following error; the plugin launches but does not proceed and will not work:

TypeError: int() argument must be a string, a bytes-like object or a number, not 'QVariant' Traceback (most recent call last): File "C:\Users/bjwig/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis3redistricter-master\StattoRedistrict.py", line 2282, in updatePanelAndSaveParameters self.saveParameters() File "C:\Users/bjwig/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgis3redistricter-master\StattoRedistrict.py", line 1307, in saveParameters self.totalpop = self.totalpop + int(feature[self.popfield])

canredist commented 2 years ago

Resolved. Population Data is not a number in one field.