pombreda / rst2pdf

Automatically exported from code.google.com/p/rst2pdf
Other
0 stars 0 forks source link

pdf_appendices split bug #393

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Using the latest hg Sphinx with r2417 of rst2pdf.

Attempting to build the doc tree for libLAS at http://hg.liblas.org/main ./docs

'make pdf'

ght community [ERROR] pdfbuilder.py:129 'tuple' object has no attribute 'lower'
Traceback (most recent call last):
  File "/Library/Python/2.6/site-packages/rst2pdf-0.17.dev_r2417-py2.6.egg/rst2pdf/pdfbuilder.py", line 121, in write
    appendices=opts.get('pdf_appendices', self.config.pdf_appendices) or [])
  File "/Library/Python/2.6/site-packages/rst2pdf-0.17.dev_r2417-py2.6.egg/rst2pdf/pdfbuilder.py", line 218, in assemble_doctree
    index_nodes=genindex_nodes(genindex)
  File "/Library/Python/2.6/site-packages/rst2pdf-0.17.dev_r2417-py2.6.egg/rst2pdf/pdfbuilder.py", line 396, in genindex_nodes
    output.append('`%s <#%s>`_'%(entryname,nodes.make_id(links[0])))
  File "/Library/Python/2.6/site-packages/docutils-0.6-py2.6.egg/docutils/nodes.py", line 1838, in make_id
    id = string.lower()
AttributeError: 'tuple' object has no attribute 'lower'

Original issue reported on code.google.com by hobu....@gmail.com on 17 Feb 2011 at 4:41

GoogleCodeExporter commented 9 years ago
I am really sorry but I can't figure out how to build that thing, and before I 
do that I can't test the doc generation.

On top of that, the pdf_appendices option is currently []. Was that so when it 
failed? If not, please post what was in it.

A test case would be the best thing you can provide, but if not, please post a 
step-by-step way to reproduce the bug, please.

Original comment by roberto.alsina on 21 Feb 2011 at 2:50

GoogleCodeExporter commented 9 years ago
Hi Roberto,

If you clone that repository and cd into the docs subdirectory under it, you 
should be able to build the pdf by issuing 'make pdf'.

Again, I was using the latest head of Sphinx in combination with the latest 
trunk of rst2pdf -- maybe too bleeding edge...

Original comment by hobu....@gmail.com on 21 Feb 2011 at 2:55

GoogleCodeExporter commented 9 years ago
I get lots and lots of these:

    las = ctypes.CDLL(lib_name)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 353, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: liblas_c.so: cannot open shared object file: No such file or directory

Original comment by roberto.alsina on 21 Feb 2011 at 3:01

GoogleCodeExporter commented 9 years ago
Ok, after installing blas I kinda get it running (gives only a few errors).

It doesn't fail with an error on the appendices but your cover looks really 
broken.

This is with sphinx 1.0.7 and rst2pdf from SVN.

A note: you will need to specify the base URL (remember PDFs can only contain 
absolute URLs)

Original comment by roberto.alsina on 21 Feb 2011 at 3:06

GoogleCodeExporter commented 9 years ago
Ok, it must be related to the latest Sphinx then.  I tested with the older 
sphinx and it works fine.  Thanks for digging into this.

Original comment by hobu....@gmail.com on 21 Feb 2011 at 3:17

GoogleCodeExporter commented 9 years ago
As far as I can see, 1.0.7 is the latest sphinx. Or you mean sphinx from trunk?

I don't track pre-release sphinx because it tends to break rst2pdf all the time 
:-(

Original comment by roberto.alsina on 21 Feb 2011 at 10:23

GoogleCodeExporter commented 9 years ago
This issue now breaks rst2pdf with the latest version of Sphinx (1.1.2).

Original comment by schadenf...@gmail.com on 11 Nov 2011 at 6:26