ushahidi / geograpy

Extract countries, regions and cities from a URL or text
219 stars 133 forks source link

Enable installation for python3 #22

Closed PandaWhoCodes closed 6 years ago

PandaWhoCodes commented 6 years ago

.

octohedron commented 6 years ago

@PandaWhoCodes There's some problems that need to be fixed, in places.py

    with open(cur_dir + "/data/GeoLite2-City-Locations.csv", "rt") as info:
        ...

You should add the encoding="utf-8" that's new to Python 3, there's 2 occurrences

    with open(cur_dir + "/data/GeoLite2-City-Locations.csv", "rt", encoding="utf-8") as info:

Besides that, you should fork this to a new repo, as you can see this repository hasn't been maintained in several years.

PandaWhoCodes commented 6 years ago

I think i have deleted my repository The fork from https://github.com/jaymzcd works just fine. Try that out. Ill just close this PR