Package: rubber
Version: 1.1+20100306-2
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The attached document triggers the following error:

$ ipdb /usr/bin/rubber bug.tex
> /usr/bin/rubber(2)<module>()
      1 #!/usr/bin/python
- ----> 2 import sys
      3 from rubber.cmdline import Main

ipdb> c
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/ipdb/__main__.py", line 95, in main
    pdb._runscript(mainpyfile)
  File "/usr/lib/python2.7/pdb.py", line 1233, in _runscript
    self.run(statement)
  File "/usr/lib/python2.7/bdb.py", line 400, in run
    exec cmd in globals, locals
  File "<string>", line 1, in <module>
  File "/usr/bin/rubber", line 2, in <module>
    import sys
  File "/usr/lib/pymodules/python2.7/rubber/cmdline.py", line 319, in __call__
    return self.main(cmdline)
  File "/usr/lib/pymodules/python2.7/rubber/cmdline.py", line 247, in main
    env.main.parse()
  File "/usr/lib/pymodules/python2.7/rubber/converters/latex.py", line 711, in 
parse
    self.process(self.source())
  File "/usr/lib/pymodules/python2.7/rubber/converters/latex.py", line 764, in 
process
    self.parse_file(file)
  File "/usr/lib/pymodules/python2.7/rubber/converters/latex.py", line 742, in 
parse_file
    function(self.vars, *args)
  File "/usr/lib/pymodules/python2.7/rubber/converters/latex.py", line 1035, in 
h_documentclass
    self.process(file)
  File "/usr/lib/pymodules/python2.7/rubber/converters/latex.py", line 764, in 
process
    self.parse_file(file)
  File "/usr/lib/pymodules/python2.7/rubber/converters/latex.py", line 742, in 
parse_file
    function(self.vars, *args)
TypeError: h_documentclass() takes exactly 4 arguments (3 given)
Uncaught exception. Entering post mortem debugging
Running 'cont' or 'step' will restart the program
> /usr/lib/pymodules/python2.7/rubber/converters/latex.py(742)parse_file()
    741                         self.vars['line'] = parser.pos_line
- --> 742                         function(self.vars, *args)
    743 

ipdb> pp self.vars
{'engine': 'TeX', 'graphics_suffixes': [], 'program': 'latex', 'target': 
'/home/sam/Documents/newtex/bug/bug', '_environment': <rubber.Environment 
instance at 0x23febd8>, 'src-specials': '', 'ext': '.tex', 'source': 
'/home/sam/Documents/newtex/bug/bug.tex', 'job': 'bug', 'paper': '', 
'arguments': [], 'base': '/home/sam/Documents/newtex/bug/bug', 'path': 
'/home/sam/Documents/newtex/bug', 'cwd': '/home/sam/Documents/CV/newtex/bug'}
ipdb> pp args
['article']
ipdb> pp parser.pos_line
3

I found this in the wild at 
<http://www.latextemplates.com/templates/curriculum_vitaes/2/cv_2.zip>.

- -- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (540, 'testing'), (530, 'unstable'), (520, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.10-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages rubber depends on:
ii  dpkg                1.16.10
ii  install-info        5.1.dfsg.1-4
ii  python              2.7.5-2
pn  python-support      <none>
ii  texlive-latex-base  2012.20120611-5

rubber recommends no packages.

Versions of packages rubber suggests:
ii  imagemagick  8:6.7.7.10-5
pn  sam2p        <none>
ii  transfig     1:3.2.5.d-3

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)

iEYEARECAAYFAlIBelIACgkQshl/216gEHiUdACeO5iy0nMp/9kdxbTOOiBuRG3c
HkwAoPXFSBSj5OO9qVHRLGiUX6a+N+2j
=XRSl
-----END PGP SIGNATURE-----

Attachment: bug.tar
Description: Unix tar archive

Reply via email to