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

UnicodeDecodeError when installed as dependency of Zappa #127

Open
topiaruss opened this issue Oct 2, 2017 · 3 comments
Open

UnicodeDecodeError when installed as dependency of Zappa #127

topiaruss opened this issue Oct 2, 2017 · 3 comments

Comments

@topiaruss
Copy link

$ pipenv install zappa
Installing zappa…
Collecting zappa
  Using cached zappa-0.44.3-py3-none-any.whl
Collecting kappa==0.6.0 (from zappa)
  Using cached kappa-0.6.0.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/0c/z4hp1gt53q7bkw2fjn7q9jkh0000gn/T/pip-build-cwsiey6i/kappa/setup.py", line 54, in <module>
        run_setup()
      File "/private/var/folders/0c/z4hp1gt53q7bkw2fjn7q9jkh0000gn/T/pip-build-cwsiey6i/kappa/setup.py", line 22, in run_setup
        long_description=open_file('README.rst').read(),
      File "/Users/russ/.local/share/virtualenvs/sirzappa-mr8M_sM7/bin/../lib/python3.6/encodings/ascii.py", line 26, in decode
        return codecs.ascii_decode(input, self.errors)[0]
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 2339: ordinal not in range(128)

The fix is simply to decode the rst as utf-8.
PR to follow.

@topiaruss topiaruss changed the title UnicodeDecodeError when installed as dep of Zappa UnicodeDecodeError when installed as dependency of Zappa Oct 2, 2017
@monkut
Copy link

monkut commented Oct 30, 2017

Hit the same issue when trying to install on ubuntu 16.04.

Note, this problem does not seem to occur on my macos machine.
Currently, working around this by downloading the kappa package tar.gz file from pypi editing the setup.py file and installing manually via, python setup.py install

@DavidM42
Copy link

what fixed it for me was to set my system locale to utf-8.
explained here. The authors should probably support non utf-8 ready enviromnments but this should fix it in the short term

@topiaruss
Copy link
Author

Yes. I think @DavidM42 is right, and my locale was not set as it should have been.

However, either with codecs or with io.open, I'd have thought this could have been merged by now. You can find numerous examples of the same technique.

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

3 participants