[sugar] Activity won't start
Dan Williams
dcbw at redhat.com
Mon Dec 25 18:10:11 EST 2006
On Sun, 2006-12-24 at 20:19 -0500, Andrew Clunis wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi!
>
> Even after mkaing the change to the 'exec =' directive in the
> activity.info file, my activity won't start under Sugar, with this
> message showing up the log (it dies so early on in the activity start
> process that it doesn't get its own tab):
If you see the sugar-activity-factory exit with error code 1, your
python file has a syntax error or some other problem that stops python
from loading it initially. This could be:
1) bad imports somewhere in global scope (like at the top)
2) a syntax error
3) you mixed tabs and spaces
4) your activity __init__ routine has an error
Try to comment stuff out until something works.
Dan
> 1.
> DEBUG - Owner 'Andrew' using port 36039
> 2.
> STDOUT - Tracebacks will be written to /tmp/sugar-shell-25842 on SIGUSR1
> 3.
> STDOUT -
> 4.
>
> 5.
> STDERR - Introspect error: The name org.laptop.DCONManager was not provided by any .service files
> 6.
>
> 7.
> DEBUG - Shell.__window_opened_cb
> 8.
> DEBUG - Shell.__active_window_changed_cb
> 9.
> DEBUG - Shell.__window_opened_cb
> 10.
> DEBUG - Shell.__window_opened_cb
> 11.
> DEBUG - Shell.__window_opened_cb
> 12.
> DEBUG - Shell.__window_opened_cb
> 13.
> DEBUG - Frame._enter_notify_cb 4
> 14.
> DEBUG - Frame._leave_notify_cb 4
> 15.
> DEBUG - Frame._enter_notify_cb 4
> 16.
> DEBUG - Frame._leave_notify_cb 4
> 17.
> DEBUG - Frame._enter_notify_cb 4
> 18.
> DEBUG - Frame._enter_notify_cb 4
> 19.
> DEBUG - Shell.start_activity
> 20.
> STDERR - Introspect error: Process /home/orospakr/olpc/sugar-jhbuild/build/bin/sugar-activity-factory exited with status 1
> 21.
>
> 22.
> STDERR - Traceback (most recent call last):
> 23.
> File "/home/orospakr/olpc/sugar-jhbuild/build/share/sugar/shell/view/frame/ActivitiesBox.py", line 71, in _activity_clicked_cb
> 24.
> self._shell.start_activity(icon.get_bundle_id())
> 25.
> File "/home/orospakr/olpc/sugar-jhbuild/build/share/sugar/shell/view/Shell.py", line 225, in start_activity
> 26.
> activity = ActivityFactory.create(activity_type)
> 27.
> File "/home/orospakr/olpc/sugar-jhbuild/build/lib/python2.4/site-packages/sugar/activity/ActivityFactory.py", line 89, in create
> 28.
> xid = factory.create()
> 29.
> File "/home/orospakr/olpc/sugar-jhbuild/build/lib/python2.4/site-packages/dbus/proxies.py", line 77, in __call__
> 30.
> ret = self._proxy_method (*args, **keywords)
> 31.
> File "/home/orospakr/olpc/sugar-jhbuild/build/lib/python2.4/site-packages/dbus/proxies.py", line 161, in __call__
> 32.
> reply_message = self._connection.send_message_with_reply_and_block(message, timeout)
> 33.
> DBusException: org.freedesktop.DBus.Error.Spawn.ChildExited: Process /home/orospakr/olpc/sugar-jhbuild/build/bin/sugar-activity-factory exited with status 1
> 34.
>
> 35.
> STDERR -
> 36.
>
> 37.
> ERROR - Traceback (most recent call last):
> 38.
> File "/home/orospakr/olpc/sugar-jhbuild/build/share/sugar/shell/view/frame/ActivitiesBox.py", line 71, in _activity_clicked_cb
> 39.
> self._shell.start_activity(icon.get_bundle_id())
> 40.
> File "/home/orospakr/olpc/sugar-jhbuild/build/share/sugar/shell/view/Shell.py", line 225, in start_activity
> 41.
> activity = ActivityFactory.create(activity_type)
> 42.
> File "/home/orospakr/olpc/sugar-jhbuild/build/lib/python2.4/site-packages/sugar/activity/ActivityFactory.py", line 89, in create
> 43.
> xid = factory.create()
> 44.
> File "/home/orospakr/olpc/sugar-jhbuild/build/lib/python2.4/site-packages/dbus/proxies.py", line 77, in __call__
> 45.
> ret = self._proxy_method (*args, **keywords)
> 46.
> File "/home/orospakr/olpc/sugar-jhbuild/build/lib/python2.4/site-packages/dbus/proxies.py", line 161, in __call__
> 47.
> reply_message = self._connection.send_message_with_reply_and_block(message, timeout)
> 48.
> DBusException: org.freedesktop.DBus.Error.Spawn.ChildExited: Process /home/orospakr/olpc/sugar-jhbuild/build/bin/sugar-activity-factory exited with status 1
> 49.
>
> 50.
> DEBUG - Frame._leave_notify_cb 4
> 51.
> DEBUG - Shell.__window_closed_cb
> 52.
> DEBUG - Shell.__window_closed_cb
> 53.
> DEBUG - Shell.__window_closed_cb
> 54.
> DEBUG - Shell.__window_closed_cb
> 55.
> DEBUG - Shell.__window_opened_cb
> 56.
> DEBUG - Shell.__active_window_changed_cb
> 57.
> DEBUG - Frame._enter_edge_cb 3
> 58.
> DEBUG - EventFrame._enter_notify_cb 2
> 59.
> DEBUG - Frame._event_frame_leave_cb 3
> 60.
> DEBUG - EventFrame._leave_notify_cb 0
> 61.
> DEBUG - Frame._enter_edge_cb 3
> 62.
> DEBUG - EventFrame._enter_notify_cb 2
> 63.
> DEBUG - EventFrame._motion_notify_cb 2
> 64.
> DEBUG - EventFrame._motion_notify_cb 2
> 65.
> DEBUG - Frame._event_frame_leave_cb 3
> 66.
> DEBUG - EventFrame._leave_notify_cb 0
> 67.
> DEBUG - Frame._enter_edge_cb 3
> 68.
> DEBUG - EventFrame._enter_notify_cb 2
> 69.
> DEBUG - EventFrame._motion_notify_cb 2
> 70.
> DEBUG - EventFrame._leave_notify_cb 0
> 71.
> DEBUG - Frame._enter_notify_cb 3
> 72.
> DEBUG - Shell.__window_opened_cb
> 73.
> DEBUG - Shell.__window_opened_cb
> 74.
> DEBUG - Shell.__window_opened_cb
> 75.
> DEBUG - Shell.__window_opened_cb
> 76.
> DEBUG - Frame._leave_notify_cb 3
> 77.
> DEBUG - Frame._enter_notify_cb 3
> 78.
> DEBUG - Frame._enter_notify_cb 3
> 79.
> DEBUG - Shell.start_activity
> 80.
> DEBUG - Frame._leave_notify_cb 3
> 81.
> DEBUG - Shell.__window_opened_cb
> 82.
> DEBUG - Shell.__window_closed_cb
> 83.
> DEBUG - Shell.__window_closed_cb
> 84.
> DEBUG - Shell.__window_closed_cb
> 85.
> DEBUG - Shell.__window_closed_cb
> 86.
> DEBUG - Shell.__active_window_changed_cb
> 87.
> DEBUG - *** Updating current activity to c65502b42cc12017fca929e6fcbefecc360842c2
>
> Obviously, these messages aren't very helpful. All I can infer from
> this is that sugar-activity-factory itself is dying. Attempging to
> invoke sugar-activity-factory directly emits nonsensical python
> exceptions from within sugar-activity-factory.
>
> My activity/activity.info:
>
> [Activity]
> name = Develop
> comment = Write your own activities for your laptop.
> activity_version = 1
> host_version = 1
> service_name = org.laptop.Develop
> icon = activity-develop
> exec = sugar-activity-factory DevelopActivity.DevelopActivity
> id = org.laptop.Develop
> show_launcher = yes
>
> Any thoughts?
>
> - --
> Regards,
> Andrew Clunis
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.3 (GNU/Linux)
>
> iD8DBQFFjycmALkUMXSNow8RAg+TAKDPLttMVIYT/ndQmzzHHSXPOEsJrwCgxyYy
> DBzSuRdd4hRfsinkmaK1ChQ=
> =JlPG
> -----END PGP SIGNATURE-----
> _______________________________________________
> Sugar mailing list
> Sugar at laptop.org
> http://mailman.laptop.org/mailman/listinfo/sugar
More information about the Sugar
mailing list