question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

unicode char in README.rst breaks installation with Python 3 and C locale

See original GitHub issue

When 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:

https://github.com/crsmithdev/arrow/issues/208

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
annp89commented, Dec 4, 2017

Will this be added to a minor version release?

1reaction
norpolcommented, Dec 4, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >
buildozer - PyPI
Generic Python packager for Android / iOS and Desktop.
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found