Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 462252 - dev-python/matplotlib latex rendering requires type1cm.sty
Summary: dev-python/matplotlib latex rendering requires type1cm.sty
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-18 22:29 UTC by Simon Nickau
Modified: 2013-12-12 14:34 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Nickau 2013-03-18 22:29:29 UTC
Text rendering with latex in matplotlib requires type1cm.sty, found in dev-texlive/texlive-latexextra

This should be a dependency for the latex USE flag.


Traceback (most recent call last):
  File "/home/simon/project/scripts/chi/scr_plotall.py", line 49, in <module>
    write_plot(fig_tot,'chi_plot_tot.pdf')
  File "/home/simon/project/scripts/chi/scr_plotall.py", line 30, in write_plot
    fig.savefig(fname)
  File "/usr/lib64/python2.7/site-packages/matplotlib/figure.py", line 1185, in savefig
    self.canvas.print_figure(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/matplotlib/backend_bases.py", line 2021, in print_figure
    **kwargs)
  File "/usr/lib64/python2.7/site-packages/matplotlib/backend_bases.py", line 1789, in print_pdf
    return pdf.print_pdf(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/matplotlib/backends/backend_pdf.py", line 2186, in print_pdf
    self.figure.draw(renderer)
  File "/usr/lib64/python2.7/site-packages/matplotlib/artist.py", line 55, in draw_wrapper
    draw(artist, renderer, *args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/matplotlib/figure.py", line 898, in draw
    func(*args)
  File "/usr/lib64/python2.7/site-packages/matplotlib/artist.py", line 55, in draw_wrapper
    draw(artist, renderer, *args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/matplotlib/axes.py", line 1997, in draw
    a.draw(renderer)
  File "/usr/lib64/python2.7/site-packages/matplotlib/artist.py", line 55, in draw_wrapper
    draw(artist, renderer, *args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/matplotlib/axis.py", line 1042, in draw
    ticklabelBoxes, ticklabelBoxes2 = self._get_tick_bboxes(ticks_to_draw, renderer)
  File "/usr/lib64/python2.7/site-packages/matplotlib/axis.py", line 993, in _get_tick_bboxes
    extent = tick.label1.get_window_extent(renderer)
  File "/usr/lib64/python2.7/site-packages/matplotlib/text.py", line 747, in get_window_extent
    bbox, info = self._get_layout(self._renderer)
  File "/usr/lib64/python2.7/site-packages/matplotlib/text.py", line 300, in _get_layout
    ismath=False)
  File "/usr/lib64/python2.7/site-packages/matplotlib/backends/backend_pdf.py", line 1796, in get_text_width_height_descent
    renderer=self)
  File "/usr/lib64/python2.7/site-packages/matplotlib/texmanager.py", line 606, in get_text_width_height_descent
    dvifile = self.make_dvi(tex, fontsize)
  File "/usr/lib64/python2.7/site-packages/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:
'lp'
Here is the full report generated by LaTeX: 

This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011)
 restricted \write18 enabled.
entering extended mode
(./c5383a18897d5b8dd569836a32b6a2df.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, uk
english, usenglishmax, loaded.
(/usr/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/size10.clo))

! LaTeX Error: File `type1cm.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
! Emergency stop.
<read *> 
         
l.3 \renewcommand
                 {\rmdefault}{pnc}^^M
No pages of output.
Transcript written on c5383a18897d5b8dd569836a32b6a2df.log.
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2013-12-12 14:34:01 UTC
+*matplotlib-9999 (12 Dec 2013)
+*matplotlib-1.3.1 (12 Dec 2013)
+
+  12 Dec 2013; Justin Lecher <jlec@gentoo.org> +matplotlib-1.3.1.ebuild,
+  +matplotlib-9999.ebuild, +files/matplotlib-1.3.1-unbundle-agg.patch,
+  +files/matplotlib-1.3.1-unbundle-pycxx.patch, metadata.xml:
+  Version Bump, #490796; Add live ebuild; wrap commands with virtualx.eclass,
+  add missing PYTON_USEDEPs; add missing latex deps, #462252; set REQUIERED_USE
+  for test so that all backends are tested
+