Skip to content
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

Unicode error prevents installing in python3 using non-UTF locale #26

Open
ahvigil opened this issue Jun 16, 2017 · 0 comments
Open

Unicode error prevents installing in python3 using non-UTF locale #26

ahvigil opened this issue Jun 16, 2017 · 0 comments

Comments

@ahvigil
Copy link

ahvigil commented Jun 16, 2017

Trying to install on a linux system without a configured unicode locale in python3 gives an error:

# pip3 install json2html
Collecting json2html
  Downloading json2html-1.1.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-nm_jwbmx/json2html/setup.py", line 17, in <module>
        long_description=open('README.rst').read(),
      File "/usr/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 0xc3 in position 6233: ordinal not in range(128)

A workaround is to actually set an appropriate locale, but this is not always possible or convenient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant