Certain addresses cause the geocodio-library-python library (v0.7.0) to throw an IndexError exception. See attached simplified example.
I have used the library for years with no issues. About once a month I geocode a batch of about 14000 addresses (breaking them into <10000 address chunks). Several months to a year ago it stopped working. It seemed to want a newer version of Python, so I upgraded to 3.11.15. Once I upgraded certain data sets caused IndexError exceptions when geocoding (in client.py:geocode).
The addresses may be bad, but (1) they used to work, (2) there has to be a better way to report bad addresses, and (3) I know of no way to programmatically determine which addresses the library doesn't like. It simply throws IndexError on the entire batch (and charges me for the geocoding).
Things I've tried:
- Upgrading from version 0.7.0 to 1.0.0 of the library
- Filtering out addresses the library doesn't like, but it's time consuming (and rings up a big geocoding bill) to isolate all the addresses and I could not feasibly find them all.
GeocodioApiIndexError.py

Certain addresses cause the geocodio-library-python library (v0.7.0) to throw an IndexError exception. See attached simplified example.
I have used the library for years with no issues. About once a month I geocode a batch of about 14000 addresses (breaking them into <10000 address chunks). Several months to a year ago it stopped working. It seemed to want a newer version of Python, so I upgraded to 3.11.15. Once I upgraded certain data sets caused IndexError exceptions when geocoding (in client.py:geocode).
The addresses may be bad, but (1) they used to work, (2) there has to be a better way to report bad addresses, and (3) I know of no way to programmatically determine which addresses the library doesn't like. It simply throws IndexError on the entire batch (and charges me for the geocoding).
Things I've tried:
GeocodioApiIndexError.py