[Python-modules-team] Bug#872270: celery: FTBFS with Sphinx 1.6: AttributeError: 'Sphinx' object has no attribute 'domains'

Dmitry Shachnev mitya57 at debian.org
Tue Aug 15 14:46:29 UTC 2017


Source: celery
Version: 3.1.23-7
Severity: important
Tags: fixed-upstream
User: python-modules-team at lists.alioth.debian.org
Usertags: sphinx1.6

Dear maintainer,

celery fails to build with Sphinx 1.6, currently available in experimental:

  Running Sphinx v1.6.3
  making output directory...
  Generating grammar tables from /usr/share/sphinx/pycode/Grammar-py2.txt
  WARNING: sphinx.ext.pngmath has been deprecated. Please use sphinx.ext.imgmath instead.

  Exception occurred:
    File "/tmp/celery-3.1.23/docs/../celery/contrib/sphinx.py", line 75, in setup
      app.domains['py'].directives['task'] = TaskDirective
  AttributeError: 'Sphinx' object has no attribute 'domains'
  The full traceback has been saved in /tmp/sphinx-err-KsCJml.log, if you want to report the issue to the developers.

And the full traceback from the mentioned file is:

  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/sphinx/cmdline.py", line 305, in main
      opts.warningiserror, opts.tags, opts.verbosity, opts.jobs)
    File "/usr/lib/python2.7/dist-packages/sphinx/application.py", line 196, in __init__
      self.setup_extension(extension)
    File "/usr/lib/python2.7/dist-packages/sphinx/application.py", line 456, in setup_extension
      self.registry.load_extension(self, extname)
    File "/usr/lib/python2.7/dist-packages/sphinx/registry.py", line 207, in load_extension
      metadata = mod.setup(app)
    File "/tmp/celery-3.1.23/docs/../celery/contrib/sphinx.py", line 75, in setup
      app.domains['py'].directives['task'] = TaskDirective
  AttributeError: 'Sphinx' object has no attribute 'domains'

This looks like a result of this Sphinx commit:
https://github.com/sphinx-doc/sphinx/commit/8ca9bdfbd41cc547

This commit from upstream Celery should fix this:
https://github.com/celery/celery/commit/3c98e6216167d7e5

--
Dmitry Shachnev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20170815/6ab5f68a/attachment.sig>


More information about the Python-modules-team mailing list