FS#22179 - python-matplotlib can't find fonts
Attached to Project:
Community Packages
Opened by David H. Bronke (whitelynx) - Tuesday, 21 December 2010, 19:40 GMT
Last edited by Ionut Biru (wonder) - Tuesday, 21 December 2010, 19:55 GMT
Opened by David H. Bronke (whitelynx) - Tuesday, 21 December 2010, 19:40 GMT
Last edited by Ionut Biru (wonder) - Tuesday, 21 December 2010, 19:55 GMT
|
Details
Description:
The version of python-matplotlib in Community can't find its fonts; it seems to be related to the upgrade to Python 2.7, since it's trying to look in /usr/lib/python2.6 for its data. This still happens after a full `pacman -Suy`. Additional info: * package versions: * extra/python2 2.7-3 * community/python-matplotlib 1.0.0-4 Steps to reproduce: * Install python-matplotlib * Open python2 terminal * Create a plot and attempt to show it: import matplotlib.pyplot as plt import numpy as np t = np.arange(-1.0, 1.0, 0.02) plt.plot(t, np.cos((t - 1) * 3.14159268 / 4)) plt.show() * Close the resulting window, and a traceback shows in the Python terminal: (3 times in a row) Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/matplotlib/backends/backend_gtk.py", line 393, in expose_event self._render_figure(self._pixmap, w, h) File "/usr/lib/python2.7/site-packages/matplotlib/backends/backend_gtkagg.py", line 75, in _render_figure FigureCanvasAgg.draw(self) File "/usr/lib/python2.7/site-packages/matplotlib/backends/backend_agg.py", line 394, in draw self.figure.draw(self.renderer) File "/usr/lib/python2.7/site-packages/matplotlib/artist.py", line 55, in draw_wrapper draw(artist, renderer, *args, **kwargs) File "/usr/lib/python2.7/site-packages/matplotlib/figure.py", line 798, in draw func(*args) File "/usr/lib/python2.7/site-packages/matplotlib/artist.py", line 55, in draw_wrapper draw(artist, renderer, *args, **kwargs) File "/usr/lib/python2.7/site-packages/matplotlib/axes.py", line 1934, in draw a.draw(renderer) File "/usr/lib/python2.7/site-packages/matplotlib/artist.py", line 55, in draw_wrapper draw(artist, renderer, *args, **kwargs) File "/usr/lib/python2.7/site-packages/matplotlib/axis.py", line 1017, in draw tick.draw(renderer) File "/usr/lib/python2.7/site-packages/matplotlib/artist.py", line 55, in draw_wrapper draw(artist, renderer, *args, **kwargs) File "/usr/lib/python2.7/site-packages/matplotlib/axis.py", line 234, in draw self.label1.draw(renderer) File "/usr/lib/python2.7/site-packages/matplotlib/artist.py", line 55, in draw_wrapper draw(artist, renderer, *args, **kwargs) File "/usr/lib/python2.7/site-packages/matplotlib/text.py", line 524, in draw bbox, info = self._get_layout(renderer) File "/usr/lib/python2.7/site-packages/matplotlib/text.py", line 298, in _get_layout ismath=False) File "/usr/lib/python2.7/site-packages/matplotlib/backends/backend_agg.py", line 180, in get_text_width_height_descent font = self._get_agg_font(prop) File "/usr/lib/python2.7/site-packages/matplotlib/backends/backend_agg.py", line 221, in _get_agg_font font = FT2Font(str(fname)) RuntimeError: Could not open facefile /usr/lib/python2.6/site-packages/matplotlib/mpl-data/fonts/ttf/Vera.ttf; Cannot_Open_Resource |
This task depends upon
Closed by Ionut Biru (wonder)
Tuesday, 21 December 2010, 19:55 GMT
Reason for closing: Duplicate
Additional comments about closing: FS#21340
Tuesday, 21 December 2010, 19:55 GMT
Reason for closing: Duplicate
Additional comments about closing:
FS#22128FS#21702FS#21503FS#21340