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

install error #40

Open
fzhukov opened this issue Aug 25, 2016 · 7 comments
Open

install error #40

fzhukov opened this issue Aug 25, 2016 · 7 comments

Comments

@fzhukov
Copy link

fzhukov commented Aug 25, 2016

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
Copy link

Burakhan commented Sep 3, 2016

I'm having the same problem

Burakhan added a commit to Burakhan/django-pure-pagination that referenced this issue Sep 4, 2016
error 
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 672: ordinal not in range(128)
@wyzewyz
Copy link

wyzewyz commented Jan 17, 2017

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
Copy link

@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
Copy link

marryjianjian commented Feb 27, 2019

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
Copy link

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
Copy link

I have the error now
How is it installed from source

@ken90242
Copy link

  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

  1. python setup.py install

ekinertac added a commit to ekinertac/django-pure-pagination that referenced this issue Jul 29, 2020
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

No branches or pull requests

8 participants