New submission from Hagen Fürstenau <[email protected]>:
With issue 10419 fixed, I've run into the next distutils unicode bug: The
command "install_egg_info" doesn't specify an encoding when opening the
".egg-info" file for writing. Depending on the locale, this may result in
something like the following:
$ python setup.py install
[...]
Traceback (most recent call last):
File "setup.py", line 67, in <module>
main()
File "setup.py", line 62, in main
cmdclass={"test":TestCommand},
File "/home/hagen/src/python/Lib/distutils/core.py", line 149, in setup
dist.run_commands()
File "/home/hagen/src/python/Lib/distutils/dist.py", line 919, in run_commands
self.run_command(cmd)
File "/home/hagen/src/python/Lib/distutils/dist.py", line 938, in run_command
cmd_obj.run()
File "/home/hagen/src/python/Lib/distutils/command/install.py", line 583, in
run
self.run_command(cmd_name)
File "/home/hagen/src/python/Lib/distutils/cmd.py", line 315, in run_command
self.distribution.run_command(command)
File "/home/hagen/src/python/Lib/distutils/dist.py", line 938, in run_command
cmd_obj.run()
File "/home/hagen/src/python/Lib/distutils/command/install_egg_info.py", line
44, in run
self.distribution.metadata.write_pkg_file(f)
File "/home/hagen/src/python/Lib/distutils/dist.py", line 1033, in
write_pkg_file
file.write('Author: %s\n' % self.get_contact() )
UnicodeEncodeError: 'ascii' codec can't encode character '\xfc' in position 15:
ordinal not in range(128)
I guess some encoding (UTF-8?) should be specified in the "run" method of
"install_egg_info".
----------
assignee: tarek
components: Distutils
messages: 136084
nosy: eric.araujo, hagen, tarek
priority: normal
severity: normal
status: open
title: install_egg_info fails with UnicodeEncodeError depending on locale
type: crash
versions: Python 3.2, Python 3.3
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue12087>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com