tags 527486 + patch
thanks

* Daniel Schepler <dschep...@gmail.com>, 2009-05-07, 13:34:
fakeroot debian/rules binary
PYTHONPATH=/tmp/buildd/jinja2-2.1.1 make -C docs html
make[1]: Entering directory `/tmp/buildd/jinja2-2.1.1/docs'
mkdir -p _build/html _build/doctrees
sphinx-build -b html -d _build/doctrees   . _build/html
/tmp/buildd/jinja2-2.1.1/jinja2/__init__.py:31: UserWarning: Module jinja2 was 
already imported from /tmp/buildd/jinja2-2.1.1/jinja2/__init__.py, but 
/usr/lib/pymodules/python2.5 is being added to sys.path
 __version__ = __import__('pkg_resources') \
Running Sphinx v0.6.1
Exception occurred:
 File "/usr/lib/pymodules/python2.5/sphinx/builders/html.py", line 104, in 
init_templates
   self.templates.init(self, self.theme)
TypeError: init() takes exactly 2 arguments (3 given)
The full traceback has been saved in /tmp/sphinx-err-l88Jtk.log, if you want to 
report the issue to the author.
Please also report this if it was a user error, so that a better error message 
can be provided next time.
Send reports to sphinx-...@googlegroups.com. Thanks!

The attached patch fixes this problem.

--
Jakub Wilk
--- jinja2-2.1.1.orig/docs/conf.py
+++ jinja2-2.1.1/docs/conf.py
@@ -96,7 +96,7 @@
 #html_use_smartypants = True
 
 # use jinja2 for templates
-template_bridge = 'jinjaext.Jinja2Bridge'
+template_bridge = 'sphinx.jinja2glue.BuiltinTemplateLoader'
 
 # no modindex
 html_use_modindex = False

Reply via email to