UnicodeEncodeError on latest docker debian image
See original GitHub issueGetting this error on the latest docker debian image with python-dev installed
File "<string>", line 1, in <module>
File "/tmp/pip-build-omJzX6/smart-open/setup.py", line 72, in <module>
'Topic :: Database :: Front-Ends',
File "/usr/local/lib/python2.7/dist-packages/setuptools/__init__.py", line 129, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/usr/lib/python2.7/distutils/command/install.py", line 613, in run
self.run_command(cmd_name)
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/install_egg_info.py", line 34, in run
self.run_command('egg_info')
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/egg_info.py", line 271, in run
writer(self, ep.name, os.path.join(self.egg_info, ep.name))
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/egg_info.py", line 604, in write_pkg_info
metadata.write_pkg_info(cmd.egg_info)
File "/usr/lib/python2.7/distutils/dist.py", line 1106, in write_pkg_info
self.write_pkg_file(pkg_info)
File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 76, in write_pkg_file
file.write('%s: %s\n' % (field, attr_val))
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0158' in position 14: ordinal not in range(128)
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-omJzX6/smart-open/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-CmK_oj-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-omJzX6/smart-open/
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:15 (4 by maintainers)
Top Results From Across the Web
Unicode error when building docker container - Stack Overflow
I am just building a very simple Docker container and, for some reason, the build fails but only when trying to build it...
Read more >Install Docker Engine on Debian
This procedure works for Debian on x86_64 / amd64 , armhf , arm64 , and Raspbian. Receiving a GPG error when running apt-get...
Read more >Solving locale issues with docker containers - Mike my bytes
On our local system instance unicode it's not a problem. Just a quick test on dockerized production environment and... It's 2016 and our...
Read more >Enabling Docker Layer Caching - CircleCI
Docker layer caching (DLC) is a great feature to use if building Docker images is a regular part of your CI/CD process. DLC...
Read more >How to configure locales to Unicode in a Docker Ubuntu 14.04 ...
This is the correct answer. locale -a shows that the locale has been removed from the base image entirely. locale-gen generates it again...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@slimm609 @xCatG @baldwindc @schlueter fixed in #178,
smart_open==1.5.7
(that contained this fix) already released https://pypi.python.org/pypi/smart_open.Thanks fresh
setuptools==39.0.0
for this problem, they released new version yesterday https://pypi.python.org/pypi/setuptools