johnpholden / qgis3redistricter

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

Plugin won't read "int" type #1

Closed Pnoddy1 closed 4 years ago

Pnoddy1 commented 4 years ago

I am trying to make a map using a shapefile and population data in an XLSX file. The first time I used the plugin using this data set worked fine, but I have now been receiving this error after restarting QGIS.

Here is the issue I am having:

  1. Load shapefile
  2. Load XLSX with population field
  3. Join shapefile and XLSX
  4. Load plugin
  5. Make plan and select appropriate fields
  6. "TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'"

QGIS reads the population field as an "int" type. The district and data fields are "QString" types. Is this an issue with the plugin or the data set?

johnpholden commented 4 years ago

My initial guess is this is a data error as it's being read as a NoneType. Do you have an exact copy of the error message, including the code line where the plugin fails?

Cheers John

On Fri, Apr 3, 2020 at 2:29 PM Pnoddy1 notifications@github.com wrote:

I am trying to make a map using a shapefile and population data in an XLSX file. The first time I used the plugin using this data set worked fine, but I have now been receiving this error after restarting QGIS.

Here is the issue I am having:

  1. Load shapefile
  2. Load XLSX with population field
  3. Join shapefile and XLSX
  4. Load plugin
  5. Make plan and select appropriate fields
  6. "TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'"

QGIS reads the population field as an "int" type. The district and data fields are "QString" types. Is this an issue with the plugin or the data set?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/johnpholden/qgis3redistricter/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALEYIAVMKVPXWRGW2R6ORVTRKZIKTANCNFSM4L4OQW4Q .

Pnoddy1 commented 4 years ago

I added a new field for the district and it seems to work now. If I get the issue again, I will post a screenshot.

johnpholden commented 4 years ago

Cheers. Hope you don't have any further issues!

On Fri, Apr 3, 2020 at 3:04 PM Pnoddy1 notifications@github.com wrote:

I added a new field for the district and it seems to work now. If I get the issue again, I will post a screenshot.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/johnpholden/qgis3redistricter/issues/1#issuecomment-608708477, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALEYIAT246QY2FJH6RTMFH3RKZMO5ANCNFSM4L4OQW4Q .