[Sugar-devel] sugar-web activity weirdness

Walter Bender walter.bender at gmail.com
Mon Mar 30 00:14:10 EDT 2015


Not sure if it is me, but I cannot get either sugar-web example
activity to work. Did they ever work?

MyActivity has an error in the toolkit:

Traceback (most recent call last):
  File "/home/broot/sugar-build/build/out/install/lib/python2.7/site-packages/sugar3/activity/webactivity.py",
line 161, in _app_scheme_cb
    request.finish(Gio.File.new_for_path(path).read(None),
gi._glib.GError: Error opening file: No such file or directory


WebTest fails with:

Traceback (most recent call last):
  File "/home/broot/sugar-build/build/out/install/bin/sugar-activity",
line 169, in <module>
    main()
  File "/home/broot/sugar-build/build/out/install/bin/sugar-activity",
line 164, in main
    instance = create_activity_instance(activity_constructor, activity_handle)
  File "/home/broot/sugar-build/build/out/install/bin/sugar-activity",
line 42, in     activity = constructor(handle)
  File "/home/broot/sugar-build/build/out/install/share/sugar/activities/WebTest.activity/activity.py",
line 22, in __init__
    self._web_view.load_uri(handle.uri)
TypeError: Argument 1 does not allow None as a value

Maybe we should not be building/installing WebTest (sugar-web-template)?

Also, it probably makes sense to add the HelloWorld activity to the
default set of modules included with sugar-build, as it will help
would-be Python developers get started. (Note that although HelloWorld
comes with a POT file, it does not come with any PO files.)

-walter

-- 
Walter Bender
Sugar Labs
http://www.sugarlabs.org


More information about the Sugar-devel mailing list