[Sugar-devel] Sugar Activities not working on Ubuntu

Walter Bender walter.bender at gmail.com
Sun Dec 13 17:03:20 EST 2015


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 <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: martin.abente.lahaye at gmail.com
> > To: samsongoddy at hotmail.com
> > CC: 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]https://wiki.sugarlabs.org/go/Ubuntu
> >
> > On Fri, Dec 11, 2015 at 12:14 PM, samson goddy <[2]
> 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]Sugar-devel at lists.sugarlabs.org
> >     [4]http://lists.sugarlabs.org/listinfo/sugar-devel
> >
> > _______________________________________________ Sugar-devel mailing list
> > Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
> >
> > References:
> >
> > [1] https://wiki.sugarlabs.org/go/Ubuntu
> > [2] mailto:samsongoddy at hotmail.com
> > [3] mailto:Sugar-devel at lists.sugarlabs.org
> > [4] http://lists.sugarlabs.org/listinfo/sugar-devel
>
>
> > _______________________________________________
> > Sugar-devel mailing list
> > Sugar-devel at lists.sugarlabs.org
> > http://lists.sugarlabs.org/listinfo/sugar-devel
>
>
> --
> James Cameron
> http://quozl.netrek.org/
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>



-- 
Walter Bender
Sugar Labs
http://www.sugarlabs.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20151213/469ad9f2/attachment.html>


More information about the Sugar-devel mailing list