[cairo] Rendering SVG with libRSVG,Python ...

Gerdus van Zyl gerdusvanzyl at gmail.com
Tue Sep 2 12:42:02 PDT 2008

I created that ctypes recipe since there is no binary for win32.
The python binding for librsvg is part of gnome-python-desktop and as
such you need
 a gtk build env which is pretty much impossible to get working. Plus
the build system uses codegen/magic/amuletyendor so I can't even hand
compile it. But if you have some linux development experience (I
don't) you might get it working that way.

On the ctypes problem from the ctypes list: Try putting all the dll
files in the same directory as the script and then using Dependency
Walker to ensure it's finding the dll dependencies in that directory.


On Tue, Sep 2, 2008 at 7:24 PM, Tim Grove <tim_grove at sil.org> wrote:
> In the recipe found at
> http://www.cairographics.org/cookbook/librsvgpython/, the intro reads:
> "Normally it's easier to use librsvg Python bindings from PyGTK, so you
> can import rsvg. When that's not an option, you may be able to bind just
> enough of it using the ctypes module to use it. Example for win32 follows."
> I've been having trouble getting the actual recipe for ctypes working
> (another story - visit the ctypes mailing list!!!), but I'm looking for
> advice on how to get my pc setup (Windows XP Pro) so that I can use
> "import rsvg" in my python program, as suggested by the intro. Can
> anyone help?
> Tim
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo

More information about the cairo mailing list