[Bug 1287758] Re: python3.3 distutils TypeError: Type str doesn't support the buffer API
Martin Pitt
martin.pitt at ubuntu.com
Fri Mar 7 12:23:03 UTC 2014
How can this be reproduced? Do you have a pointer to a source tree which
generates this crash when trying to build it?
Does this also happen with python3.4?
This doesn't seem to involve python-distutils-extra at all, reassigning.
** Package changed: python-distutils-extra (Ubuntu) => python3.3
(Ubuntu)
** Changed in: python3.3 (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python3.3 in Ubuntu.
https://bugs.launchpad.net/bugs/1287758
Title:
python3.3 distutils TypeError: Type str doesn't support the buffer API
Status in “python3.3” package in Ubuntu:
Incomplete
Bug description:
function rfc822_escape in /usr/lib/python3.3/distutils/util.py errors
on packages with non-byte-encoded strings.
Example was found while converting rtree module to use python3.
writing Rtree.egg-info/PKG-INFO
Traceback (most recent call last):
File "setup.py", line 44, in <module>
'Topic :: Database',
File "/usr/lib/python3.3/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.3/distutils/dist.py", line 929, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.3/distutils/dist.py", line 948, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/install.py", line 73, in run
self.do_egg_install()
File "/usr/lib/python3/dist-packages/setuptools/command/install.py", line 93, in do_egg_install
self.run_command('bdist_egg')
File "/usr/lib/python3.3/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.3/distutils/dist.py", line 948, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/bdist_egg.py", line 172, in run
self.run_command("egg_info")
File "/usr/lib/python3.3/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.3/distutils/dist.py", line 948, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/command/egg_info.py", line 177, in run
writer(self, ep.name, os.path.join(self.egg_info,ep.name))
File "/usr/lib/python3/dist-packages/setuptools/command/egg_info.py", line 413, in write_pkg_info
metadata.write_pkg_info(cmd.egg_info)
File "/usr/lib/python3.3/distutils/dist.py", line 1027, in write_pkg_info
self.write_pkg_file(pkg_info)
File "/usr/lib/python3.3/distutils/dist.py", line 1048, in write_pkg_file
long_desc = rfc822_escape(self.get_long_description())
File "/usr/lib/python3.3/distutils/util.py", line 490, in rfc822_escape
lines = header.split('\n')
TypeError: Type str doesn't support the buffer API
patch included, but unsure if it will open up more cans-o-worms.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3.3/+bug/1287758/+subscriptions
More information about the foundations-bugs
mailing list