[Sugar-devel] Portfolio
David Leeming
david at leeming-consulting.com
Mon May 16 02:55:07 EDT 2011
-----Original Message-----
From: sugar-devel-bounces at lists.sugarlabs.org
[mailto:sugar-devel-bounces at lists.sugarlabs.org] On Behalf Of Walter Bender
Sent: Monday, 16 May 2011 11:23 a.m.
To: David Leeming
Cc: Sugar devel
Subject: Re: [Sugar-devel] Portfolio
On Sun, May 15, 2011 at 8:26 PM, David Leeming
<david at leeming-consulting.com> wrote:
> Interested in Walter's new Portfolio activity.
>
>
>
> I download it and installed it via USB stick / Journal into an XO-1
running
> build 860/0.84.31/Q2E45
>
>
>
> I starred a few photos and paintings in the Journal and tried to start
> Portfolio. I see the startup screen for maybe 3 "colour pulses" then for a
> split second something starts to load but it goes off. Tried several
times.
>
>
>
> This activity will be useful for us, should I expect this to work on our
> XO-1s?
>
>
>
> David Leeming
>
> Solomon Islands Rural Link
> P.O.Box 652 Honiara, Solomon Islands
>
> +677 7476396 (m) +677 24419 (h)
>
> www.rurallink.com.sb
>
>
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
>
> Could you please send me the log file? Also, which version of Sugar
> are you running? thanks. -walter
XO-1
Build 860
Sugar 0.84.31
FW Q2E45
Log:
/usr/lib/python2.6/site-packages/sugar/util.py:25: DeprecationWarning: the
sha module is deprecated; use the hashlib module instead
import sha
1305528592.897411 WARNING root: No gtk.AccelGroup in the top level window.
1305528593.277759 WARNING root: No gtk.AccelGroup in the top level window.
Traceback (most recent call last):
File "/usr/bin/sugar-activity", line 21, in <module>
main.main()
File "/usr/lib/python2.6/site-packages/sugar/activity/main.py", line 147,
in main
create_activity_instance(activity_constructor, activity_handle)
File "/usr/lib/python2.6/site-packages/sugar/activity/main.py", line 35,
in create_activity_instance
activity = constructor(handle)
File "/home/olpc/Activities/Portfolio.activity/PortfolioActivity.py", line
82, in __init__
self._setup_workspace()
File "/home/olpc/Activities/Portfolio.activity/PortfolioActivity.py", line
105, in _setup_workspace
if lighter_color(self._colors) == 0:
File "/home/olpc/Activities/Portfolio.activity/utils.py", line 40, in
lighter_color
if _luminance(colors[0][1:6]) > _luminance(colors[1][1:6]):
File "/home/olpc/Activities/Portfolio.activity/utils.py", line 35, in
_luminance
return int(color[0:2], 16) * 0.3 + int(color[2:4], 16) * 0.6 +
int(color[4:6]) * 0.1
ValueError: invalid literal for int() with base 10: 'B'
David
More information about the Sugar-devel
mailing list