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

Python3: README.rst should be openned as utf-8. #35

Closed
wants to merge 1 commit into from
Closed

Python3: README.rst should be openned as utf-8. #35

wants to merge 1 commit into from

Conversation

isimluk
Copy link

@isimluk isimluk commented Sep 15, 2014

Addressing:
$ /usr/bin/python3 setup.py install
Traceback (most recent call last):
File "setup.py", line 7, in
readme = open('README.rst').read()
File "/usr/lib64/python3.3/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position
8545: ordinal not in range(128)

Addressing:
$ /usr/bin/python3 setup.py install
Traceback (most recent call last):
  File "setup.py", line 7, in <module>
    readme = open('README.rst').read()
  File "/usr/lib64/python3.3/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position
8545: ordinal not in range(128)
@dbrgn dbrgn closed this in 189554d Sep 15, 2014
@dbrgn
Copy link
Collaborator

dbrgn commented Sep 15, 2014

Thanks for the fix. This only works on py33 and py34 though, as in Python 2 there's no encoding kwarg.

I fixed it by using the io import. Thanks for bringing up this issue though. I added you to CONTRIBUTORS.rst.

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

Successfully merging this pull request may close these issues.

None yet

2 participants