[Python-modules-team] Bug#697018: rst2odt is broken
Juhapekka Tolvanen
juhtolv at iki.fi
Sun Dec 30 21:01:23 UTC 2012
Package: python3-docutils
Version: 0.9.1-2
Severity: important
I am converting files that can be found here:
http://iki.fi/juhtolv/tolleharj/
You need these files:
juhtolv_tolle_harjoitukset.txt
docutils.conf.txt
Then you need these environment values (in syntax of Bourne-type
shell):
export DOCSBASENAME="juhtolv_tolle_harjoitukset"
export DOCTITLE="Läsnäolon voima -kirjan harjoitukset"
export DOCAUTHOR="Juhapekka Tolvanen"
export TWOLETTERLANG="fi"
export TOCTITLE="Sisällysluettelo"
Command is this:
rst2odt --traceback --generator --date --time --toc-entry-backlinks \
--footnote-backlinks --section-numbering --strip-comments \
--language=${TWOLETTERLANG} --title="${DOCTITLE}" ${DOCSBASENAME}.txt \
${DOCSBASENAME}.odt
This is what happens:
juhtolv_tolle_harjoitukset.txt:7: (WARNING/2) Duplicate explicit
target name: "carpe diem".
juhtolv_tolle_harjoitukset.txt:7: (WARNING/2) Duplicate explicit
target name: "eckhart tolle".
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 555, 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 223, in
publish
output = self.writer.write(self.document, self.destination)
File "/usr/lib/python3/dist-packages/docutils/writers/__init__.py",
line 81, in write
output = self.destination.write(self.output)
File "/usr/lib/python3/dist-packages/docutils/io.py", line 396, in
write
self.open()
File "/usr/lib/python3/dist-packages/docutils/io.py", line 378, in
open
self.destination = open(self.destination_path, self.mode,
**kwargs)
ValueError: binary mode doesn't take an encoding argument
-- System Information:
Debian Release: 7.0
APT prefers stable
APT policy: (990, 'stable'), (500, 'testing-proposed-updates'), (500, 'stable-updates'), (500, 'proposed-updates'), (102, 'testing'), (101, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 3.2.0-4-686-pae (SMP w/1 CPU core)
Locale: LANG=fi_FI.utf8, LC_CTYPE=fi_FI.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages python3-docutils depends on:
ii docutils-common 0.9.1-2
ii python3 3.2.3-6
ii python3-roman 1.4.0-1
Versions of packages python3-docutils recommends:
ii libpaper-utils 1.1.24+nmu2
pn python3-imaging <none>
ii python3-lxml 3.0.1-1
ii python3-pygments 1.5+dfsg-1
Versions of packages python3-docutils suggests:
ii docutils-doc 0.9.1-2
ii fonts-linuxlibertine [ttf-linux-libertine] 5.1.3-1
pn texlive-lang-french <none>
ii texlive-latex-base 2012.20121123-1
ii texlive-latex-recommended 2012.20121123-1
-- no debconf information
--
Juhapekka "naula" Tolvanen * http colon slash slash iki dot fi slash juhtolv
"Quidquid Latine dictum sit altum videtur."
More information about the Python-modules-team
mailing list