Source: python-django
Version: 1.3.1-1
Severity: important
User: [email protected]
Usertags: sphinx1.0.8

When rebuilt against python-sphinx 1.0.8+dfsg-1 (available in experimental), Django failed to build from source;
| sphinx-build -b djangohtml -d _build/doctrees   . _build/html
| Making output directory...
| Running Sphinx v1.0.8
| loading pickled environment... not yet created
| building [djangohtml]: targets for 205 source files that are out of date
| updating environment: 205 added, 0 changed, 0 removed
| reading sources... [  0%] contents
| reading sources... [  0%] faq/admin
[snip]
| reading sources... [ 99%] topics/templates
| reading sources... [100%] topics/testing
|
| 
/build/python-django-oFxcJV/python-django-1.3.1/docs.debian/howto/custom-model-fields.txt:179:
 ERROR: Error in "note" directive:
| invalid option block.
|
| .. note::
|     Many of Django's model fields accept options that they don't do anything
|     with. For example, you can pass both
|     :attr:`~django.db.models.Field.editable` and
|     :attr:`~django.db.models.Field.auto_now` to a
|     :class:`django.db.models.DateField` and it will simply ignore the
|     :attr:`~django.db.models.Field.editable` parameter
|     (:attr:`~django.db.models.Field.auto_now` being set implies
|     ``editable=False``). No error is raised in this case.
|
|     This behavior simplifies the field classes, because they don't need to
|     check for options that aren't necessary. They just pass all the options to
|     the parent class and then don't use them later on. It's up to you whether
|     you want your fields to be more strict about the options they select, or
|     to use the simpler, more permissive behavior of the current fields.
| 
/build/python-django-oFxcJV/python-django-1.3.1/docs.debian/ref/contrib/admin/index.txt:1680:
 ERROR: Error in "note" directive:
| invalid option block.
|
| .. note::
|     Any view you render that uses the admin templates, or extends the base
|     admin template, should provide the ``current_app`` argument to
|     :class:`~django.template.RequestContext` or 
:class:`~django.template.Context`
|     when rendering the template.  It should be set to either ``self.name`` if
|     your view is on an ``AdminSite`` or ``self.admin_site.name`` if your view
|     is on a ``ModelAdmin``.
| /build/python-django-oFxcJV/python-django-1.3.1/docs.debian/ref/settings.txt:1658: 
ERROR: Error in "warning" directive:
| invalid option block.
|
| .. warning:: This should be an (initially empty) destination directory for
|     collecting your static files from their permanent locations into one
|     directory for ease of deployment; it is **not** a place to store your
|     static files permanently. You should do that in directories that will be
|     found by :doc:`staticfiles</ref/contrib/staticfiles>`'s
|     :setting:`finders<STATICFILES_FINDERS>`, which by default, are
|     ``'static/'`` app sub-directories and any directories you include in
|     :setting:`STATICFILES_DIRS`).
| /build/python-django-oFxcJV/python-django-1.3.1/docs.debian/ref/templates/api.txt:701: 
ERROR: Error in "note" directive:
| invalid option block.
|
| .. note::
|     All of the built-in Django template tags are safe to use with the cached
|     loader, but if you're using custom template tags that come from third
|     party packages, or that you wrote yourself, you should ensure that the
|     ``Node`` implementation for each tag is thread-safe. For more
|     information, see
|     :ref:`template tag thread safety 
considerations<template_tag_thread_safety>`.
| 
/build/python-django-oFxcJV/python-django-1.3.1/docs.debian/topics/i18n/localization.txt:261:
 ERROR: Error in "note" directive:
| invalid option block.
|
| .. note::
|     The default :file:`settings.py` file created by
|     :djadmin:`django-admin startproject <startproject>` includes
|     :setting:`USE_L10N = True <USE_L10N>` for convenience.
| /build/python-django-oFxcJV/python-django-1.3.1/docs.debian/topics/testing.txt:1252: 
ERROR: Error in "note" directive:
| invalid option block.
|
| .. note::
|     If you've ever run :djadmin:`manage.py syncdb<syncdb>`, you've
|     already used a fixture without even knowing it! When you call
|     :djadmin:`syncdb` in the database for the first time, Django
|     installs a fixture called ``initial_data``. This gives you a way
|     of populating a new database with any initial data, such as a
|     default set of categories.
|
|     Fixtures with other names can always be installed manually using
|     the :djadmin:`manage.py loaddata<loaddata>` command.
| looking for now-outdated files... none found
| pickling environment... done
| checking consistency... done
| preparing documents... done
| writing output... [  0%] contents
| writing output... [  0%] faq/admin
| writing output... [  1%] faq/contributing
| writing output... [  1%] faq/general
| writing output... [  2%] faq/help
| writing output... [  2%] faq/index
| writing output... [  3%] faq/install
| writing output... [  3%] faq/models
| writing output... [  4%] faq/usage
| writing output... [  4%] glossary
| writing output... [  5%] howto/apache-auth
| writing output... [  5%] howto/auth-remote-user
| writing output... [  6%] howto/contribute
| writing output... [  6%] howto/custom-file-storage
| writing output... [  7%] howto/custom-management-commands
|
| Exception occurred:
|   File "/usr/lib/pymodules/python2.7/docutils/nodes.py", line 173, in 
walkabout
|     if child.walkabout(visitor):
|   File "/usr/lib/pymodules/python2.7/docutils/nodes.py", line 173, in 
walkabout
|     if child.walkabout(visitor):
|   File "/usr/lib/pymodules/python2.7/docutils/nodes.py", line 173, in 
walkabout
|     if child.walkabout(visitor):
|   File "/usr/lib/pymodules/python2.7/docutils/nodes.py", line 173, in 
walkabout
|     if child.walkabout(visitor):
|   File "/usr/lib/pymodules/python2.7/docutils/nodes.py", line 173, in 
walkabout
|     if child.walkabout(visitor):
|   File "/usr/lib/pymodules/python2.7/docutils/nodes.py", line 173, in 
walkabout
|     if child.walkabout(visitor):
|   File "/usr/lib/pymodules/python2.7/docutils/nodes.py", line 173, in 
walkabout
|     if child.walkabout(visitor):
|   File "/usr/lib/pymodules/python2.7/docutils/nodes.py", line 165, in 
walkabout
|     visitor.dispatch_visit(self)
|   File "/usr/lib/pymodules/python2.7/docutils/nodes.py", line 1604, in 
dispatch_visit
|     return method(node)
|   File "/usr/lib/pymodules/python2.7/sphinx/writers/html.py", line 120, in 
visit_desc_parameter
|     self.body.append(self.param_separator)
| AttributeError: DjangoHTMLTranslator instance has no attribute 
'param_separator'
| The full traceback has been saved in /tmp/sphinx-err-kNsNyF.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[2]: *** [html] Error 1

The full traceback was:
| # Sphinx version: 1.0.8
| # Python version: 2.7.2+
| # Docutils version: 0.8.1 release
| # Jinja2 version: 2.6
| Traceback (most recent call last):
|   File "/usr/lib/pymodules/python2.7/sphinx/cmdline.py", line 188, in main
|     app.build(force_all, filenames)
|   File "/usr/lib/pymodules/python2.7/sphinx/application.py", line 207, in 
build
|     self.builder.build_update()
|   File "/usr/lib/pymodules/python2.7/sphinx/builders/__init__.py", line 198, 
in build_update
|     'out of date' % len(to_build))
|   File "/usr/lib/pymodules/python2.7/sphinx/builders/__init__.py", line 254, 
in build
|     self.write(docnames, list(updated_docnames), method)
|   File "/usr/lib/pymodules/python2.7/sphinx/builders/__init__.py", line 294, 
in write
|     self.write_doc(docname, doctree)
|   File "/usr/lib/pymodules/python2.7/sphinx/builders/html.py", line 410, in 
write_doc
|     self.docwriter.write(doctree, destination)
|   File "/usr/lib/pymodules/python2.7/docutils/writers/__init__.py", line 77, 
in write
|     self.translate()
|   File "/usr/lib/pymodules/python2.7/sphinx/writers/html.py", line 38, in 
translate
|     self.document.walkabout(visitor)
|   File "/usr/lib/pymodules/python2.7/docutils/nodes.py", line 173, in 
walkabout
|     if child.walkabout(visitor):
|   File "/usr/lib/pymodules/python2.7/docutils/nodes.py", line 173, in 
walkabout
|     if child.walkabout(visitor):
|   File "/usr/lib/pymodules/python2.7/docutils/nodes.py", line 173, in 
walkabout
|     if child.walkabout(visitor):
|   File "/usr/lib/pymodules/python2.7/docutils/nodes.py", line 173, in 
walkabout
|     if child.walkabout(visitor):
|   File "/usr/lib/pymodules/python2.7/docutils/nodes.py", line 173, in 
walkabout
|     if child.walkabout(visitor):
|   File "/usr/lib/pymodules/python2.7/docutils/nodes.py", line 173, in 
walkabout
|     if child.walkabout(visitor):
|   File "/usr/lib/pymodules/python2.7/docutils/nodes.py", line 173, in 
walkabout
|     if child.walkabout(visitor):
|   File "/usr/lib/pymodules/python2.7/docutils/nodes.py", line 165, in 
walkabout
|     visitor.dispatch_visit(self)
|   File "/usr/lib/pymodules/python2.7/docutils/nodes.py", line 1604, in 
dispatch_visit
|     return method(node)
|   File "/usr/lib/pymodules/python2.7/sphinx/writers/html.py", line 120, in 
visit_desc_parameter
|     self.body.append(self.param_separator)
| AttributeError: DjangoHTMLTranslator instance has no attribute 
'param_separator'

I believe that this due to this change in Sphinx:
https://bitbucket.org/birkenfeld/sphinx/changeset/5afc6092a568

FYI, I plan to upload new Sphinx to unstable soon after python-defaults (>= 2.7) migrates to testing.

--
Jakub Wilk



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to