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

HISTORY.rst causes problem with pip install on python 3.6 #49

Open
da4089 opened this issue Dec 11, 2018 · 0 comments
Open

HISTORY.rst causes problem with pip install on python 3.6 #49

da4089 opened this issue Dec 11, 2018 · 0 comments

Comments

@da4089
Copy link

da4089 commented Dec 11, 2018

Using a 3.6 virtualenv, pip install breaks when installing complexity-0.9.1.

The error occurs when reading the HISTORY.rst file, with the first character of the tree diagram in the release notes for 0.4: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 2378: ordinal not in range(128)

This seems to be because the content of HISTORY.rst is UTF8, but a non-binary mode open is expecting ASCII, and so the codec errors out.

I was able to "fix" this by hacking setup.py to read HISTORY.rst in binary mode, and decode the resulting buffer as UTF8. I think that'd work for 2.7 also, although I didn't try it.

See also issue #4, which appears to report a related problem with Python 2.7.

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

1 participant