I've read through a previous thread on this list about SVG support
under Windows[1], but it hasn't shed any light on my problem.
Under Windows (XP), when I try to load SVG graphics in my PyGTK
(+Twisted) app, eg. using self.root.set_icon_from_file(logo_path), I
get:
Traceback (most recent call last):
Failure: glib.GError: Couldn't recognize the image file format
for file 'C:\path\to\logo.svg'
I have GTK+-2.20.0 installed in C:\GTK, and I have unzipped the
following packages[2] into C:\GTK:
* svg-gdk-pixbuf-loader_2.32.1-1_win32.zip
* svg-gtk-engine_2.32.1-1_win32.zip
* librsvg_2.32.1-1_win32.zip
* libcroco_0.6.2-1_win32.zip
* libgsf_1.14.17-1_win32.zip
C:\GTK\etc\gtk-2.0\gdk-pixbuf.loaders only contains comments.
Running "gdk-pixbuf-query-loaders.exe svg_loader" gives:
----
C:\GTK\bin>gdk-pixbuf-query-loaders.exe svg_loader
# GdkPixbuf Image Loader Modules file
# Automatically generated file, do not edit
# Created by gdk-pixbuf-query-loaders.exe from gtk+-2.20.0
#
g_module_open() failed for C:\GTK\bin\svg_loader:
`C:\GTK\bin\svg_loader.dll': The specified module could not be found.
----
There is, in fact, no "C:\GTK\bin\svg_loader.dll". Should I have one?
If so, where do I get it? Otherwise, what can I do to fix this?
[1] http://www.daa.com.au/pipermail/pygtk/2010-April/018519.html
[2] ...from http://ftp.gnome.org/pub/GNOME/binaries/win32/
Cheers,
Jason
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/