sparql-client icon indicating copy to clipboard operation
sparql-client copied to clipboard

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 922: ordinal not in range(128)

Open ckosten opened this issue 5 years ago • 0 comments

I kept getting the following error when trying to pip install this package.

Traceback (most recent call last): File "<string>", line 1, in <module> File "/private/var/folders/fs/j80hs_f913l5w4447q50b1lh0000gn/T/pip-req-build-88_26oi8/setup.py", line 14, in <module> long_description=open('README.rst').read() + "\n\n" + \ File "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 922: ordinal not in range(128) I added the encoding argument to the setup.py file, and then I was able to install, maybe this could be helpful for others too.

long_description=open('README.rst', encoding="utf-8").read() + "\n\n" +
open(os.path.join('docs', 'HISTORY.txt')).read(),

ckosten avatar Aug 18 '20 08:08 ckosten