garnaat / kappa

What precedes Lambda
http://kappa.readthedocs.org/en/develop/
Apache License 2.0
902 stars 89 forks source link

Add encoding for open_file #126

Open jxltom opened 6 years ago

jxltom commented 6 years ago

This is because open function will use system encoding which is got by locale.getpreferredencoding(False) according to python documentation. This may cause installation failure in non UTF-8 encoding systems.

At least, UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 2347: illegal multibyte sequence will be raised when setup in my system with encoding cp936.

wanshun123 commented 3 years ago

I'm still getting this error (ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.) when trying to install Kappa on Windows with pip install kappa