smart_open: UnicodeEncodeError on latest docker debian image

Getting 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/

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 15 (4 by maintainers)

Commits related to this issue

Most upvoted comments

@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

I am seeing this with regular pip install smart-open as well… 😦