If you want to bundle PyGTK for OSX, you should probably take a look at:
http://gtk-osx.sourceforge.net/
Which will give you a native GTK (no need for X11), and in particular:
http://sourceforge.net/apps/trac/gtk-osx/wiki/Bundle
A great step by step guide is here:
http://code.google.com/p/tryton/wiki/BuildingMacOSXInstall

Cheers
Antoine


On 23/09/11 00:02, Shrihari Sankaran wrote:
> Hello,
>
> I have a PyGTK app that runs perfectly fine on Windows and Linux (Ubuntu) -
> http://getmoviemonkey.com/
>
> Recently I managed to install PyGTK on my Mac and the app runs pretty
> decently on it too, but with few glitches. But, when I try to convert it
> into an 'app', the build is successful. When I run the app, i get the
> following errors:
>
>  22/09/11 10:10:06.791 PM
>>> [0x0-0xb43b43].org.pythonmac.unspecified.movie_monkey: <_FuncPtr object at
>>> 0x1003d7ef0>
>> 22/09/11 10:10:06.791 PM
>>> [0x0-0xb43b43].org.pythonmac.unspecified.movie_monkey: Traceback (most
>>> recent call last):
>> 22/09/11 10:10:06.791 PM
>>> [0x0-0xb43b43].org.pythonmac.unspecified.movie_monkey:   File
>>> "/opt/gtk/bin/mm/dist/movie_monkey.app/Contents/Resources/__boot__.py", line
>>> 179, in <module>
>> 22/09/11 10:10:06.791 PM
>>> [0x0-0xb43b43].org.pythonmac.unspecified.movie_monkey:     _argv_emulation()
>> 22/09/11 10:10:06.791 PM
>>> [0x0-0xb43b43].org.pythonmac.unspecified.movie_monkey:   File
>>> "/opt/gtk/bin/mm/dist/movie_monkey.app/Contents/Resources/__boot__.py", line
>>> 177, in _argv_emulation
>> 22/09/11 10:10:06.791 PM
>>> [0x0-0xb43b43].org.pythonmac.unspecified.movie_monkey:
>>> _get_argvemulator().mainloop()
>> 22/09/11 10:10:06.791 PM
>>> [0x0-0xb43b43].org.pythonmac.unspecified.movie_monkey:   File
>>> "/opt/gtk/bin/mm/dist/movie_monkey.app/Contents/Resources/__boot__.py", line
>>> 101, in mainloop
>> 22/09/11 10:10:06.791 PM
>>> [0x0-0xb43b43].org.pythonmac.unspecified.movie_monkey:     stoptime =
>>> Evt.TickCount() + timeout
>> 22/09/11 10:10:06.791 PM
>>> [0x0-0xb43b43].org.pythonmac.unspecified.movie_monkey: AttributeError:
>>> 'module' object has no attribute 'TickCount'
>> 22/09/11 10:10:06.863 PM movie_monkey: movie_monkey Error
>>
>> 22/09/11 10:10:07.790 PM com.apple.launchd.peruser.501:
>>> ([0x0-0xb43b43].org.pythonmac.unspecified.movie_monkey[8704]) Exited with
>>> code: 255
>>
>>
> I'm not able to make head or tail out of this. This is my setup file:
>
> from setuptools import setup
>
>
>> APP = ['movie_monkey.py']
> DATA_FILES = ['movie_monkey.glade', 'res/', 'logo.png']
>
> OPTIONS = {'argv_emulation': True}
>
>
>> setup(
>     app=APP,
>
>     data_files=DATA_FILES,
>
>     options={'py2app': OPTIONS},
>
>     setup_requires=['py2app'],
>
> )
>
>
> Am I doing something wrong? Do I need to include any dependencies?
>
>
>
> Thanks,
> Shrihari
>
>
>
> _______________________________________________
> pygtk mailing list   [email protected]
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/

_______________________________________________
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