Hi,

I'm pretty new to pyinstaller.  I'm having trouble running my 
pyinstaller-bundled gtk application under os x.  I narrowed it to a very 
simple file::

> """
> osx pyinstaller gtk.gdk.pixbuf_new_from_file bug demo
> """
> 
> import sys
> import gtk
> image = gtk.gdk.pixbuf_new_from_file(sys.argv[1])
> print type(image), dir(image)

I called the file pixbuf.py.  When I run it outside of pyinstaller with a 
valid .png file as an argument (i.e. python pixbuf.py tmp.png), the type() 
statement prints <type 'gtk.gdk.Pixbuf'>, and the dir() statement returns 
the expected class methods of a gtk.gdk.Pixbuf.  When I bundle it with 
pyinstaller and execute the file in the dist directory (i.e. pyinstaller 
pixbuf.py; cd dist/pixbuf; ./pixbuf ../../tmp.png), the type() statement 
prints <class '__main__.__main__.g-option-context-error-quark'> and the 
dir() statement returns non-gtk.gdk.Pixbuf class methods.  That is, it does 
*not* return a Pixbuf.  I believe the g-option-context-error-quark is an 
error instance returned by gtk.gdk.pixbuf_new_from_file, but I'm not 
certain.

I successfully bundled with pyinstaller and ran the full application under 
Debian 6 and Windows 7.  The full application can be bundled and ran on OS 
X by commenting-out all the Pixbuf-related stuff--i.e. gtk menus, mouse, 
keyboard, refresh, etc. work.  I'm using OS X 10.6.8, python 2.7.7, and 
pyinstaller 2.1.  I used homebrew to install python and python-gtk.

Does anyone have any advice?  Yes, I've tried some of the "Find out What 
Went Wrong" ideas, but nothing's jumped out.

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