I can build 'html' but when I try to build 'pdf' I get the following
exception.
[ERROR] pdfbuilder.py:120 global name '_' is not defined
Traceback (most recent call last):
File
"c:\python26\lib\site-packages\rst2pdf-0.15-py2.6.egg\rst2pdf\pdfbuilder.py",
line 112, in write
appendices=opts.get('pdf_appendices', self.config.pdf_appendices)
or [])
File
"c:\python26\lib\site-packages\rst2pdf-0.15-py2.6.egg\rst2pdf\pdfbuilder.py",
line 197, in assemble_doctree
index_nodes=genindex_nodes(genindex)
File
"c:\python26\lib\site-packages\rst2pdf-0.15-py2.6.egg\rst2pdf\pdfbuilder.py",
line 395, in genindex_nodes
indexlabel = _('Index')
NameError: global name '_' is not defined
Running Sphinx v1.0.3
Is a correction available for this?
I worked around it by changing it to "indexlabel = 'Index', but then I
get this exception:
[ERROR] pdfbuilder.py:120 BuildEnvironment instance has no attribute
'modules'
Traceback (most recent call last):
File
"c:\python26\lib\site-packages\rst2pdf-0.15-py2.6.egg\rst2pdf\pdfbuilder.py",
line 112, in write
appendices=opts.get('pdf_appendices', self.config.pdf_appendices)
or [])
File
"c:\python26\lib\site-packages\rst2pdf-0.15-py2.6.egg\rst2pdf\pdfbuilder.py",
line 203, in assemble_doctree
if self.config.pdf_use_modindex and self.env.modules:
AttributeError: BuildEnvironment instance has no attribute 'modules'
I looked through the changes for 0.6.5 to 1.0.3 but don't see anything
in relation to modules - rst2pdf with 0.6.5 worked for me, so I guess I
have just overlooked a change I need to make to my setup.
--
You received this message because you are subscribed to the Google Groups
"sphinx-dev" group.
To post to this group, send email to sphinx-...@googlegroups.com.
To unsubscribe from this group, send email to
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/sphinx-dev?hl=en.