Skip to content
This repository has been archived by the owner on Aug 26, 2021. It is now read-only.

UnicodeDecodeError while installing on Ubuntu Linux #30

Open
lym opened this issue May 6, 2016 · 4 comments
Open

UnicodeDecodeError while installing on Ubuntu Linux #30

lym opened this issue May 6, 2016 · 4 comments

Comments

@lym
Copy link

lym commented May 6, 2016

I have django-postgrespool as a dependency in my Django application. When I try to install it via pip, I get hit with this error:

Downloading from URL https://pypi.python.org/packages/8e/cd/0e9b7c297a84caf6334d1d
bd9da35af50d533f1230b96bc21223d5addc1e/django-postgrespool-0.3.0.tar.gz#md5=39042504
28523e76f057113d07405498 (from https://pypi.python.org/simple/django-postgrespool/)
Running setup.py (path:/tmp/pip_build_gitlab-runner/django-postgrespool/setup.py) 
egg_info for package django-postgrespool
Traceback (most recent call last):
  File "<string>", line 17, in <module>
  File "/tmp/pip_build_gitlab-runner/django-postgrespool/setup.py", line 26, in <module>
    long_description=open('README.rst').read(),
  File "/usr/lib/python3.4/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 1200: ordinal not in     range(128)
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "<string>", line 17, in <module>

File "/tmp/pip_build_gitlab-runner/django-postgrespool/setup.py", line 26, in <module>

long_description=open('README.rst').read(),

File "/usr/lib/python3.4/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 1200: ordinal not in range(128)

I am installing on an Ubuntu 14.04.4 LTS (GNU/Linux 3.13.0-76-generic x86_64) machine with python3

@icyc9
Copy link

icyc9 commented Dec 28, 2016

Receiving this error too. @lym Have you discovered the cause?

@dravnjak
Copy link

dravnjak commented Jan 5, 2018

I have resolved by setting export LC_ALL=en_US.UTF-8 and than install django-postgrespool.
For me issue was on export LC_ALL=C and forcing default language.

@jandebleser
Copy link

This fixed it for me: https://stackoverflow.com/a/50639442/1876203

sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
    locale-gen
export LANG=en_US.UTF-8  
export LANGUAGE=en_US:en  
export LC_ALL=en_US.UTF-8```

@jaraco
Copy link

jaraco commented Aug 22, 2018

The bug exists in the setup.py / README.rst.

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

No branches or pull requests

5 participants