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

stas zytkiewicz stas.zytkiewicz at gmail.com
Tue May 29 00:55:17 EDT 2007


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


More information about the Games mailing list