|
From: Steve C. <ste...@ya...> - 2004-11-09 09:31:15
|
On Tue, 2004-11-09 at 12:24,
mat...@li... wrote:
> Hi,
>
> I keep getting this error when my matplotlib gtk app starts up:
>
> Could not load matplotlib icon: Couldn't recognize the image file
> format
> for file 'C:\Python23\share\matplotlib\matplotlib.svg'
>
> I don't *think* it's my fault. It doesn't seem to do any harm but it's
> untidy all the same.
>
> Any suggestions?
>
> Cheers,
> Matthew.
It looks like the problem is happening because your version of GTK does
include a GDK pixbuf loader for SVG files.
You can disable the message by editing the installed backend_gtk.py
(or editing the source file
matplotlib\lib\matplotlib\backends\backend_gtk.py
and reinstalling)
and changing
"verbose.report_error('Could not load matplotlib icon: %s' %
sys.exc_info()[1])"
to
"verbose.report('Could not load matplotlib icon: %s' %
sys.exc_info()[1])"
or just "pass".
The fix has also been applied to CVS.
Steve
|