[Python-modules-team] Bug#714313: python3-docutils: ODT writer can't handle images: AttributeError: 'str' object has no attribute 'decode'
Jakub Wilk
jwilk at debian.org
Thu Jun 27 20:22:17 UTC 2013
Package: python3-docutils
Version: 0.10-3
Severity: normal
Python 3 version of the ODT writer can't handle images:
$ python3 /usr/bin/rst2odt --traceback test.rst > /dev/null
Traceback (most recent call last):
File "/usr/bin/rst2odt", line 29, in <module>
description=description)
File "/usr/lib/python3/dist-packages/docutils/core.py", line 551, in publish_cmdline_to_binary
config_section=config_section, enable_exit_status=enable_exit_status)
File "/usr/lib/python3/dist-packages/docutils/core.py", line 219, in publish
output = self.writer.write(self.document, self.destination)
File "/usr/lib/python3/dist-packages/docutils/writers/__init__.py", line 80, in write
self.translate()
File "/usr/lib/python3/dist-packages/docutils/writers/odf_odt/__init__.py", line 554, in translate
self.assemble_my_parts()
File "/usr/lib/python3/dist-packages/docutils/writers/odf_odt/__init__.py", line 573, in assemble_my_parts
self.store_embedded_files(zfile)
File "/usr/lib/python3/dist-packages/docutils/writers/odf_odt/__init__.py", line 598, in store_embedded_files
destination1 = destination.decode('latin-1').encode('utf-8')
AttributeError: 'str' object has no attribute 'decode'
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64
Kernel: Linux 3.9-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages python3-docutils depends on:
ii docutils-common 0.10-3
ii python3 3.2.3-7
ii python3-roman 1.4.0-2
--
Jakub Wilk
More information about the Python-modules-team
mailing list