Re: [pygtk] PyGTK - py2app - Mac OS X

2011-09-22 Thread Anders F Björklund
Shrihari Sankaran wrote:

> 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 
> 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

This problem comes from py2app running as 64-bit, trying to use Carbon...
You need to e.g. set the environment VERSIONER_PYTHON_PREFER_32_BIT=yes

Or use something else to make the bundle, that is compatible with x86_64.
If you update macholib and py2app to the latest, it should be fixed too ?

--anders

___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/


Re: [pygtk] PyGTK - py2app - Mac OS X

2011-09-22 Thread Antoine Martin
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 
>> 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   pygtk@daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/

___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

[pygtk] PyGTK - py2app - Mac OS X

2011-09-22 Thread Shrihari Sankaran
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 
>
> 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   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/