Hi,

I'm fairly new to pyinstaller.  I'm having trouble running my bundled gtk 
application in os x.  I narrowed the problem down to a simple four-line 
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 this file pixbuf.py.  You must run it with a real .png file as an 
argument:

python pixbuf.py tmp.png

where tmp.png is the name of a real .png file in the same directory, in 
this case.

Now, when I run it with python from the terminal, the type() statement 
returns <type 'gtk.gdk.Pixbuf'>, and the dir() statement lists all the 
expected methods for a gtk.gdk.Pixbuf.  This is what I expect.  However, 
when I bundle the application with pyinstaller:

pyinstaller pixbuf.py

and go to the dists/pixbuf directory and run it, the type() statement 
returns <class '__main__.__main__.g-option-context-error-quark'>, and the 
dir() statement does not list gtk.gdk.Pixbuf methods.

Browsing gtk's code as best as I can, it appears 
g-option-context-error-quark is some form of error class instance returned 
by pixbuf_new_from_file.

In my full application, I can comment out the code related to the 
pixbuf_new_from_file call and everything else works.  My pyinstaller ports 
of the same application in Debian 6 and Windows 7 worked.  Does anyone have 
any suggestions, or can anyone at least duplicate the problem?  I'm using 
OS X 10.6.8, pyinstaller 2.1, and python2.7.7.  I installed python and gtk 
with homebrew.

Thanks in advance,
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