Bug 706032 - traceback when using newlatex writer
Summary: traceback when using newlatex writer
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: python-docutils
Version: 14
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Toshio Ernie Kuratomi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-19 09:06 UTC by Pierre Ossman
Modified: 2012-08-16 12:00 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-16 12:00:17 UTC
Type: ---


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.