-
Notifications
You must be signed in to change notification settings - Fork 54
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
'ascii' codec can't decode byte 0xc3 in position 361 at open('README.md').read(), #16
Comments
missing read().encode('utf-8') > convert to bytes :) |
same issues
|
This issue was fixed once before in PR #9 and then reverted in 02c2006 A work-around I found is to set the system locale to UTF-8. For example, when using Docker with the Ubuntu base image, the locale is not set by default and this error comes up when trying to install this module. Add these commands to the Dockerfile to work around this (found here): RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en Or, if not using Docker just run the commands at the shell (and look into how to set them permanently so they persist on reboot, e.g. Ubuntu Locale): root# locale-gen en_US.UTF-8
root# export LANG en_US.UTF-8
root# export LANGUAGE en_US:en |
I had the same error, changing line 7 in setup.py to |
Can I give a pull request with @grimlaufer's solution? I am also facing this issue. |
I just added a pull request with the solution from @grimlaufer, slightly adjusted to not break environments with python < 3.0 |
The encoding was being set for python 3 but it used the default system encoding on Python 2 which is not always utf-8 and so it may raise decoding error due to the unicode characters being used within the readme
The encoding was being set for python 3 but it used the default system encoding on Python 2 which is not always utf-8 and so it may raise decoding error due to the unicode characters being used within the readme
The encoding was being set for python 3 but it used the default system encoding on Python 2 which is not always utf-8 and so it may raise decoding error due to the unicode characters being used within the readme
Sorry i know this is old thread but if you are using Docker container assuming you are doing something like this
Make sure you add your ENV after the above
|
The text was updated successfully, but these errors were encountered: