On Mon, Mar 30, 2015 at 10:57 AM, Balan Victor <balan.vict...@gmail.com> wrote:
> Ciao a tutti, > dentro una imagine docker, in particolare questa > https://registry.hub.docker.com/u/cardoe/gitlab-ci-runner-python/ sto > cercando di installare django hstore con il commando > > pip install django hstore > > ma ottengo questo errore: > > Running setup.py > (path:/gitlab-ci-runner/tmp/builds/project-5/env/build/django-hstore/setup.py) > egg_info for package django-hstore > Traceback (most recent call last): > File "<string>", line 17, in <module> > File > "/gitlab-ci-runner/tmp/builds/project-5/env/build/django-hstore/setup.py", > line 38, in <module> > long_description=open('README.rst').read(), > File > "/gitlab-ci-runner/tmp/builds/project-5/env/lib/python3.4/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 > 934: ordinal not in range(128) > Complete output from command python setup.py egg_info: > Traceback (most recent call last): > > Usi Python 3.x? In questo caso i files in modalità testo sono letti come Unicode, e probabilmente la lettura fallisce perchè nel tuo ambiente non è impostato l'encoding. Configura docker in modo da settare l'encoding di sistema a UTF-8. Ciao Manlio
_______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python