Issues

Issue #754 invalid

TypeError in sphinx/writers/latex.py (Docutils 0.8)

Jakub Wilk
created an issue

After upgrading Docutils to 0.8, LaTeX builder crashes with this exception:

{{{

Sphinx version: 1.0.7

Python version: 2.6.7

Docutils version: 0.8 release

Jinja2 version: 2.6

Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/Sphinx-1.0.7-py2.6.egg/sphinx/cmdline.py", line 188, in main app.build(force_all, filenames) File "/usr/local/lib/python2.6/dist-packages/Sphinx-1.0.7-py2.6.egg/sphinx/application.py", line 207, in build self.builder.build_update() File "/usr/local/lib/python2.6/dist-packages/Sphinx-1.0.7-py2.6.egg/sphinx/builders/init.py", line 193, in build_update self.build(['all'], to_build) File "/usr/local/lib/python2.6/dist-packages/Sphinx-1.0.7-py2.6.egg/sphinx/builders/init.py", line 254, in build self.write(docnames, list(updated_docnames), method) File "/usr/local/lib/python2.6/dist-packages/Sphinx-1.0.7-py2.6.egg/sphinx/builders/latex.py", line 104, in write docwriter.write(doctree, destination) File "/usr/lib/pymodules/python2.6/docutils/writers/init.py", line 77, in write self.translate() File "/usr/local/lib/python2.6/dist-packages/Sphinx-1.0.7-py2.6.egg/sphinx/writers/latex.py", line 91, in translate visitor = LaTeXTranslator(self.document, self.builder) File "/usr/local/lib/python2.6/dist-packages/Sphinx-1.0.7-py2.6.egg/sphinx/writers/latex.py", line 193, in init babel = ExtBabel(builder.config.language) TypeError: init() takes exactly 3 arguments (2 given) }}}

It only happens if language is set to something different than None, eg. "en".

Comments (3)

  1. Log in to comment