EverythingMe / geodis

A redis based geo-resolving library
323 stars 41 forks source link

I found an error when importing data. How should I do? #9

Closed julian-wang closed 9 years ago

julian-wang commented 9 years ago

File "/usr/local/lib/python2.7/dist-packages/geodis-2.0.3-py2.7.egg/geodis/city.py", line 57, in init self.country = countries.get( kwargs.get('country', None), kwargs.get('country', '')).strip() AttributeError: 'list' object has no attribute 'get' Could not import geonames database...

dvirsky commented 9 years ago

Hi Julian. What exactly did you run?

dvirsky commented 9 years ago

Ok, found it and fixed it. If you pip install geodis>=2.0.5 it works fine. Thanks!

julian-wang commented 9 years ago

Thanks for your reply. I have solved this problem.

dvirsky commented 9 years ago

@julian-wang there were a bunch of bugs on 2.0.3 resulting from a bad PR merged. just update to the latest and it's all fine. we've also added travis integration to make sure this doesn't happen again.