As I dug deeper, it appears libgdk_pixbuf_2.0.0.dylib expects 
a loaders.cache file to be present which then calls the 
appropriate libpixbufloader-png.so file.  All of this is 
under /usr/local/lib/gdk-pixbuf-2.0/2.10.0 on my machine.  I could 
bundle that directory, but the loaders.cache would need to be modified. 
 I also must change libgdk_pixbuf_2.0.0.dylib to point to the new 
bundled directory, but I'm not sure how to do that.

It looked like a mess.  Since I already had PIL loaded, I created 
a workaround:

> """
> osx pyinstaller gtk.gdk.pixbuf_new_from_file bug demo
> """
>
> import sys
> import gtk
> import PIL.Image as Image
> #image = gtk.gdk.pixbuf_new_from_file(sys.argv[1])
> pilimage = Image.open(sys.argv[1])
> image = gtk.gdk.pixbuf_new_from_data(pilimage.tostring(), 
gtk.gdk.COLORSPACE_RGB, True, 8, pilimage.size[0], pilimage.size[1], 
pilimage.size[0]*4)
> print type(image), dir(image)

This is *not* the proper fix.  gtk.gdk.pixbuf_new_from_file ought to work 
on OS X.  If anyone knows how to modify libraries and directories under 
pyinstaller to get it to work, I'd still like to hear about it.

Thanks,
Charles

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.

Reply via email to