rst2pdf and sphinx

181 views
Skip to first unread message

Luca Delucchi

unread,
Sep 20, 2013, 7:23:56 AM9/20/13
to rst2pdf...@googlegroups.com
Hi everybody,
I'm trying to use rst2pdf to write a pdf file from a sphinx project but I obtain error like this

writing MyProject... [WARNING] basenodehandler.py:163 Unkn. node (self.elemdispatch): sphinx.addnodes.meta [near line UNKNOWN in file UNKNOWN]
[ERROR] pdfbuilder.py:129 xml parser error (; missing after entity/char reference) in paragraph beginning
'As with other OGC standards, t'
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/rst2pdf/pdfbuilder.py", line 126, in write
    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/rst2pdf/pdfbuilder.py", line 624, in translate
    compressed=self.compressed)
  File "/usr/lib/pymodules/python2.7/rst2pdf/createpdf.py", line 574, in createPdf
    elements = self.gen_elements(self.doctree)
  File "/usr/lib/pymodules/python2.7/rst2pdf/basenodehandler.py", line 250, in elemdispatch
    elements = self.getelements(client, node, style)
  File "/usr/lib/pymodules/python2.7/rst2pdf/basenodehandler.py", line 225, in getelements
    elements = self.gather_elements(client, node, style)
  File "/usr/lib/pymodules/python2.7/rst2pdf/basenodehandler.py", line 205, in gather_elements
    return client.gather_elements(node, style=style)
  File "/usr/lib/pymodules/python2.7/rst2pdf/createpdf.py", line 409, in gather_elements
    r.extend(self.gen_elements(n, style=style))
  File "/usr/lib/pymodules/python2.7/rst2pdf/basenodehandler.py", line 250, in elemdispatch
    elements = self.getelements(client, node, style)
  File "/usr/lib/pymodules/python2.7/rst2pdf/basenodehandler.py", line 225, in getelements
    elements = self.gather_elements(client, node, style)
  File "/usr/lib/pymodules/python2.7/rst2pdf/basenodehandler.py", line 205, in gather_elements
    return client.gather_elements(node, style=style)
  File "/usr/lib/pymodules/python2.7/rst2pdf/createpdf.py", line 409, in gather_elements
    r.extend(self.gen_elements(n, style=style))
  File "/usr/lib/pymodules/python2.7/rst2pdf/basenodehandler.py", line 250, in elemdispatch
    elements = self.getelements(client, node, style)
  File "/usr/lib/pymodules/python2.7/rst2pdf/basenodehandler.py", line 225, in getelements
    elements = self.gather_elements(client, node, style)
  File "/usr/lib/pymodules/python2.7/rst2pdf/basenodehandler.py", line 205, in gather_elements
    return client.gather_elements(node, style=style)
  File "/usr/lib/pymodules/python2.7/rst2pdf/createpdf.py", line 409, in gather_elements
    r.extend(self.gen_elements(n, style=style))
  File "/usr/lib/pymodules/python2.7/rst2pdf/basenodehandler.py", line 250, in elemdispatch
    elements = self.getelements(client, node, style)
  File "/usr/lib/pymodules/python2.7/rst2pdf/basenodehandler.py", line 225, in getelements
    elements = self.gather_elements(client, node, style)
  File "/usr/lib/pymodules/python2.7/rst2pdf/genelements.py", line 429, in gather_elements
    elements = client.gather_elements(node)
  File "/usr/lib/pymodules/python2.7/rst2pdf/createpdf.py", line 409, in gather_elements
    r.extend(self.gen_elements(n, style=style))
  File "/usr/lib/pymodules/python2.7/rst2pdf/basenodehandler.py", line 250, in elemdispatch
    elements = self.getelements(client, node, style)
  File "/usr/lib/pymodules/python2.7/rst2pdf/basenodehandler.py", line 225, in getelements
    elements = self.gather_elements(client, node, style)
  File "/usr/lib/pymodules/python2.7/rst2pdf/basenodehandler.py", line 205, in gather_elements
    return client.gather_elements(node, style=style)
  File "/usr/lib/pymodules/python2.7/rst2pdf/createpdf.py", line 409, in gather_elements
    r.extend(self.gen_elements(n, style=style))
  File "/usr/lib/pymodules/python2.7/rst2pdf/basenodehandler.py", line 250, in elemdispatch
    elements = self.getelements(client, node, style)
  File "/usr/lib/pymodules/python2.7/rst2pdf/basenodehandler.py", line 225, in getelements
    elements = self.gather_elements(client, node, style)
  File "/usr/lib/pymodules/python2.7/rst2pdf/basenodehandler.py", line 205, in gather_elements
    return client.gather_elements(node, style=style)
  File "/usr/lib/pymodules/python2.7/rst2pdf/createpdf.py", line 409, in gather_elements
    r.extend(self.gen_elements(n, style=style))
  File "/usr/lib/pymodules/python2.7/rst2pdf/basenodehandler.py", line 250, in elemdispatch
    elements = self.getelements(client, node, style)
  File "/usr/lib/pymodules/python2.7/rst2pdf/basenodehandler.py", line 225, in getelements
    elements = self.gather_elements(client, node, style)
  File "/usr/lib/pymodules/python2.7/rst2pdf/genelements.py", line 429, in gather_elements
    elements = client.gather_elements(node)
  File "/usr/lib/pymodules/python2.7/rst2pdf/createpdf.py", line 409, in gather_elements
    r.extend(self.gen_elements(n, style=style))
  File "/usr/lib/pymodules/python2.7/rst2pdf/basenodehandler.py", line 250, in elemdispatch
    elements = self.getelements(client, node, style)
  File "/usr/lib/pymodules/python2.7/rst2pdf/basenodehandler.py", line 225, in getelements
    elements = self.gather_elements(client, node, style)
  File "/usr/lib/pymodules/python2.7/rst2pdf/genelements.py", line 429, in gather_elements
    elements = client.gather_elements(node)
  File "/usr/lib/pymodules/python2.7/rst2pdf/createpdf.py", line 409, in gather_elements
    r.extend(self.gen_elements(n, style=style))
  File "/usr/lib/pymodules/python2.7/rst2pdf/basenodehandler.py", line 250, in elemdispatch
    elements = self.getelements(client, node, style)
  File "/usr/lib/pymodules/python2.7/rst2pdf/basenodehandler.py", line 225, in getelements
    elements = self.gather_elements(client, node, style)
  File "/usr/lib/pymodules/python2.7/rst2pdf/basenodehandler.py", line 205, in gather_elements
    return client.gather_elements(node, style=style)
  File "/usr/lib/pymodules/python2.7/rst2pdf/createpdf.py", line 409, in gather_elements
    r.extend(self.gen_elements(n, style=style))
  File "/usr/lib/pymodules/python2.7/rst2pdf/basenodehandler.py", line 250, in elemdispatch
    elements = self.getelements(client, node, style)
  File "/usr/lib/pymodules/python2.7/rst2pdf/basenodehandler.py", line 225, in getelements
    elements = self.gather_elements(client, node, style)
  File "/usr/lib/pymodules/python2.7/rst2pdf/basenodehandler.py", line 205, in gather_elements
    return client.gather_elements(node, style=style)
  File "/usr/lib/pymodules/python2.7/rst2pdf/createpdf.py", line 409, in gather_elements
    r.extend(self.gen_elements(n, style=style))
  File "/usr/lib/pymodules/python2.7/rst2pdf/basenodehandler.py", line 250, in elemdispatch
    elements = self.getelements(client, node, style)
  File "/usr/lib/pymodules/python2.7/rst2pdf/basenodehandler.py", line 225, in getelements
    elements = self.gather_elements(client, node, style)
  File "/usr/lib/pymodules/python2.7/rst2pdf/genelements.py", line 429, in gather_elements
    elements = client.gather_elements(node)
  File "/usr/lib/pymodules/python2.7/rst2pdf/createpdf.py", line 409, in gather_elements
    r.extend(self.gen_elements(n, style=style))
  File "/usr/lib/pymodules/python2.7/rst2pdf/basenodehandler.py", line 250, in elemdispatch
    elements = self.getelements(client, node, style)
  File "/usr/lib/pymodules/python2.7/rst2pdf/basenodehandler.py", line 225, in getelements
    elements = self.gather_elements(client, node, style)
  File "/usr/lib/pymodules/python2.7/rst2pdf/genelements.py", line 187, in gather_elements
    return [Paragraph(client.gen_pdftext(node), style)]
  File "/usr/lib/python2.7/dist-packages/reportlab/platypus/paragraph.py", line 827, in __init__
    self._setup(text, style, bulletText, frags, cleanBlockQuotedText)
  File "/usr/lib/python2.7/dist-packages/reportlab/platypus/paragraph.py", line 845, in _setup
    % (_parser.errors[0],text[:min(30,len(text))]))
ValueError: xml parser error (; missing after entity/char reference) in paragraph beginning
'As with other OGC standards, t'

The implied line seems to be this 

As with other OGC standards, there are numerous excellent examples of deployed WCS implementations.

Thanks
Luca 
Reply all
Reply to author
Forward
0 new messages