pip install django-allauth UnicodeDecodeError

761 Views Asked by At

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?

Running Vagrant with Docker inside. Vagrant is running precise and my docker container is xdrum/ubuntu10.04-base from this docker index (https://index.docker.io/u/xdrum/ubuntu10.04-base/). Doing a pip install from a virtual env inside the docker container. Pip version 1.4.1 and python 3.3.2.

On my mac, django-allauth installs just fine in an os x virtual environment.

Really sturggling to figure this one out, so thanks for the help!!!

2

There are 2 best solutions below

0
On

Have you tried defining a LOCALE? There isn't one defined by default in the Docker container. In most cases you don't even have to install the locale packages, just define the LOCALE environment variable.

(ps your snippet isn't available on dpaste.de anymore)

0
On

Setting up locale helps

RUN locale-gen en_US en_US.UTF-8
ENV LANG en_US.UTF-8