Simple compile crashes with key error.

Bug #921444 reported by David Schryer
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Rubber
Fix Released
Medium
Unassigned

Bug Description

Input file:

\documentclass{scrreprt}
\pdfoutput=1

\begin{document}
foo
\end{document}

Processing command:
rubber -d minimal.tex

Traceback:

Traceback (most recent call last):
  File "/usr/local/bin/rubber", line 4, in <module>
    sys.exit(Main()(sys.argv[1:]))
  File "/usr/local/lib/python2.7/dist-packages/rubber/cmdline.py", line 319, in __call__
    return self.main(cmdline)
  File "/usr/local/lib/python2.7/dist-packages/rubber/cmdline.py", line 247, in main
    env.main.parse()
  File "/usr/local/lib/python2.7/dist-packages/rubber/converters/latex.py", line 711, in parse
    self.process(self.source())
  File "/usr/local/lib/python2.7/dist-packages/rubber/converters/latex.py", line 764, in process
    self.parse_file(file)
  File "/usr/local/lib/python2.7/dist-packages/rubber/converters/latex.py", line 742, in parse_file
    function(self.vars, *args)
  File "/usr/local/lib/python2.7/dist-packages/rubber/converters/latex.py", line 981, in h_pdfoutput
    if 'pdftex' in self.modules:
  File "/usr/local/lib/python2.7/dist-packages/rubber/converters/latex.py", line 40, in __getitem__
    return self.objects[name]
KeyError: 0

Tags: keyerror

Related branches

Revision history for this message
David Schryer (d-w-s) wrote :
Revision history for this message
Eduardo Mucelli Rezende Oliveira (eduardo-mucelli) wrote :

This also happens to me. I am using Debain 7, python 2.7.6 and rubber 1.1.

Revision history for this message
Eduardo Mucelli Rezende Oliveira (eduardo-mucelli) wrote :

The problem here is the rubber cannot deal with the "\pdfoutput=1", after removing that it stopped crashing.

Revision history for this message
Sebastian Kapfer (caci) wrote :

A fix has been committed to the trunk branch. Please test!

Changed in rubber:
importance: Undecided → Medium
milestone: none → 1.2
status: New → Fix Committed
Sebastian Kapfer (caci)
Changed in rubber:
milestone: 1.2 → none
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.