FS#22128 - [python-matplotlib] does not draw images

Attached to Project: Community Packages
Opened by Timur (teop) - Friday, 17 December 2010, 12:50 GMT
Last edited by Ionut Biru (wonder) - Friday, 17 December 2010, 14:49 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Stefan Husmann (stefanhusmann)
Stéphane Gaudreault (stephane)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Matplotlib does not draw images.

Additional info:
* package version(s)
python-matplotlib 1.0.0-4

* config and/or log files etc.
I have the following traceback each time I try to plot a graphic using matplotlib.
Traceback (most recent call last):
File "kaban_interpolate.py", line 60, in <module>
plt.savefig('scatter1.png')
File "/usr/lib/python2.7/site-packages/matplotlib/pyplot.py", line
363, in savefig
return fig.savefig(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/matplotlib/figure.py", line
1084, in savefig
self.canvas.print_figure(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/matplotlib/backend_bases.py",
line 1886, in print_figure
**kwargs)
File "/usr/lib/python2.7/site-packages/matplotlib/backends/backend_gtkagg.py",
line 103, in print_png
return agg.print_png(filename, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/matplotlib/backends/backend_agg.py",
line 438, in print_png
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

Steps to reproduce:
Any attempt to use show() or savefig() functions from matplotlib.pyplot.

Looks like some useful information can be found in the this
discussion(mostly in the end of it):
http://blog.gmane.org/gmane.comp.python.matplotlib.general/month=20101001
This task depends upon

Closed by  Ionut Biru (wonder)
Friday, 17 December 2010, 14:49 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#21340 
Comment by Timur (teop) - Friday, 17 December 2010, 13:00 GMT
Well, after some looking in the traceback I finally see that it says "/usr/lib/python2.6" in last message which may be the case.
Comment by Ionut Biru (wonder) - Friday, 17 December 2010, 13:00 GMT
looking at the last error seems that is a duplicate of  FS#21340 .

can you check that?
Comment by Timur (teop) - Friday, 17 December 2010, 13:05 GMT
Yes, it is duplicate. I am sorry to miss it.
I can not check solution until I get home, but it looks like this bug can be closed.

Loading...