jamespacileo / django-pure-pagination

Django pagination based upon the core pagination module
BSD 3-Clause "New" or "Revised" License
703 stars 171 forks source link

install error #40

Open fzhukov opened 8 years ago

fzhukov commented 8 years ago

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!

Burakhan commented 8 years ago

I'm having the same problem

wyzewyz commented 7 years ago

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!

elsagong commented 6 years ago

@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

marryjianjian commented 5 years ago

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.

Annihilater commented 5 years ago

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.

scrummie02 commented 4 years ago

I have the error now How is it installed from source

ken90242 commented 4 years ago
  1. git clone https://github.com/jamespacileo/django-pure-pagination.git

  2. cd django-pure-pagination

  3. vim setup.py

    Modify setup.py as what @marryjianjian suggested

  4. python setup.py install