sugarlabs / free-from-malaria-activity

OLPC Sugar XO game to teach children about Malaria
http://worldclassproject.org.uk/
0 stars 0 forks source link

Error when starting QuizScreen #1

Open tonadev opened 5 years ago

tonadev commented 5 years ago

When testing if QuizScreen was working, I got this error. Seems like there is a missing file (quizScreen.glade) in this repository.

tonadev@TDPC:~/Documents/Work/OpenSource/code_in/sugarlabs/FreeFromMalaria$ sugar-activity
1541796122.743298 ERROR root: ATTENTION: service_name property in the activity.info file is deprecated, should be  changed to bundle_id

(sugar-activity:12868): Gtk-WARNING **: 14:42:08.226: Theme parsing error: gtk-widgets.css:16:32: The style property GtkExpander:expander-size is deprecated and shouldn't be used anymore. It will be removed in a future version

(sugar-activity:12868): Gtk-WARNING **: 14:42:08.226: Theme parsing error: gtk-widgets.css:17:35: The style property GtkExpander:expander-spacing is deprecated and shouldn't be used anymore. It will be removed in a future version
Gtk-Message: 14:42:09.478: GtkDialog mapped without a transient parent. This is discouraged.
Launched from home.
Unexpected error: <type 'exceptions.ValueError'>
Error:ERROR in SOUND
CONTROLLER 
{'(French) (fr)': ['fr'], '(Swahili) (sw)': ['sw'], '(English) (en)': ['en'], '(Spanish) (es)': ['es']}
Restoring  /home/tonadev/.sugar/default/uk.org.worldclassproject.FreeFromMalaria/data/defaults
Restored COMIC SCENE from  /home/tonadev/.sugar/default/uk.org.worldclassproject.FreeFromMalaria/data/defaults
CONTROLLER 
{'(French) (fr)': ['fr'], '(Swahili) (sw)': ['sw'], '(English) (en)': ['en'], '(Spanish) (es)': ['es']}
Restored LANGUAGE from  /home/tonadev/.sugar/default/uk.org.worldclassproject.FreeFromMalaria/data/defaults
Traceback (most recent call last):
  File "/usr/bin/sugar-activity", line 219, in <module>
    main()
  File "/usr/bin/sugar-activity", line 214, in main
    instance = create_activity_instance(activity_constructor, activity_handle)
  File "/usr/bin/sugar-activity", line 48, in create_activity_instance
    activity = constructor(handle)
  File "/home/tonadev/Documents/Work/OpenSource/code_in/sugarlabs/FreeFromMalaria/activity.py", line 150, in __init__
    self.read_and_parse_prefs(os.environ['SUGAR_ACTIVITY_ROOT'] + '/data/defaults')
  File "/home/tonadev/Documents/Work/OpenSource/code_in/sugarlabs/FreeFromMalaria/activity.py", line 293, in read_and_parse_prefs
    self.controller.update_scene();
  File "/home/tonadev/Documents/Work/OpenSource/code_in/sugarlabs/FreeFromMalaria/controller/GameController.py", line 153, in update_scene
    self.play_game("Quiz", file_line)
  File "/home/tonadev/Documents/Work/OpenSource/code_in/sugarlabs/FreeFromMalaria/controller/GameController.py", line 188, in play_game
    self.view = QuizScreen.GameQuizScreen(self);
  File "/home/tonadev/Documents/Work/OpenSource/code_in/sugarlabs/FreeFromMalaria/view/QuizScreen.py", line 40, in __init__
    self.xml.add_from_file("glade/quizScreen.glade")
GLib.Error: g-file-error-quark: Failed to open file “glade/quizScreen.glade”: No such file or directory (4)
quozl commented 5 years ago

Yes, it was an incomplete port from Glade to Builder between version 3 and 4 of the activity. In particular, the file WelcomeScreen.py was changed, but the file QuizScreen.py was not.

http://activities.sugarlabs.org/activities/4309/ has the older releases, each .xo file can be unpacked with unzip command.

https://github.com/wcpolpc/FreeFromMalaria has a different view of the history of this activity; possibly a more correct repository than this repository.