[Python-modules-team] Bug#548874: matplotlib: figure() call fails. GTK seems not to recognise filetype of a .svg file

Jonas wayne.stoerts at googlemail.com
Tue Sep 29 10:28:26 UTC 2009


Package: matplotlib
Version: 0.99.0-1
Severity: important


figure() fails with the following backtrace:
(used from within ipython, but the same error occurs when using matplotlib inside
normal python scripts)


           
In [1]: figure()
---------------------------------------------------------------------------
GError                                    Traceback (most recent call last)

/home/jonas/<ipython console> in <module>()

/usr/lib/pymodules/python2.5/matplotlib/pyplot.pyc in figure(num, figsize, dpi, facecolor, edgecolor, frameon, FigureClass, **kwargs)
    252                                              frameon=frameon,
    253                                              FigureClass=FigureClass,
--> 254                                              **kwargs)
    255
    256         # make this figure current on button press event

/usr/lib/pymodules/python2.5/matplotlib/backends/backend_gtkagg.pyc in new_figure_manager(num, *args, **kwargs)
     42     thisFig = FigureClass(*args, **kwargs)
     43     canvas = FigureCanvasGTKAgg(thisFig)
---> 44     return FigureManagerGTKAgg(canvas, num)
     45     if DEBUG: print 'backend_gtkagg.new_figure_manager done'
     46

/usr/lib/pymodules/python2.5/matplotlib/backends/backend_gtk.pyc in __init__(self, canvas, num)
    441         self.window.set_title("Figure %d" % num)
    442         if (window_icon):
--> 443             self.window.set_icon_from_file(window_icon)
    444
    445         self.vbox = gtk.VBox()

GError: Couldn't recognize the image file format for file '/usr/share/matplotlib/mpl-data/images/matplotlib.svg'



jonas at deepthought:~$ file /usr/share/matplotlib/mpl-data/images/matplotlib.svg
/usr/share/matplotlib/mpl-data/images/matplotlib.svg: SVG Scalable Vector Graphics image



-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

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





More information about the Python-modules-team mailing list