[OLPC-Games] Pygsear works in the xo?
Lincoln Quirk
lincoln at techhouse.org
Thu Sep 27 01:25:13 EDT 2007
On Thu, Sep 27, 2007 at 12:36:35AM +0200, Jorge Saldivar wrote:
> Hi all,
>
> I am trying to make work pygsear in the xo, but i have this problem:
> Exception in thread Thread-1:
> Traceback (most recent call last):
> File "/usr/lib/python2.5/threading.py", line 460, in __bootstrap
> self.run()
> File "/usr/lib/python2.5/threading.py", line 440, in run
> self.__target(*self.__args, **self.__kwargs)
> File "build/bdist.linux-i586/egg/olpcgames/canvas.py", line 76, in _start
> fn()
> File "/usr/lib/python2.5/site-packages/pygsear/Game.py", line 363, in
> __init__
> GameLooper.__init__(self)
> File "/usr/lib/python2.5/site-packages/pygsear/Game.py", line 47, in
> __init__
> self.events.add(Event.QUIT_Event(callback=self._quit))
> File "/usr/lib/python2.5/site-packages/pygsear/Event.py", line 142, in
> __init__
> Event.__init__(self, QUIT, callback, **kwargs)
> File "/usr/lib/python2.5/site-packages/pygsear/Event.py", line 83, in
> __init__
> pygame.event.set_allowed(type)
> File "build/bdist.linux-i586/egg/olpcgames/eventwrap.py", line 89, in
> set_allowed
> [g_blocked.remove(x) for x in makeseq(item)]
> KeyError: 12
>
> Somebody knows if already it works in the xo?, and if it works someone have
> an idea of my problem?.
It seems related to the olpcgames wrapper.
I was the developer of the wrapper over the summer, but I am at school
and no longer have a lot of time to maintain it. I don't know when I
will be free to take a look.
In the meantime, if you or anyone else is interested in trying to fix it
yourself, you should check out the 'projects/games-misc' git repository
in dev.laptop.org. The file you want is
olpcgames-src/olpcgames/eventwrap.py.
Lincoln Quirk
More information about the Games
mailing list