install error
fzhukov opened this issue · 7 comments
Hi! I get this error when install from pip
$ pip install django-pure-pagination
Collecting django-pure-pagination
Using cached django-pure-pagination-0.3.0.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-a9onyo91/django-pure-pagination/setup.py", line 5, in
README = readme.read()
File "/home/django/.pyenv/versions/3.5.2/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 672: ordinal not in range(128)
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-a9onyo91/django-pure-pagination/
Can you assist?
Thanks in advance!
I'm having the same problem
I encountered this on a Docker container where for some reason LANG
was empty. One workaround is to invoke pip
with LANG=en_US.UTF-8
-- i.e.
LANG=en_US.UTF-8 pip install django-pure-pagination
No source change necessary!
@fzhukov Hi, I got the same error, could you please tell me how you solve this problem? we are deploying the project, thank you so much for any help. thank you
I had the same problem on a Ubuntu16.04 Docker container and I don't know why yet. But I solved the problem by installing from source files with modified setup.py two lines.
with open(os.path.join(os.path.dirname(__file__), 'README.rst'), 'rb') as readme:
long_description=README.decode()
Hope to be helpful.
I had the same problem on a Ubuntu16.04 Docker container and I don't know why yet. But I solved the problem by installing from source files with modified setup.py two lines.
with open(os.path.join(os.path.dirname(__file__), 'README.rst'), 'rb') as readme:
long_description=README.decode()
Hope to be helpful.
Thank you very much! It's worked.
I have the error now
How is it installed from source
git clone https://github.com/jamespacileo/django-pure-pagination.git
cd django-pure-pagination
vim setup.py
Modify setup.py as what @marryjianjian suggested
python setup.py install