[pygtk] PyGTK All-in-one 2.22.6: jpeg pixbuf loader location?
Antoine Martin
antoine at nagafix.co.uk
Mon Mar 28 21:38:37 WST 2011
On 03/28/2011 03:01 PM, Dieter Verfaillie wrote:
> 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
Your code correctly closes the loader before calling get_pixbuf() and my
code did not...
Since my code used to work with older versions of PyGTK on win32... and
still worked on Linux and OSX... I assumed it was correct, which it was not!
Many many thanks!
Antoine
>
> mvg,
> Dieter
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
More information about the pygtk
mailing list