cannot make html

Anonymous avatarAnonymous created an issue

I get the following error when trying to make html:

# Sphinx version: 1.1.3
# Python version: 2.6.7
# Docutils version: 0.9.1 release
# Jinja2 version: 2.6
Traceback (most recent call last):
  File "/Users/Steve/Virtual/crazytown/lib/python2.6/site-packages/sphinx/cmdline.py", line 189, in main
    app.build(force_all, filenames)
  File "/Users/Steve/Virtual/crazytown/lib/python2.6/site-packages/sphinx/application.py", line 204, in build
    self.builder.build_update()
  File "/Users/Steve/Virtual/crazytown/lib/python2.6/site-packages/sphinx/builders/__init__.py", line 196, in build_update
    'out of date' % len(to_build))
  File "/Users/Steve/Virtual/crazytown/lib/python2.6/site-packages/sphinx/builders/__init__.py", line 216, in build
    purple, length):
  File "/Users/Steve/Virtual/crazytown/lib/python2.6/site-packages/sphinx/builders/__init__.py", line 120, in status_iterator
    for item in iterable:
  File "/Users/Steve/Virtual/crazytown/lib/python2.6/site-packages/sphinx/environment.py", line 608, in update_generator
    self.clear_doc(docname)
  File "/Users/Steve/Virtual/crazytown/lib/python2.6/site-packages/sphinx/environment.py", line 447, in clear_doc
    domain.clear_doc(docname)
  File "/Users/Steve/Virtual/crazytown/lib/python2.6/site-packages/sphinxcontrib/httpdomain.py", line 400, in clear_doc
    for typ, routes in self.routes.iteritems():
  File "/Users/Steve/Virtual/crazytown/lib/python2.6/site-packages/sphinxcontrib/httpdomain.py", line 397, in routes
    return dict((key, self.data[key]) for key in self.object_types)
  File "/Users/Steve/Virtual/crazytown/lib/python2.6/site-packages/sphinxcontrib/httpdomain.py", line 397, in <genexpr>
    return dict((key, self.data[key]) for key in self.object_types)
KeyError: 'patch'

Comments (5)

  1. Jon Waltman

    The error is raised in a third party extension httpdomain which is in the sphinx-contrib package. It might be an issue on their end.

    Have you successfully used this package before and it just recently quit working?

    You might clearing the cache (make clean) before building and see if that happens to fix the problem.

  2. speg

    Hmm, yes it worked a while ago (like 3 or 4 months ago?) but I went to use it again last week and ran into this.

  3. Jon Waltman

    It seems that patch support was recently added in httpdomain (sphinx-contrib d84f7bb) and it doesn't handle the case when the build cache is from a previous version.

    Does removing the build cache (by deleting the _build directory) fix this problem?

    Since this problem appears to be caused by the httpdomain extension, I'm going to close this ticket and suggest you report this issue to sphinx-contrib.

  4. 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.