recursion error when extending layout.html in theme

Thijs Triemstra avatarThijs Triemstra created an issue

I'm using sphinx 1.0.2 and was getting the following error:

preparing documents... done
writing output... [  1%] about                                                                                                                                                 
Exception occurred:
  File "/usr/local/lib/python2.7/site-packages/Jinja2-2.5-py2.7.egg/jinja2/", line 648, in __getitem__
    if self._queue[-1] != key:
RuntimeError: maximum recursion depth exceeded in cmp
The full traceback has been saved in /var/folders/Ur/UrpTcxbhEkCJP55dX-xbbU+++TI/-Tmp-/sphinx-err-pWgPYh.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
Either send bugs to the mailing list at <>,
or report them in the tracker at <>. Thanks!
make: *** [html] Error 1

My mistake was extending layout.html in a theme by itself, so inside layout.html you found:

{% extends "layout.html" %}

instead of

{% extends "basic/layout.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
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.