Issue #511 resolved

recursion error when extending layout.html in theme

Thijs 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 (4)

  1. Log in to comment