Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not import zipcodes data #17

Open
u1604342 opened this issue Oct 17, 2018 · 0 comments
Open

Could not import zipcodes data #17

u1604342 opened this issue Oct 17, 2018 · 0 comments

Comments

@u1604342
Copy link

I am trying to import the zipcodes data into the redis instance as specified on the ReadMe.
Using the command ./geodis -z -f data/zipcodes.csv -p 6369. All imports failed with a similar error to the one listed below. I have had no problem importing the cities.json file however.
KeyError: 'alaska'
2018-10-17 19:13:01,291 ERROR in zipcodes.runImport (zipcodes.py:129): Could not import line #43191: Ketchikan, {'lat': 61.385, 'code': 'AK', 'lon': -152.2683, 'name': 'Alaska'}: 'alaska'
Traceback (most recent call last):
File "/home/u1604342/.local/lib/python2.7/site-packages/geodis/provider/zipcodes.py", line 108, in runImport
stateId = features[stateName.lower()]['id']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant