org-python icon indicating copy to clipboard operation
org-python copied to clipboard

UnicodeDecodeError while installing

Open Weizhang2017 opened this issue 4 years ago • 0 comments

ascii is the default decoding method for python <= 3.6. Need to set encoding = "utf-8" for open() To reproduce the error for python <= 3.6, run pip install org-python

        long_description=read('README.rst'),
      File "/private/var/folders/zy/6213gcyn4618n9tp1__8bd140000gp/T/pip-install-wbjeeyn8/org-python/setup.py", line 18, in read
        return open(os.path.join(os.path.dirname(__file__), fname)).read()
      File "/Library/Frameworks/Python.framework/Versions/3.6/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 918: ordinal not in range(128)

Weizhang2017 avatar Jan 06 '21 10:01 Weizhang2017