[Sugar-devel] PyGame can be run only once assertion error

laurent bernabe laurent.bernabe at gmail.com
Thu Sep 26 13:01:04 EDT 2013


Hello, everyone,

In my project HitTheBalls, which I've just commited the last modifications,
I have a bug I that I don't manage to solve.

If I launch the game without sugar, however, it runs fine.
Also I modified the activity.py in order to fit my main_game module
modifications. Maybe that the reason why I have this behaviour (the
activity log is not very verbose in my case).

So how can I solve the problem ?

This is the activity log :

________________________________________________________
1380214070.631923 WARNING root: No Gtk.AccelGroup in the top level window.
Traceback (most recent call last):
  File
"/home/broot/sugar-build/activities/HitTheBalls.activity/sugargame/canvas.py",
line 40, in _run_pygame_cb
    assert pygame.display.get_surface() is None, "PygameCanvas.run_pygame
can only be called once."
AssertionError: PygameCanvas.run_pygame can only be called once.
1380214073.021442 WARNING root: No Gtk.AccelGroup in the top level window.
Exited with status 0, pid 9045 data (None, <open file '<fdopen>', mode 'w'
at 0x1a299c0>, dbus.ByteArray('e2c07f313236150806506c5508b5a987bf6d2b4d',
variant_level=1))
_________________________________________________________________

Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20130926/a001cd4e/attachment.html>


More information about the Sugar-devel mailing list