-
Notifications
You must be signed in to change notification settings - Fork 132
UnicodeDecodeError: 'charmap' codec can't decode... #29
Comments
Same issue. |
in line 25 of places.py file: instead of put this |
Will this issue be fixed in an upcoming release? |
Unfortunately that fix still doesn't work for me @sergeiGKS |
@VanessaVanG @sergeiGKS |
I am still getting this even trying both fixes. I know it is because Excel file contains quite a few odd characters, but the encoding does not seem to work. I can remove Char by char to change the error position, but do not know how to get it all. Python 3.7 on Windows 10
|
After some investigation, this is a Windows vs Linux error in some cases. Even using the
|
Did @PandaWhoCodes
pip install git+https://github.com/reach2ashish/geograpy.git
plusnltk.downloader.download('maxent_ne_chunker')
nltk.downloader.download('words')
nltk.downloader.download('treebank')
nltk.downloader.download('maxent_treebank_pos_tagger')
nltk.downloader.download('punkt')
nltk.download('averaged_perceptron_tagger')
and it seemed to be going well until I tried the example
url = 'http://www.bbc.com/news/world-europe-26919928'
places = geograpy.get_place_context(url=url)
I get
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 274: character maps to <undefined>
Python 3.6 Windows
Any thoughts? (or alternatives? I need to pull out city names. I've used GeoText for the country names (not positive it's working right yet) but GeoText's cities doesn't work very well.)
The text was updated successfully, but these errors were encountered: