areski / django-nvd3

Django wrapper for nvd3 - It's time for beautiful charts
Other
416 stars 124 forks source link

Get UnicodeDecodeError when pip install django-nvd3 on ubuntu #76

Closed zoe-stockholm closed 8 years ago

zoe-stockholm commented 8 years ago

pip install works on my local but didn't work on ubuntu server no matter which version of django-nvd3. Django==1.8.2 python-nvd3==0.14.2 python 3.4

ps: It was working before (django-nvd3==0.8.2), today I just upgrade it and run pip unistall and pip install. Now I can't install django-nvd3 on any version.

Downloading django-nvd3-0.9.7.tar.gz Running setup.py (path:/home/ubuntu/.venv/[project_name]/build/django-nvd3/setup.py) egg_info for package django-nvd3 Traceback (most recent call last): File "", line 17, in File "/home/ubuntu/.venv/[project_name]/build/django-nvd3/setup.py", line 7, in readme = readme_file.read() File "/home/ubuntu/.venv/[project_name]/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 2070: ordinal not in range(128) Complete output from command python setup.py egg_info: Traceback (most recent call last):

File "", line 17, in

File "/home/ubuntu/.venv/[project_name]/build/django-nvd3/setup.py", line 7, in

readme = readme_file.read()

File "/home/ubuntu/.venv/[project_name]/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 2070: ordinal not in range(128)

lgp171188 commented 8 years ago

@zoe-stockholm This happens due to issues with locale. See http://stackoverflow.com/a/25575908 for knowing which locale-related environment variables to set.

zoe-stockholm commented 8 years ago

Thanks @lgp171188 ! It works for me like a charm!