Feb-10-2017, 12:02 AM
A quick look at the documentation leads me to believe that this particular module is intended for Linux only and not for Windows. This entry:
seems to indicate polyglot relies on utf-8 (which Linux supports natively), while your version of Windows currently supports cp1252 (code page 1252), which is not utf-8.
You might (and I stress 'might') be able to solve the problem by upgrading to Python v 3.6.0 (the latest version). Again, this seems targeted for Linux, so even if the upgrade resolves this particular issue, there might be other problems do to differences in OS's.
There was this comment from the github site though:
Good luck
Quote: File "C:\Python34\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 4941:
character maps to <undefined>
seems to indicate polyglot relies on utf-8 (which Linux supports natively), while your version of Windows currently supports cp1252 (code page 1252), which is not utf-8.
You might (and I stress 'might') be able to solve the problem by upgrading to Python v 3.6.0 (the latest version). Again, this seems targeted for Linux, so even if the upgrade resolves this particular issue, there might be other problems do to differences in OS's.
There was this comment from the github site though:
Quote:valeriocos commented on Jul 31, 2015
Hi, I had some problems installing Polyglot on my Windows machine (I did not find any information for Windows distributions at http://polyglot.readthedocs.org/en/lates...ation.html).
I was able to make it run by downloading the following Windows Binaries from http://www.lfd.uci.edu/~gohlke/pythonlibs/
NumPy
PyICU
PyCLD2
and installing them through the command line
pip install <name_of_the_binary>.whl
Good luck
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition