← Back to team overview

ubuntu-packaging-guide-team team mailing list archive

[Bug 1068493] Re: Can't build html with footnotes when using i18n

 

Attached two SRU branches. I would prefer to wait for bug 1008537 to be
fixed, but this has already been delayed for a long time, so we can
upload it now and hope it won't fail to build.

** Description changed:

+ == Impact ==
+ * Many projects using l10n module are affected.
+ 
+ == Development Fix ==
+ * Fixed upstream.
+ * Fixed in Debian experimental (since 1.1.3+dfsg-6).
+ * Fixed in Ubuntu raring (since 1.1.3+dfsg-7ubuntu1).
+ 
+ == Stable Fix ==
+ Bzr branches for both quantal and precise are attached.
+ 
+ == Test Case ==
+ * bzr branch lp:ubuntu-packaging-guide;
+ * make html-es;
+ * check that it builds correctly (there may be some warnings though);
+ * open _build/html/es/python-packaging.html, check that external links work.
+ 
+ == Regression Potential ==
+ * Upstream test suite added new tests for these issues.
+ * All existing tests pass as well.
+ 
+ ==========================================================
+ 
  To reproduce the issue, first do the following:
  
   - ./debian/scripts/add-languages
   - bzr unknowns | xargs bzr add
   - bzr bd
  
  You should get the following sphinx crash at the end:
  Exception occurred:
    File "/usr/lib/python2.7/dist-packages/sphinx/builders/html.py", line 419, in write_doc
      self.docwriter.write(doctree, destination)
    File "/usr/lib/python2.7/dist-packages/docutils/writers/__init__.py", line 77, in write
      self.translate()
    File "/usr/lib/python2.7/dist-packages/sphinx/writers/html.py", line 38, in translate
      self.document.walkabout(visitor)
    File "/usr/lib/python2.7/dist-packages/docutils/nodes.py", line 173, in walkabout
      if child.walkabout(visitor):
    File "/usr/lib/python2.7/dist-packages/docutils/nodes.py", line 173, in walkabout
      if child.walkabout(visitor):
    File "/usr/lib/python2.7/dist-packages/docutils/nodes.py", line 173, in walkabout
      if child.walkabout(visitor):
    File "/usr/lib/python2.7/dist-packages/docutils/nodes.py", line 165, in walkabout
      visitor.dispatch_visit(self)
    File "/usr/lib/python2.7/dist-packages/docutils/nodes.py", line 1604, in dispatch_visit
      return method(node)
    File "/usr/lib/python2.7/dist-packages/docutils/writers/html4css1/__init__.py", line 957, in visit_footnote_reference
      href = '#' + node['refid']
    File "/usr/lib/python2.7/dist-packages/docutils/nodes.py", line 534, in __getitem__
      return self.attributes[key]
  KeyError: 'refid'
  
  Status in    PPA    / Ubuntu:
  
   - Raring:   Broken / Broken
   - Quantal:  Fixed  / Broken
   - Precise:  Fixed  / Broken
   - Oneiric:  Broken / Broken
  
  We will need to put some work into backporting the Upstream fix to PPA
  and Ubuntu to get Spanish translations (and others) in.
  
  Upstream bug: https://bitbucket.org/birkenfeld/sphinx/issue/955/cant-
  build-html-with-footnotes-when-using

** Branch linked: lp:~mitya57/ubuntu/quantal/sphinx/lp1068493

-- 
You received this bug notification because you are a member of Ubuntu
Packaging Guide Team, which is subscribed to Ubuntu Packaging Guide.
https://bugs.launchpad.net/bugs/1068493

Title:
  Can't build html with footnotes when using i18n

Status in Sphinx:
  Fix Committed
Status in Ubuntu Packaging Guide:
  Fix Released
Status in “sphinx” package in Ubuntu:
  Fix Released

Bug description:
  == Impact ==
  * Many projects using l10n module are affected.

  == Development Fix ==
  * Fixed upstream.
  * Fixed in Debian experimental (since 1.1.3+dfsg-6).
  * Fixed in Ubuntu raring (since 1.1.3+dfsg-7ubuntu1).

  == Stable Fix ==
  Bzr branches for both quantal and precise are attached.

  == Test Case ==
  * bzr branch lp:ubuntu-packaging-guide;
  * make html-es;
  * check that it builds correctly (there may be some warnings though);
  * open _build/html/es/python-packaging.html, check that external links work.

  == Regression Potential ==
  * Upstream test suite added new tests for these issues.
  * All existing tests pass as well.

  ==========================================================

  To reproduce the issue, first do the following:

   - ./debian/scripts/add-languages
   - bzr unknowns | xargs bzr add
   - bzr bd

  You should get the following sphinx crash at the end:
  Exception occurred:
    File "/usr/lib/python2.7/dist-packages/sphinx/builders/html.py", line 419, in write_doc
      self.docwriter.write(doctree, destination)
    File "/usr/lib/python2.7/dist-packages/docutils/writers/__init__.py", line 77, in write
      self.translate()
    File "/usr/lib/python2.7/dist-packages/sphinx/writers/html.py", line 38, in translate
      self.document.walkabout(visitor)
    File "/usr/lib/python2.7/dist-packages/docutils/nodes.py", line 173, in walkabout
      if child.walkabout(visitor):
    File "/usr/lib/python2.7/dist-packages/docutils/nodes.py", line 173, in walkabout
      if child.walkabout(visitor):
    File "/usr/lib/python2.7/dist-packages/docutils/nodes.py", line 173, in walkabout
      if child.walkabout(visitor):
    File "/usr/lib/python2.7/dist-packages/docutils/nodes.py", line 165, in walkabout
      visitor.dispatch_visit(self)
    File "/usr/lib/python2.7/dist-packages/docutils/nodes.py", line 1604, in dispatch_visit
      return method(node)
    File "/usr/lib/python2.7/dist-packages/docutils/writers/html4css1/__init__.py", line 957, in visit_footnote_reference
      href = '#' + node['refid']
    File "/usr/lib/python2.7/dist-packages/docutils/nodes.py", line 534, in __getitem__
      return self.attributes[key]
  KeyError: 'refid'

  Status in    PPA    / Ubuntu:

   - Raring:   Broken / Broken
   - Quantal:  Fixed  / Broken
   - Precise:  Fixed  / Broken
   - Oneiric:  Broken / Broken

  We will need to put some work into backporting the Upstream fix to PPA
  and Ubuntu to get Spanish translations (and others) in.

  Upstream bug: https://bitbucket.org/birkenfeld/sphinx/issue/955/cant-
  build-html-with-footnotes-when-using

To manage notifications about this bug go to:
https://bugs.launchpad.net/sphinx/+bug/1068493/+subscriptions


References