Closed jennib3 closed 6 years ago
Thanks for pointing out! I'm not quite sure what would make pip believe it's ASCII only (which it is not), anyways - would you mind creating a PR? The dash in the Readme is not the "normal" dash/minus but the semantically correct longer dash. I would not mind removing it, so again, a PR would be appreciated.
I believe it's Raspbian having some strange default of the LANG
environment variable... Would you mind telling me the output of echo $LANG
and echo $LC_ALL
(latter might be empty)?
I never had any problems like this on Linux Mint, currently using pip 10.0.0, and I also had Emojis and probably umlauts in other READMEs.
Also if it's caused by the setup script trying to open and read the README.md, a much better fix would be not only catching FileNotFound, but also UnicodeDecodeError, as the long description is required for PyPI only anyways.
Here are the outputs:
~ $ echo $LANG
en_US.UTF-8
~ $ echo $LC_ALL
C
Ok, thanks. Still not sure why pip behaves like this on Raspbian. The most straightforward and bulletproof solution would be extending:
to:
except (FileNotFoundError, UnicodeDecodeError):
If you can provide a PR, great, if not, I can fix it sometimes at the weekend.
Fixed by https://github.com/linusg/xbox360controller/pull/8, releases on PyPI and GitHub are done.
Raspbian image with pip3 version 10.0.1 reports error when installing xbox360controller:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 4365: ordinal not in range(128)
I removed what appeared to be non ascii characters on line 126 of the README.md file and the install was successful.
In the line:
Linus Groh (@linusg) – mail@linusgroh.de
the–
appears to be the culprit.