MycroftAI / adapt

Adapt Intent Parser
Apache License 2.0
710 stars 154 forks source link

Making the python installer work in a Windows environment. #158

Closed mpeddicord closed 1 week ago

mpeddicord commented 1 year ago

If an encoding type is not specified, it'll try to use the system default. In the case of Windows, that's cp1252. When the installer tries to run with that encoding. It spews this decode error:

File "C:\Users\Michael\PythonEnvironments\Adapt\src\adapt-parser\setup.py", line 22, in <module> long_description = fh.read() File "C:\Python310\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 0x9d in position 2157: character maps to <undefined>

This just makes the installer work on Windows.