[Sugar-devel] Sugar Activities not working on Ubuntu

Martin Abente martin.abente.lahaye at gmail.com
Mon Dec 14 12:02:01 EST 2015


https://codein.withgoogle.com/dashboard/tasks/4659526686998528/

On Mon, Dec 14, 2015 at 1:51 PM, Martin Abente <
martin.abente.lahaye at gmail.com> wrote:

> will do!
>
> On Sun, Dec 13, 2015 at 7:45 PM, Walter Bender <walter.bender at gmail.com>
> wrote:
>
>> Sounds like a job for GCI :)  Martin: Can you write something up?
>>
>> On Sun, Dec 13, 2015 at 5:42 PM, James Cameron <quozl at laptop.org> wrote:
>>
>>> Agreed.
>>>
>>> Saw similar on Ubuntu 15.10 last week; this was failing;
>>>
>>>         import locale
>>>         locale.setlocale(locale.LC_ALL, '')
>>>
>>> Documentation says it can fail.  If an activity or toolkit doesn't
>>> handle failure, I think it needs to be fixed.
>>>
>>> On Sun, Dec 13, 2015 at 05:03:20PM -0500, Walter Bender wrote:
>>> > Hmm. Shouldn't locale revert to en_US if the locale is not found?
>>> Seems like a
>>> > Sugar/Sugar toolkit bug.
>>> >
>>> > On Sun, Dec 13, 2015 at 4:40 PM, James Cameron <[1]quozl at laptop.org>
>>> wrote:
>>> >
>>> >     You are using sugar-build?  It seems so, because your screenshot
>>> has
>>> >     an Ubuntu desktop view.
>>> >
>>> >     In your logs, the following activities failed because of your en_NG
>>> >     language choice: Calculate, Moon, Measure, Pippy, Record, Turtle
>>> >     Blocks, and Speak.
>>> >
>>> >     But many activities worked fine.
>>> >
>>> >     An example from the Moon activity:
>>> >
>>> >     Traceback (most recent call last):
>>> >       File "/usr/bin/sugar-activity", line 169, in <module>
>>> >         main()
>>> >       File "/usr/bin/sugar-activity", line 164, in main
>>> >         instance = create_activity_instance(activity_constructor,
>>> >     activity_handle)
>>> >       File "/usr/bin/sugar-activity", line 42, in
>>> create_activity_instance
>>> >         activity = constructor(handle)
>>> >       File "/usr/share/sugar/activities/Moon.activity/moon.py", line
>>> 90, in
>>> >     __init__
>>> >         activity_button = ActivityToolbarButton(self)
>>> >       File
>>> "/usr/lib/python2.7/dist-packages/sugar/activity/widgets.py", line
>>> >     75, in __init__
>>> >         icon = _create_activity_icon(activity.metadata)
>>> >       File
>>> "/usr/lib/python2.7/dist-packages/sugar/activity/widgets.py", line
>>> >     45, in _create_activity_icon
>>> >         bundle = ActivityBundle(get_bundle_path())
>>> >       File
>>> "/usr/lib/python2.7/dist-packages/sugar/bundle/activitybundle.py",
>>> >     line 72, in __init__
>>> >         linfo_file = self._get_linfo_file()
>>> >       File
>>> "/usr/lib/python2.7/dist-packages/sugar/bundle/activitybundle.py",
>>> >     line 141, in _get_linfo_file
>>> >         lang = locale.getdefaultlocale()[0]
>>> >       File "/usr/lib/python2.7/locale.py", line 543, in
>>> getdefaultlocale
>>> >         return _parse_localename(localename)
>>> >       File "/usr/lib/python2.7/locale.py", line 475, in
>>> _parse_localename
>>> >         raise ValueError, 'unknown locale: %s' % localename
>>> >     ValueError: unknown locale: en_NG
>>> >
>>> >     On Fri, Dec 11, 2015 at 05:29:42PM +0100, samson goddy wrote:
>>> >     > here are the logs
>>> >     >
>>> >     >
>>> >
>>>  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
>>> >     > Date: Fri, 11 Dec 2015 12:57:01 -0300
>>> >     > From: [2]martin.abente.lahaye at gmail.com
>>> >     > To: [3]samsongoddy at hotmail.com
>>> >     > CC: [4]sugar-devel at lists.sugarlabs.org
>>> >     > Subject: Re: [Sugar-devel] Sugar Activities not working on Ubuntu
>>> >     >
>>> >     > Hey Samson,
>>> >     >
>>> >     > Are you using this [1]? Can you send the logs? Check in
>>> ~/.sugar/default/
>>> >     logs/
>>> >     >
>>> >     > Regards,
>>> >     > Martin.
>>> >     >
>>> >     > Refs:
>>> >     > 1. [1][5]https://wiki.sugarlabs.org/go/Ubuntu
>>> >     >
>>> >     > On Fri, Dec 11, 2015 at 12:14 PM, samson goddy <[2][6]
>>> >     samsongoddy at hotmail.com>
>>> >     > wrote:
>>> >     >
>>> >     >     Hello guys,
>>> >     >
>>> >     >     Most of the activities in sugar running on Ubuntu is not
>>> working.
>>> >     Prompting
>>> >     >     failed  to start. here is a screenshot of the sugar activity
>>> on
>>> >     Ubuntu.
>>> >     >
>>> >     >     _______________________________________________
>>> >     >     Sugar-devel mailing list
>>> >     >     [3][7]Sugar-devel at lists.sugarlabs.org
>>> >     >     [4][8]http://lists.sugarlabs.org/listinfo/sugar-devel
>>> >     >
>>> >     > _______________________________________________ Sugar-devel
>>> mailing list
>>> >     > [9]Sugar-devel at lists.sugarlabs.org [10]
>>> http://lists.sugarlabs.org/
>>> >     listinfo/sugar-devel
>>> >     >
>>> >     > References:
>>> >     >
>>> >     > [1] [11]https://wiki.sugarlabs.org/go/Ubuntu
>>> >     > [2] mailto:[12]samsongoddy at hotmail.com
>>> >     > [3] mailto:[13]Sugar-devel at lists.sugarlabs.org
>>> >     > [4] [14]http://lists.sugarlabs.org/listinfo/sugar-devel
>>> >
>>> >
>>> >     > _______________________________________________
>>> >     > Sugar-devel mailing list
>>> >     > [15]Sugar-devel at lists.sugarlabs.org
>>> >     > [16]http://lists.sugarlabs.org/listinfo/sugar-devel
>>> >
>>> >     --
>>> >     James Cameron
>>> >     [17]http://quozl.netrek.org/
>>> >     _______________________________________________
>>> >     Sugar-devel mailing list
>>> >     [18]Sugar-devel at lists.sugarlabs.org
>>> >     [19]http://lists.sugarlabs.org/listinfo/sugar-devel
>>> >
>>> > --
>>> > Walter Bender
>>> > Sugar Labs
>>> > [20]http://www.sugarlabs.org
>>> >
>>> > References:
>>> >
>>> > [1] mailto:quozl at laptop.org
>>> > [2] mailto:martin.abente.lahaye at gmail.com
>>> > [3] mailto:samsongoddy at hotmail.com
>>> > [4] mailto:sugar-devel at lists.sugarlabs.org
>>> > [5] https://wiki.sugarlabs.org/go/Ubuntu
>>> > [6] mailto:samsongoddy at hotmail.com
>>> > [7] mailto:Sugar-devel at lists.sugarlabs.org
>>> > [8] http://lists.sugarlabs.org/listinfo/sugar-devel
>>> > [9] mailto:Sugar-devel at lists.sugarlabs.org
>>> > [10] http://lists.sugarlabs.org/listinfo/sugar-devel
>>> > [11] https://wiki.sugarlabs.org/go/Ubuntu
>>> > [12] mailto:samsongoddy at hotmail.com
>>> > [13] mailto:Sugar-devel at lists.sugarlabs.org
>>> > [14] http://lists.sugarlabs.org/listinfo/sugar-devel
>>> > [15] mailto:Sugar-devel at lists.sugarlabs.org
>>> > [16] http://lists.sugarlabs.org/listinfo/sugar-devel
>>> > [17] http://quozl.netrek.org/
>>> > [18] mailto:Sugar-devel at lists.sugarlabs.org
>>> > [19] http://lists.sugarlabs.org/listinfo/sugar-devel
>>> > [20] http://www.sugarlabs.org/
>>>
>>> --
>>> James Cameron
>>> http://quozl.netrek.org/
>>>
>>
>>
>>
>> --
>> Walter Bender
>> Sugar Labs
>> http://www.sugarlabs.org
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20151214/1ace6957/attachment.html>


More information about the Sugar-devel mailing list