Bug 706032

Summary: traceback when using newlatex writer
Product: [Fedora] Fedora Reporter: Pierre Ossman <ossman>
Component: python-docutilsAssignee: Toshio Ernie Kuratomi <a.badger>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 14CC: a.badger
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-16 12:00:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Pierre Ossman 2011-05-19 09:06:43 UTC
I've been getting this traceback on a document that previously rendered just fine:

Traceback (most recent call last):
  File "/usr/bin/rst2newlatex", line 25, in <module>
    publish_cmdline(writer_name='newlatex2e', description=description)
  File "/usr/lib/python2.7/site-packages/docutils/core.py", line 331, in publish_cmdline
    config_section=config_section, enable_exit_status=enable_exit_status)
  File "/usr/lib/python2.7/site-packages/docutils/core.py", line 205, in publish
    output = self.writer.write(self.document, self.destination)
  File "/usr/lib/python2.7/site-packages/docutils/writers/__init__.py", line 76, in write
    self.translate()
  File "/usr/lib/python2.7/site-packages/docutils/writers/newlatex2e/__init__.py", line 92, in translate
    self.document.walkabout(visitor)
  File "/usr/lib/python2.7/site-packages/docutils/nodes.py", line 173, in walkabout
    if child.walkabout(visitor):
  File "/usr/lib/python2.7/site-packages/docutils/nodes.py", line 173, in walkabout
    if child.walkabout(visitor):
  File "/usr/lib/python2.7/site-packages/docutils/nodes.py", line 173, in walkabout
    if child.walkabout(visitor):
  File "/usr/lib/python2.7/site-packages/docutils/nodes.py", line 173, in walkabout
    if child.walkabout(visitor):
  File "/usr/lib/python2.7/site-packages/docutils/nodes.py", line 173, in walkabout
    if child.walkabout(visitor):
  File "/usr/lib/python2.7/site-packages/docutils/nodes.py", line 165, in walkabout
    visitor.dispatch_visit(self)
  File "/usr/lib/python2.7/site-packages/docutils/writers/newlatex2e/__init__.py", line 716, in dispatch_visit
    getattr(self, 'before_' + node.__class__.__name__)(node)
  File "/usr/lib/python2.7/site-packages/docutils/writers/newlatex2e/__init__.py", line 404, in before_generated
    node[0] = node[0].strip()
  File "/usr/lib/python2.7/site-packages/docutils/nodes.py", line 548, in __setitem__
    self.setup_child(item)
  File "/usr/lib/python2.7/site-packages/docutils/nodes.py", line 92, in setup_child
    child.parent = self
AttributeError: 'unicode' object has no attribute 'parent'

Document in question here:

http://tigervnc.svn.sourceforge.net/viewvc/tigervnc/rfbproto/rfbproto.rst

Comment 1 Toshio Ernie Kuratomi 2011-05-19 23:40:23 UTC
Duplicated the failure.  What is the version of docutils that you used previously that worked?

Comment 2 Toshio Ernie Kuratomi 2011-05-20 00:12:27 UTC
I just looked at the upstream tree and found that the latex2e/newlatex writer has been removed from the next version of docutils due to having no maintainer upstream.  what's different between the rst2latex and rst2newlatex commands?  Will rst2latex do a satisfactory job for you?

Comment 3 Pierre Ossman 2011-05-20 08:57:12 UTC
It was ages since I used this tool, so it was probably whatever docutils was in F13, or possibly even F12.

rst2latex produced horrible output back then. It might be better now, but unfortunately it also seems broken as it produces latex that pdflatex refuses to use.

Comment 4 Fedora End Of Life 2012-08-16 12:00:19 UTC
This message is a notice that Fedora 14 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 14. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained.  At this time, all open bugs with a Fedora 'version'
of '14' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this 
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen 
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we were unable to fix it before Fedora 14 reached end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" (top right of this page) and open it against that 
version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping