[OLPC-Games] [Pygame] 'module' object has no attribute 'Game'

Joe Chen khchen at stanford.edu
Tue May 29 11:19:01 EDT 2007


On 5/28/07, stas zytkiewicz <stas.zytkiewicz at gmail.com> wrote:
>
> On 5/29/07, Joe Chen <khchen at stanford.edu> wrote:
> > Hi,
> >
> > After updating the OLPC to the the latest OS, Sugar 406c11, I tried
> > running a python game and got the following errors (the game works on
> > a PC).
> >
> > ERROR - Traceback (most recent call last):
> >   File "/usr/bin/sugar-activity-factory", line 27, in ?
> [..]
> >     self._constructor = getattr(module, class_name)
> > AttributeError: 'module' object has no attribute 'Game'
> It seems the module you try to call doesn't provide a 'Game' class.
> How do you start your game from sugar?
>
> Stas
> --
> A collection of educational activities for schools
> http://www.schoolsplay.org


I was using the Activity creation tutorial on
http://wiki.laptop.org/go/Sugar_Activity_Tutorial to modify our code on
http://typewriter.googlecode.com/svn/trunk/OLPC/  so that it registers as an
activity.


_______________________________________________
> Games mailing list
> Games at laptop.org
> http://mailman.laptop.org/mailman/listinfo/games
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.laptop.org/pipermail/games/attachments/20070529/9ab1dafd/attachment.htm 


More information about the Games mailing list