RuntimeError: LaTeX was not able to process the following string

2,421 views
Skip to first unread message

Coca Mihai

unread,
May 14, 2015, 12:13:27 PM5/14/15
to bob-...@googlegroups.com
Hi,

I tried to evaluate the DEV and EVAL but i got this error :

RuntimeError: LaTeX was not able to process the following string:
'user_dir/ubm_gmm/scores/nonorm/scores-dev'

I need some help if possible. Thanks.

Manuel Günther

unread,
May 14, 2015, 12:36:25 PM5/14/15
to bob-...@googlegroups.com, coca....@gmail.com
First of all, it would be nice if you could provide the command line, which you were using. This would improve our chances to help you a lot.

What I assume is that you are using the directory as a label, which is interpreted by LaTeX. Unfortunately, LaTeX does not like _ characters in strings.

Manuel

Coca Mihai

unread,
May 14, 2015, 1:53:09 PM5/14/15
to bob-...@googlegroups.com, coca....@gmail.com
Hi ... thank you for your quickly response.

The command that i executed is :

mihai@mihai-PC:~/bob.spear-1.1.8$ ./bin/evaluate.py -d user_dir/ubm_gmm/scores/nonorm/scores-dev -e user_dir/ubm_gmm/scores/nonorm/scores-eval -c EER -D DET.pdf -x

...and the output is :

The EER of the development set of 'user_dir/ubm_gmm/scores/nonorm/scores-dev' is 2.000%
The HTER of the evaluation set of 'user_dir/ubm_gmm/scores/nonorm/scores-dev' is 1.648%
Calibration performance on development set of 'user_dir/ubm_gmm/scores/nonorm/scores-dev' is Cllr 0.76831 and minCllr 0.08580 
Calibration performance on evaluation set of 'user_dir/ubm_gmm/scores/nonorm/scores-dev' is Cllr 0.81069 and minCllr 0.05997
Traceback (most recent call last):
  File "./bin/evaluate.py", line 27, in <module>
    sys.exit(facereclib.script.evaluate.main())
  File "/home/mihai/bob.spear-1.1.8/eggs/facereclib-1.2.3-py2.7.egg/facereclib/script/evaluate.py", line 246, in main
    pdf.savefig(_plot_det(dets_dev, colors, args.legends if args.legends else args.dev_files, "DET plot for development set"))
  File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_pdf.py", line 2144, in savefig
    figure.savefig(self, format='pdf', **kwargs)
  File "/usr/lib/pymodules/python2.7/matplotlib/figure.py", line 1185, in savefig
    self.canvas.print_figure(*args, **kwargs)
  File "/usr/lib/pymodules/python2.7/matplotlib/backend_bases.py", line 2021, in print_figure
    **kwargs)
  File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_pdf.py", line 2186, in print_pdf
    self.figure.draw(renderer)
  File "/usr/lib/pymodules/python2.7/matplotlib/artist.py", line 55, in draw_wrapper
    draw(artist, renderer, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/matplotlib/figure.py", line 898, in draw
    func(*args)
  File "/usr/lib/pymodules/python2.7/matplotlib/artist.py", line 55, in draw_wrapper
    draw(artist, renderer, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/matplotlib/axes.py", line 1997, in draw
    a.draw(renderer)
  File "/usr/lib/pymodules/python2.7/matplotlib/artist.py", line 55, in draw_wrapper
    draw(artist, renderer, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/matplotlib/legend.py", line 445, in draw
    bbox = self._legend_box.get_window_extent(renderer)
  File "/usr/lib/pymodules/python2.7/matplotlib/offsetbox.py", line 224, in get_window_extent
    w, h, xd, yd, offsets = self.get_extent_offsets(renderer)
  File "/usr/lib/pymodules/python2.7/matplotlib/offsetbox.py", line 316, in get_extent_offsets
    whd_list = [c.get_extent(renderer) for c in self.get_visible_children()]
  File "/usr/lib/pymodules/python2.7/matplotlib/offsetbox.py", line 217, in get_extent
    w, h, xd, yd, offsets = self.get_extent_offsets(renderer)
  File "/usr/lib/pymodules/python2.7/matplotlib/offsetbox.py", line 376, in get_extent_offsets
    whd_list = [c.get_extent(renderer) for c in self.get_visible_children()]
  File "/usr/lib/pymodules/python2.7/matplotlib/offsetbox.py", line 217, in get_extent
    w, h, xd, yd, offsets = self.get_extent_offsets(renderer)
  File "/usr/lib/pymodules/python2.7/matplotlib/offsetbox.py", line 316, in get_extent_offsets
    whd_list = [c.get_extent(renderer) for c in self.get_visible_children()]
  File "/usr/lib/pymodules/python2.7/matplotlib/offsetbox.py", line 217, in get_extent
    w, h, xd, yd, offsets = self.get_extent_offsets(renderer)
  File "/usr/lib/pymodules/python2.7/matplotlib/offsetbox.py", line 376, in get_extent_offsets
    whd_list = [c.get_extent(renderer) for c in self.get_visible_children()]
  File "/usr/lib/pymodules/python2.7/matplotlib/offsetbox.py", line 725, in get_extent
    bbox, info = self._text._get_layout(renderer)
  File "/usr/lib/pymodules/python2.7/matplotlib/text.py", line 309, in _get_layout
    ismath=ismath)
  File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_pdf.py", line 1796, in get_text_width_height_descent
    renderer=self)
  File "/usr/lib/pymodules/python2.7/matplotlib/texmanager.py", line 606, in get_text_width_height_descent
    dvifile = self.make_dvi(tex, fontsize)
  File "/usr/lib/pymodules/python2.7/matplotlib/texmanager.py", line 371, in make_dvi
    string:\n%s\nHere is the full report generated by LaTeX: \n\n'% repr(tex)) + report)
RuntimeError: LaTeX was not able to process the following string:
'user_dir/ubm_gmm/scores/nonorm/scores-dev'
Here is the full report generated by LaTeX: 

This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
entering extended mode
(./082e07bb73d02c009e16f9fc5ba22162.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, loaded.
(/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size10.clo))
(/usr/share/texmf-texlive/tex/latex/type1cm/type1cm.sty)
(/usr/share/texmf-texlive/tex/latex/psnfss/helvet.sty
(/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty))
(/usr/share/texmf-texlive/tex/latex/psnfss/courier.sty)
(/usr/share/texmf-texlive/tex/latex/base/textcomp.sty
(/usr/share/texmf-texlive/tex/latex/base/ts1enc.def))
(/usr/share/texmf-texlive/tex/latex/geometry/geometry.sty
(/usr/share/texmf-texlive/tex/generic/oberdiek/ifpdf.sty)
(/usr/share/texmf-texlive/tex/generic/oberdiek/ifvtex.sty)

Package geometry Warning: Over-specification in `h'-direction.
    `width' (5058.9pt) is ignored.


Package geometry Warning: Over-specification in `v'-direction.
    `height' (5058.9pt) is ignored.

)
No file 082e07bb73d02c009e16f9fc5ba22162.aux.
(/usr/share/texmf-texlive/tex/latex/base/ts1cmr.fd)
(/usr/share/texmf-texlive/tex/latex/psnfss/ot1pnc.fd)
*geometry auto-detecting driver*
*geometry detected driver: dvips*
! Missing $ inserted.
<inserted text> 
                $
l.12 ...size{21.600000}{27.000000}{\rmfamily user_
                                                  dir/ubm_gmm/scores/nonorm/...

! Extra }, or forgotten $.
l.12 ...user_dir/ubm_gmm/scores/nonorm/scores-dev}
                                                  
! Missing $ inserted.
<inserted text> 
                $
l.13 \end{document}
                   
[1] (./082e07bb73d02c009e16f9fc5ba22162.aux) )
(\end occurred inside a group at level 1)

### simple group (level 1) entered at line 12 ({)
### bottom level
(see the transcript file for additional information)
Output written on 082e07bb73d02c009e16f9fc5ba22162.dvi (1 page, 448 bytes).
Transcript written on 082e07bb73d02c009e16f9fc5ba22162.log.




Manuel Günther

unread,
May 14, 2015, 2:09:47 PM5/14/15
to bob-...@googlegroups.com, coca....@gmail.com
Yes, as I assumed, the script tries to use the directory as a legend. This fails as you have '_' in the directory name.

However, you can use the --legend option of the script to override this behavior.

Best wishes
Manuel
Reply all
Reply to author
Forward
0 new messages