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.

Attachment: setup.py
Description: application/force-download

<<attachment: test.jpg>>

Attachment: test.py
Description: application/force-download

_______________________________________________
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