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

UnicodeDecodeError long_description=open('README.rst').read(), #208

Closed
rubensgomes opened this issue Mar 21, 2015 · 2 comments
Closed

UnicodeDecodeError long_description=open('README.rst').read(), #208

rubensgomes opened this issue Mar 21, 2015 · 2 comments

Comments

@rubensgomes
Copy link

HI,

I am running into the following problem when installing arrow using pip in Python 3.4.3.

(venv) [wsgi@vps venv]$ python -V
Python 3.4.3
(venv) [wsgi@vps venv]$ pip -V
pip 6.0.8 from /home/wsgi/flaskapis/venv/lib/python3.4/site-packages (python 3.4)
(venv) [wsgi@vps venv]$ pip -v install arrow
Collecting arrow
Getting page https://pypi.python.org/simple/arrow/
URLs to search for versions for arrow:

(venv) [wsgi@vps venv]$

@rubensgomes
Copy link
Author

The fix for the issue with the "long_description=open('README.rst').read()," in the setup.py that causes the "UnicodeDecodeError" was fixed on my CentOS 7 Linux VPS by changing the user's environment locale setting to en_US.utf8 as follows:

[wsgi@vps ~]$ locale
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=

@ulope
Copy link

ulope commented Jul 8, 2015

I would argue that this still is a bug. Instead of using regular open it would be much safer to use codecs.open with an explicit encoding declaration.

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

3 participants