Opened 6 years ago

Closed 6 years ago

#29371 closed Bug (wontfix)

Documentation building fails with AssertionError while writing internals/contributing/triaging-tickets

Reported by: Giovanni Mariani Owned by: nobody
Component: Documentation Version: 2.0
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Trying to package Django for Rosa Linux Fresh R10 (a Mandriva derivative), using sphinx 1.4.9.
The build of Django docs ("make -C docs/ html") fails while writing internals/contributing/triaging-tickets whit this error message:
Exception occurred:
File "/usr/lib/python2.7/site-packages/docutils/writers/_html_base.py", line 735, in depart_document assert not self.context, 'len(context) = %s' % len(self.context)
AssertionError: len(context) = 1

The issue is present in 1.8.19 and 1.11.12, with python 2.7, as well in 2.0.4, with python 3.5.
Attached full log of a 1.11.2 failed build and corresponding sphinx traceback.

Attachments (2)

sphinx-err-5NNKYX.log (2.9 KB ) - added by Giovanni Mariani 6 years ago.
Trace back of a failed build from sphinx
DocBuildFailed.log (23.2 KB ) - added by Giovanni Mariani 6 years ago.
Edited build log of a failed build

Download all attachments as: .zip

Change History (4)

by Giovanni Mariani, 6 years ago

Attachment: sphinx-err-5NNKYX.log added

Trace back of a failed build from sphinx

by Giovanni Mariani, 6 years ago

Attachment: DocBuildFailed.log added

Edited build log of a failed build

comment:1 by Claude Paroz, 6 years ago

My suspicion while reading the error log is that Sphinx is choking on the documentation example headers in the writing-documentation.txt content.
Did you try with another Sphinx version? I don't remember having been faced with such an error (I'm using Sphinx 1.7.0 currently).

comment:2 by Tim Graham, 6 years ago

Component: UncategorizedDocumentation
Resolution: wontfix
Status: newclosed

I don't think we'll spend any time to fix issues with older sphinx versions. The issue seems fixed as of sphinx 1.5.1.

Note: See TracTickets for help on using tickets.
Back to Top