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

fix install error on not locale environment (docker, etc...) #34

Merged

Conversation

hhatto
Copy link
Contributor

@hhatto hhatto commented Jun 27, 2018

Hi,

I get following error from pip (via PyPI):

(docker_venv) admin@aa534d2fb0b8:~/link$ pip install --upgrade pytest-codestyle
Collecting pytest-codestyle
  Using cached https://files.pythonhosted.org/packages/ba/a7/f4914994805e3860a09456ed6105f9c99c292ef5183c022a2b48cb8004d8/pytest-codestyle-1.2.2.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-install-wqh2o31i/pytest-codestyle/setup.py", line 6, in <module>
        long_description = open('README.md').read()
      File "/usr/local/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 0xe2 in position 516: ordinal not in range(128)

    ----------------------------------------

my environment is Ubuntu on docker, Python is version 3.5.2.

>>> import locale
>>> locale.getpreferredencoding()
'ANSI_X3.4-1968'

Probably because README.md contains utf8 characters.

Thanks

Copy link
Owner

@henry0312 henry0312 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jjardon
Copy link

jjardon commented Aug 28, 2018

@henry0312 would it be possible to do a new release with this fix?

@henry0312
Copy link
Owner

henry0312 commented Aug 29, 2018

Sure, please wait for a moment.

@henry0312
Copy link
Owner

I just released v1.2.3.

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

Successfully merging this pull request may close these issues.

3 participants