TemplateNotFound error in jinja code when upgrading to 0.6.1

Christopher Burns avatarChristopher Burns created an issue

We have a separate sidebar for our website and our api docs. The web sidebar extends the api one. The code works with sphinx version 0.5.1. When I upgraded to version 0.6.1 I get the following traceback.

Traceback (most recent call last): File "/Users/cburns/local/lib/python2.5/site-packages/Sphinx-0.6.1-py2.5.egg/sphinx/cmdline.py", line 172, in main app.build(all_files, filenames) File "/Users/cburns/local/lib/python2.5/site-packages/Sphinx-0.6.1-py2.5.egg/sphinx/application.py", line 129, in build self.builder.build_update() File "/Users/cburns/local/lib/python2.5/site-packages/Sphinx-0.6.1-py2.5.egg/sphinx/builders/init.py", line 255, in build_update 'out of date' % len(to_build)) File "/Users/cburns/local/lib/python2.5/site-packages/Sphinx-0.6.1-py2.5.egg/sphinx/builders/init.py", line 310, in build self.write(docnames, list(updated_docnames), method) File "/Users/cburns/local/lib/python2.5/site-packages/Sphinx-0.6.1-py2.5.egg/sphinx/builders/init.py", line 349, in write self.write_doc(docname, doctree) File "/Users/cburns/local/lib/python2.5/site-packages/Sphinx-0.6.1-py2.5.egg/sphinx/builders/html.py", line 351, in write_doc self.handle_page(docname, ctx, event_arg=doctree) File "/Users/cburns/local/lib/python2.5/site-packages/Sphinx-0.6.1-py2.5.egg/sphinx/builders/html.py", line 648, in handle_page output = self.templates.render(templatename, ctx) File "/Users/cburns/local/lib/python2.5/site-packages/Sphinx-0.6.1-py2.5.egg/sphinx/jinja2glue.py", line 81, in render return self.environment.get_template(template).render(context) File "/Users/cburns/local/lib/python2.5/site-packages/Sphinx-0.6.1-py2.5.egg/sphinx/themes/basic/page.html", line 1, in top-level template code {% extends "layout.html" %} File "/Users/cburns/src/nipy-repo/trunk-lp/doc/www/_templates/layout.html", line 1, in top-level template code {% extends "!layout.html" %} File "/Users/cburns/local/lib/python2.5/site-packages/Sphinx-0.6.1-py2.5.egg/sphinx/themes/basic/layout.html", line 157, in top-level template code {%- block sidebar1 %} {# possible location for sidebar #} {% endblock %} File "/Users/cburns/src/nipy-repo/trunk-lp/doc/www/_templates/layout.html", line 31, in block "sidebar1" {% block sidebar1 %}sidebar(){% endblock %} File "/Users/cburns/local/lib/python2.5/site-packages/Jinja2-2.1.1-py2.5-macosx-10.3-i386.egg/jinja2/sandbox.py", line 238, in return call context.call(obj, *args, kwargs) File "/Users/cburns/local/lib/python2.5/site-packages/Jinja2-2.1.1-py2.5-macosx-10.3-i386.egg/jinja2/runtime.py", line 132, in call return obj(*args, kwargs) File "/Users/cburns/local/lib/python2.5/site-packages/Jinja2-2.1.1-py2.5-macosx-10.3-i386.egg/jinja2/runtime.py", line 352, in call return self._func(*arguments) File "/Users/cburns/local/lib/python2.5/site-packages/Sphinx-0.6.1-py2.5.egg/sphinx/themes/basic/layout.html", line 68, in template {% include customsidebar %} File "/Users/cburns/src/nipy-repo/trunk-lp/doc/www/_templates/indexsidebar.html", line 1, in top-level template code {% extends "../../_templates/indexsidebar.html" %} File "/Users/cburns/local/lib/python2.5/site-packages/Jinja2-2.1.1-py2.5-macosx-10.3-i386.egg/jinja2/environment.py", line 499, in get_template template = self.loader.load(self, name, self.make_globals(globals)) File "/Users/cburns/local/lib/python2.5/site-packages/Jinja2-2.1.1-py2.5-macosx-10.3-i386.egg/jinja2/loaders.py", line 95, in load source, filename, uptodate = self.get_source(environment, name) File "/Users/cburns/local/lib/python2.5/site-packages/Sphinx-0.6.1-py2.5.egg/sphinx/jinja2glue.py", line 102, in get_source raise TemplateNotFound(template) TemplateNotFound: ../../_templates/indexsidebar.html

Comments (2)

  1. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.