Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup.py doesn't work <python 3.6 as readme has unicode characters #16

Closed
Ultimation opened this issue Aug 30, 2019 · 2 comments
Closed

Comments

@Ultimation
Copy link

BUILDSTDERR: Traceback (most recent call last):
BUILDSTDERR:   File "setup.py", line 13, in <module>
BUILDSTDERR:     readme = open('README.rst').read()
BUILDSTDERR:   File "/usr/lib64/python3.4/encodings/ascii.py", line 26, in decode
BUILDSTDERR:     return codecs.ascii_decode(input, self.errors)[0]
BUILDSTDERR: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 89: ordinal not in range(128)
@dlangille
Copy link

My solution when building for Python 3.6:

rm README.rst
touch README.rst

@dlangille
Copy link

Suggestion via IRC: probably it is utf-8 and not ascii, you could try adding encoding="utf-8" to that open()

fitnr added a commit that referenced this issue Oct 26, 2019
Replaces non-ascii characters with HTML entities.
Fixes #16
@fitnr fitnr closed this as completed in 68e0299 Oct 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants