[Sugar-devel] how to run the Physics Activity as a standalone application?

Tomeu Vizoso tomeu at tomeuvizoso.net
Thu Apr 8 11:06:46 EDT 2010


On Sat, Apr 3, 2010 at 03:46, Vimal Joseph <vimaljoseph at gmail.com> wrote:
> Hi,
>
> Is it possible to run the Physics activity as a standalone application?
> I've tried that (Physics-4.tar.gz) and got the following error:
>
> Traceback (most recent call last):
>  File "physics.py", line 129, in <module>
>    main()
>  File "physics.py", line 123, in main
>    game = PhysicsGame(screen)
>  File "physics.py", line 50, in __init__
>    self.canvas = olpcgames.ACTIVITY.canvas
> AttributeError: 'NoneType' object has no attribute 'canvas'
>
> I've installed the pygame and box2d and related libraries. I use Ubuntu
> 9.10

Hi Vimal, you will need to modify Physics to not depend on
sugar-specific stuff if you want it to run outside Sugar.

Regards,

Tomeu

> thanks,
>
> ~vimal
>
> --
> Libarate your documents, Celebrate document freedom day 2010
> Use OpenOffice : http://openoffice.org
> http://documentfreedom.org
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>


More information about the Sugar-devel mailing list