New submission from Sridhar Ratnakumar <sridh...@activestate.com>: I ran 'python setup.py --author' for the pypi package "ll-orasql-0.6" (whose author name has non-ascii characters) under subprocess.Popen and this is what I get:
Traceback (most recent call last): File "/home/sridharr/as/pypm/bin/python", line 39, in <module> execfile(sys.argv[0]) File "setup.py", line 50, in <module> package_dir={"ll": ""} File "/opt/ActivePython-2.6/lib/python2.6/distutils/core.py", line 138, in setup ok = dist.parse_command_line() File "/opt/ActivePython-2.6/lib/python2.6/distutils/dist.py", line 456, in parse_command_line if self.handle_display_options(option_order): File "/opt/ActivePython-2.6/lib/python2.6/distutils/dist.py", line 704, in handle_display_options print value UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 8: ordinal not in range(128) When ran under the console, this exception is not seen. Otherwise, the return code is 1 and nothing (apart from the above exception) is printed. How to reproduce? ================= Download `ll-orasql-0.6` from PyPI and run the following in the Python shell: >>> subprocess.Popen('python setup.py --author', stdout=subprocess.PIPE, shell=True).stdout.read() ---------- assignee: tarek components: Distutils messages: 88664 nosy: srid, tarek severity: normal status: open title: encoding error for 'setup.py --author' when read via subprocess pipe type: behavior versions: Python 2.6 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6166> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com