You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling python3.5 setup.py using sh.py, the setup can fail because the spawned process doesn't correctly set the locale to use UTF-8.
In the case of plyer, a changelog is read during setup that contains non-ascii symbols. Without correct locale, the python interpreter will try to decode the file upon open('changelog.md') using ascii codec and raise an exception.
Setting the LANG enviroment variable to system locale solves the issue.
I don't see a problem with doing this, but I'll leave it a little while in case anyone raises any issues as I've seen this kind of encoding setting have unexpected side effects before.
When calling
python3.5 setup.py
using sh.py, the setup can fail because the spawned process doesn't correctly set the locale to use UTF-8.In the case of plyer, a changelog is read during setup that contains non-ascii symbols. Without correct locale, the python interpreter will try to decode the file upon
open('changelog.md')
using ascii codec and raise an exception.Setting the
LANG
enviroment variable to system locale solves the issue.Maybe this environment variable should be set by default by
PythonRecipe
?Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: