Unicode Decode Error? #475

Closed
willhoag opened this Issue Dec 8, 2013 · 2 comments

Comments

Projects
None yet
2 participants
@willhoag

willhoag commented Dec 8, 2013

I'm trying to pip install django-allauth with Python 3.3.2 in a docker container and I'm getting a Unicode Decode Error. https://dpaste.de/JaXg It installs properly on my mac... Any ideas?

@pennersr pennersr closed this in f559610 Dec 8, 2013

@willhoag

This comment has been minimized.

Show comment Hide comment
@willhoag

willhoag Dec 8, 2013

Rad. Thanks!

willhoag commented Dec 8, 2013

Rad. Thanks!

@matachi

This comment has been minimized.

Show comment Hide comment
@matachi

matachi Jan 3, 2014

I'm still experiencing this problem. I'm trying to install it with pip for Python 3 in a Docker container with Ubuntu 12.04.

root@d5c6cfab4046:/# pip install https://github.com/pennersr/django-allauth/tarball/master
Downloading/unpacking https://github.com/pennersr/django-allauth/tarball/master
  Downloading master (239kB): 239kB downloaded
  Running setup.py egg_info for package from https://github.com/pennersr/django-allauth/tarball/master

Cleaning up...
Exception:
Traceback (most recent call last):
  File "/usr/local/lib/python3.2/dist-packages/pip-1.4.1-py3.2.egg/pip/basecommand.py", line 134, in main
    status = self.run(options, args)
  File "/usr/local/lib/python3.2/dist-packages/pip-1.4.1-py3.2.egg/pip/commands/install.py", line 236, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/usr/local/lib/python3.2/dist-packages/pip-1.4.1-py3.2.egg/pip/req.py", line 1134, in prepare_files
    req_to_install.run_egg_info()
  File "/usr/local/lib/python3.2/dist-packages/pip-1.4.1-py3.2.egg/pip/req.py", line 264, in run_egg_info
    "%(Name)s==%(Version)s" % self.pkg_info())
  File "/usr/local/lib/python3.2/dist-packages/pip-1.4.1-py3.2.egg/pip/req.py", line 357, in pkg_info
    data = self.egg_info_data('PKG-INFO')
  File "/usr/local/lib/python3.2/dist-packages/pip-1.4.1-py3.2.egg/pip/req.py", line 297, in egg_info_data
    data = fp.read()
  File "/usr/lib/python3.2/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 8522: ordinal not in range(128)

Storing complete log in /.pip/pip.log

However, installing 49ceb77 with this command worked fine:

root@d5c6cfab4046:/# pip install https://github.com/willhoag/django-allauth/tarball/49ceb777b3917ee5640a5e304698b9ca9cd11887

BTW, here is an SO question about the problem: http://stackoverflow.com/questions/20450313/pip-install-django-allauth-unicodedecodeerror

matachi commented Jan 3, 2014

I'm still experiencing this problem. I'm trying to install it with pip for Python 3 in a Docker container with Ubuntu 12.04.

root@d5c6cfab4046:/# pip install https://github.com/pennersr/django-allauth/tarball/master
Downloading/unpacking https://github.com/pennersr/django-allauth/tarball/master
  Downloading master (239kB): 239kB downloaded
  Running setup.py egg_info for package from https://github.com/pennersr/django-allauth/tarball/master

Cleaning up...
Exception:
Traceback (most recent call last):
  File "/usr/local/lib/python3.2/dist-packages/pip-1.4.1-py3.2.egg/pip/basecommand.py", line 134, in main
    status = self.run(options, args)
  File "/usr/local/lib/python3.2/dist-packages/pip-1.4.1-py3.2.egg/pip/commands/install.py", line 236, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/usr/local/lib/python3.2/dist-packages/pip-1.4.1-py3.2.egg/pip/req.py", line 1134, in prepare_files
    req_to_install.run_egg_info()
  File "/usr/local/lib/python3.2/dist-packages/pip-1.4.1-py3.2.egg/pip/req.py", line 264, in run_egg_info
    "%(Name)s==%(Version)s" % self.pkg_info())
  File "/usr/local/lib/python3.2/dist-packages/pip-1.4.1-py3.2.egg/pip/req.py", line 357, in pkg_info
    data = self.egg_info_data('PKG-INFO')
  File "/usr/local/lib/python3.2/dist-packages/pip-1.4.1-py3.2.egg/pip/req.py", line 297, in egg_info_data
    data = fp.read()
  File "/usr/lib/python3.2/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 8522: ordinal not in range(128)

Storing complete log in /.pip/pip.log

However, installing 49ceb77 with this command worked fine:

root@d5c6cfab4046:/# pip install https://github.com/willhoag/django-allauth/tarball/49ceb777b3917ee5640a5e304698b9ca9cd11887

BTW, here is an SO question about the problem: http://stackoverflow.com/questions/20450313/pip-install-django-allauth-unicodedecodeerror

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment