[Bug 1287758] [NEW] python3.3 distutils TypeError: Type str doesn't support the buffer API
Launchpad Bug Tracker
1287758 at bugs.launchpad.net
Fri Mar 7 12:23:06 UTC 2014
You have been subscribed to a public bug:
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.
** Affects: python3.3 (Ubuntu)
Importance: Undecided
Status: Incomplete
** Tags: patch
--
python3.3 distutils TypeError: Type str doesn't support the buffer API
https://bugs.launchpad.net/bugs/1287758
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to python3.3 in Ubuntu.
More information about the foundations-bugs
mailing list