While building the python documentation, the following occurred:
"""
ross@hobo:~/code/py3kdev/i12102/Doc$ make html
mkdir -p build/html build/doctrees
python tools/sphinx-build.py -b html -d build/doctrees -D
latex_paper_size= . build/html
Running Sphinx v1.0.7
loading pickled environment... done
building [html]: targets for 459 source files that are out of date
updating environment: [config changed] 419 added, 0 changed, 40 removed
reading sources... [100%]
whatsnew/index
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [ 14%]
distutils/install
Exception occurred:
File "/home/ross/code/py3kdev/i12102/Doc/tools/sphinx/environment.py",
line 1063, in get_toc_for
toc = self.tocs[docname].deepcopy()
KeyError: 'distutils/install'
The full traceback has been saved in /tmp/sphinx-err-iPlsIX.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
<http://groups.google.com/group/sphinx-dev/>,
or report them in the tracker at
<http://bitbucket.org/birkenfeld/sphinx/issues/>. Thanks!
make: *** [build] Error 1
"""
So I'm submitting a bug report as it said :-)
And the contents of /tmp/sphinx-err-iPlsIX.log:
"""
# Sphinx version: 1.0.7
# Python version: 2.7.1+
# Docutils version: 0.6 release
# Jinja2 version: unknown
Traceback (most recent call last):
File "/home/ross/code/py3kdev/i12102/Doc/tools/sphinx/cmdline.py",
line 188, in main
app.build(force_all, filenames)
File "/home/ross/code/py3kdev/i12102/Doc/tools/sphinx/application.py",
line 207, in build
self.builder.build_update()
File
"/home/ross/code/py3kdev/i12102/Doc/tools/sphinx/builders/__init__.py",
line 198, in build_update
'out of date' % len(to_build))
File
"/home/ross/code/py3kdev/i12102/Doc/tools/sphinx/builders/__init__.py",
line 254, in build
self.write(docnames, list(updated_docnames), method)
File
"/home/ross/code/py3kdev/i12102/Doc/tools/sphinx/builders/__init__.py",
line 294, in write
self.write_doc(docname, doctree)
File
"/home/ross/code/py3kdev/i12102/Doc/tools/sphinx/builders/html.py", line
413, in write_doc
ctx = self.get_doc_context(docname, body, metatags)
File
"/home/ross/code/py3kdev/i12102/Doc/tools/sphinx/builders/html.py", line
382, in get_doc_context
toc = self.render_partial(self.env.get_toc_for(docname))['fragment']
File "/home/ross/code/py3kdev/i12102/Doc/tools/sphinx/environment.py",
line 1063, in get_toc_for
toc = self.tocs[docname].deepcopy()
KeyError: 'distutils/install'
"""
Running "make html" again worked without error.
Cheers
Ross
--
You received this message because you are subscribed to the Google Groups
"sphinx-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sphinx-dev?hl=en.