-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
in _get_lsb_release_info a lack of a judgment:'utf8' codec can't decode byte 0xd5 in position 24: invalid continuation byte #4917
Comments
Hi @lionor666! Your comment seems to be poorly formatted. I request you to read https://help.github.com/articles/getting-started-with-writing-and-formatting-on-github/ and improve the formatting of your comment by editing it in place, using the pencil icon in the corner. |
In case someone wants to look at the changes I've made to OP, it's pasted below.
Description:51_billappxz%pip list What I've run:pip list
in the pip/_vendor/distro.py file, the 922 line. There is no judgment of the result of the execution of the command -'lsb_release -a'. If the lsb_release is not installed on the host ,the return result value is 0xd5 . |
I encountered same error.
I think it is a because shell encoding is not 'utf-8' in my system ( https://github.com/pypa/pip/blob/master/src/pip/_vendor/distro.py#L924
So, I submitted a pull request. Could you review it ? Stdout and stderr of shell should be decoded with system encoding by doloopwhile · Pull Request #4932 · pypa/pip |
I sent a pull request to distro. |
Fixed UnicodeDecodeError on Linux which system encoding is not UTF-8.
This was likely fixed by #4932. |
Yep. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description:
None provided.
What I've run:
in the pip/_vendor/distro.py file, the 922 line. There is no judgment of the result of the execution of the command -'lsb_release -a'. If the lsb_release is not installed on the host ,the return result value is 0xd5 .
Using utf8 coding for 0xd5, the error will be reported.
The text was updated successfully, but these errors were encountered: