Closed moubctez closed 4 years ago
I bumped into the same problem. Below the way to reproduce the issue:
LANG
environment variable - as if it is set to something that handles UTF8 characters, then you will not be able to reproduce the issue:
unset LANG
python setup.py build
Result:
$ python -V
Python 3.6.9
$ unset LANG
$ python setup.py build
Traceback (most recent call last):
File "setup.py", line 11, in <module>
long_description = open("README.rst", "U").read()
File "/Users/xxx/.virtualenvs/parameterized/lib/python3.6/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 5997: ordinal not in range(128)
I am NOT able to reproduce that issue on Python:
Also the workaround for the issue is to set LANG
environment variable:
export LANG=en_US.UTF-8
export LANG=C.UTF-8
Fixed in 0.7.3!
Thanks @wolever, I just double checked on v0.7.3 and I am NOT able to reproduce the issue anymore! :) Thank you!
Building fails with Python 3.6 (
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 6553: ordinal not in range(128)
) because there are non-ASCII characters in README.rst.This patch fixes the problem