Hi,

I am using the "PyGTK All-in-one Installer 2.22.6" and it works
beautifully (thank you for making my life easier!) but when I bundle my
application with py2exe the "jpeg" loader is no longer found.

At first I thought that I just needed to run gdk-pixbuf-query-loaders to
generate a new loaders config before bundling, but as I explored I found
no trace of the jpeg loader DLL and the resulting loaders config makes
no mention of jpeg (the config from the installer doesn't either).
In previous builds there was a "libpixbufloader-jpeg.dll", I guess this
is now built-in somehow? Why isn't it found once bundled then?

I thought it might need to be on the PATH or PYTHONPATH, so I tried
setting those variables before running my application EXE but this did
not help either (but this could just be py2exe overriding the environment)

Any hints would be much appreciated.
Cheers
Antoine

PS: the code:
loader = gtk.gdk.PixbufLoader("jpeg")
loader.write(img_data, len(img_data))
pixbuf = loader.get_pixbuf()
loader.close()

The strange thing is that it does not error out, pixbuf is just set to None.
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to