[pygtk] PyGTK All-in-one 2.22.6: jpeg pixbuf loader location?

Dieter Verfaillie dieterv at optionexplicit.be
Mon Mar 28 16:01:47 WST 2011


On 27/03/2011 21:13, Antoine Martin wrote:
> 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.

I've attached an example that works (for me). Put the 3 files into some
directory and run 'setup.py py2exe'. Then execute dist/bin/test.exe

mvg,
Dieter


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: setup.py
Type: application/force-download
Size: 474 bytes
Desc: not available
URL: <http://www.daa.com.au/pipermail/pygtk/attachments/20110328/92a59e27/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.jpg
Type: image/jpeg
Size: 892 bytes
Desc: not available
URL: <http://www.daa.com.au/pipermail/pygtk/attachments/20110328/92a59e27/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.py
Type: application/force-download
Size: 742 bytes
Desc: not available
URL: <http://www.daa.com.au/pipermail/pygtk/attachments/20110328/92a59e27/attachment-0001.bin>


More information about the pygtk mailing list