unicode char in README.rst breaks installation with Python 3 and C locale
See original GitHub issueWhen installing ciso8601 as a package dependency, using Python 3 and C locale:
Searching for ciso8601
Reading https://pypi.python.org/simple/ciso8601/
Downloading https://pypi.python.org/packages/06/2e/2d7b09bb667bd7d862838c1ab7d0dd06be1de27ff60a7c1b0fb0db53fc93/ciso8601-1.0.5.tar.gz#md5=831bbf799722d34a5e60d91e1fd63cd6
Best match: ciso8601 1.0.5
Processing ciso8601-1.0.5.tar.gz
Writing /tmp/easy_install-b_gqrezf/ciso8601-1.0.5/setup.cfg
Running ciso8601-1.0.5/setup.py -q bdist_egg --dist-dir /tmp/easy_install-b_gqrezf/ciso8601-1.0.5/egg-dist-tmp-e66bnce5
Traceback (most recent call last):
File "/var/lib/arvados/test/VENV3DIR/lib/python3.5/site-packages/setuptools/sandbox.py", line 158, in save_modules
yield saved
File "/var/lib/arvados/test/VENV3DIR/lib/python3.5/site-packages/setuptools/sandbox.py", line 199, in setup_context
yield
File "/var/lib/arvados/test/VENV3DIR/lib/python3.5/site-packages/setuptools/sandbox.py", line 254, in run_setup
_execfile(setup_script, ns)
File "/var/lib/arvados/test/VENV3DIR/lib/python3.5/site-packages/setuptools/sandbox.py", line 49, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-b_gqrezf/ciso8601-1.0.5/setup.py", line 4, in <module>
# SPDX-License-Identifier: Apache-2.0
File "/var/lib/arvados/test/VENV3DIR/lib/python3.5/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 1561: ordinal not in range(128)
This is caused by non-ASCII character “µs” in README.rst
With some googling I found a discussion about this same problem relating to a different package:
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Issue 19846: Python 3 raises Unicode errors with the C locale
msg204849 ‑ (view) Author: (Sworddragon) Date: 2013‑11‑30 21:40
msg204850 ‑ (view) Author: R. David Murray (r.david.murray) * Date: 2013‑11‑30 21:53
msg204852 ‑ (view) Author: STINNER...
Read more >python 3.x - Python3 issue with unicode - Stack Overflow
I found a fix amending the locale to match .UTF-8 as described in here: export LC_ALL="en_US.UTF-8" export LC_CTYPE="en_US.
Read more >Supported hooks - pre-commit
reorder-python-imports - This hook reorders imports in python files. ... Checks which PHPUnit executable is available first and then runs it.
Read more >IBM Open Enterprise Python for z/OS, V3.8: User's Guide
Check your Python installation location with the following line: $ python3 -c "import sys; print(sys.executable)". "Hello world!" script.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Will this be added to a minor version release?
Thanks for bumping @annp89, in addition, I’ve just sent @anemitz an mail to the address mentioned in their profile page.
UPDATE: Got a response from anemitz, my mail got forwarded to a person that might deal with the PR eventually.