[issue12087] install_egg_info fails with UnicodeEncodeError depending on locale

2018-07-11 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Fixed in issue9561.

--
nosy: +serhiy.storchaka
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> distutils: set encoding to utf-8 for input and output files
type: crash -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12087] install_egg_info fails with UnicodeEncodeError depending on locale

2011-06-22 Thread Michał Górny

Changes by Michał Górny mgo...@gentoo.org:


--
nosy: +mgorny

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12087
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12087] install_egg_info fails with UnicodeEncodeError depending on locale

2011-05-16 Thread Hagen Fürstenau

New submission from Hagen Fürstenau ha...@zhuliguan.net:

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 rep...@bugs.python.org
http://bugs.python.org/issue12087
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12087] install_egg_info fails with UnicodeEncodeError depending on locale

2011-05-16 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

install_egg_info.run() uses f = open(target, 'w') to create the .egg-info file 
and so the file uses the locale encoding. I don't know which module/program 
reads the file, so I don't know if the locale encoding is a good choice.

--
nosy: +haypo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12087
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12087] install_egg_info fails with UnicodeEncodeError depending on locale

2011-05-16 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12087
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12087] install_egg_info fails with UnicodeEncodeError depending on locale

2011-05-16 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

The pkg_resources module in setuptools or distribute reads those files.

In 3.3, packaging.database reads them too (it’s an implementation of PEP 376 
with b/w compat with egg-info).  It may work just fine in 3.x (it uses text 
I/O), but when we backport packaging to distutils2 for 2.4+, we’ll probably run 
into the problem again.

--
components: +Distutils2
nosy: +alexis, pje

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12087
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com