[Sugar-devel] [PATCH Maze] Comment bugfix and import missing

Manuel Kaufmann humitos at gmail.com
Tue Apr 10 15:58:10 EDT 2012


On Tue, Apr 10, 2012 at 16:56, Manuel Kaufmann <humitos at gmail.com> wrote:
>  - A triple quoted comment was accidentally removed, so I added it again.
>  - Added 'gtk' module because it was missing.

This patch fixes these errors:

Traceback (most recent call last):
  File "/srv/sugar-jhbuild/install/bin/sugar-activity", line 146, in <module>
    main()
  File "/srv/sugar-jhbuild/install/bin/sugar-activity", line 141, in main
    instance = create_activity_instance(activity_constructor, activity_handle)
  File "/srv/sugar-jhbuild/install/bin/sugar-activity", line 34, in
create_activity_instance
    activity = constructor(handle)
  File "/home/humitos/Activities/Maze.activity/olpcgames/activity.py",
line 106, in __init__
    toolbar = self.build_toolbar()
  File "/home/humitos/Activities/Maze.activity/activity.py", line 19,
in build_toolbar
    separator = gtk.SeparatorToolItem()
NameError: global name 'gtk' is not defined

and

Traceback (most recent call last):
  File "/srv/sugar-jhbuild/install/bin/sugar-activity", line 146, in <module>
    main()
  File "/srv/sugar-jhbuild/install/bin/sugar-activity", line 104, in main
    module = __import__(module_name)
  File "/home/humitos/Activities/Maze.activity/activity.py", line 3, in <module>
    import olpcgames
  File "/home/humitos/Activities/Maze.activity/olpcgames/__init__.py",
line 99, in <module>
    from olpcgames.activity import PygameActivity as PyGameActivity
  File "/home/humitos/Activities/Maze.activity/olpcgames/activity.py", line 5
    The olpcgames.activity module encapsulates creation of a Pygame activity.
                ^
SyntaxError: invalid syntax

See you,

-- 
Kaufmann Manuel
Blog: http://humitos.wordpress.com/
Porfolio: http://fotos.mkaufmann.com.ar/
PyAr: http://www.python.com.ar/


More information about the Sugar-devel mailing list