geerlingguy / docker-ubuntu1804-ansible

Ubuntu 18.04 LTS (Bionic) Docker container for Ansible playbook and role testing.
https://hub.docker.com/r/geerlingguy/docker-ubuntu1804-ansible/
MIT License
79 stars 53 forks source link

Builds failing with "UnicodeEncodeError ordinal not in range(128)" #25

Closed geerlingguy closed 3 years ago

geerlingguy commented 3 years ago

Towards the end of the Ansible install:

#10 13.22   File "/usr/local/lib/python3.6/dist-packages/pip/_internal/operations/prepare.py", line 249, in unpack_url
#10 13.22     unpack_file(file.path, location, file.content_type)
#10 13.22   File "/usr/local/lib/python3.6/dist-packages/pip/_internal/utils/unpacking.py", line 256, in unpack_file
#10 13.22     untar_file(filename, location)
#10 13.22   File "/usr/local/lib/python3.6/dist-packages/pip/_internal/utils/unpacking.py", line 226, in untar_file
#10 13.22     with open(path, "wb") as destfp:
#10 13.22 UnicodeEncodeError: 'ascii' codec can't encode character '\xe9' in position 117: ordinal not in range(128)
------
executor failed running [/bin/sh -c pip3 install $pip_packages]: exit code: 2
geerlingguy commented 3 years ago

Digging and digging... finally found https://github.com/pypa/pip/issues/10219