Python Forum
UnicodeDecodeError while installing polyglot
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
UnicodeDecodeError while installing polyglot
#2
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:

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
Reply


Messages In This Thread
RE: UnicodeDecodeError while installing polyglot - by sparkz_alot - Feb-10-2017, 12:02 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  UnicodeDecodeError: garikhgh0 18 30,358 Jun-04-2018, 08:41 PM
Last Post: volcano63

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020