<div dir="ltr">This is <a href="http://bugs.sugarlabs.org/ticket/3223">http://bugs.sugarlabs.org/ticket/3223</a></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Jun 14, 2014 at 6:36 PM, Lionel Laské <span dir="ltr"><<a href="mailto:lionel@olpc-france.org" target="_blank">lionel@olpc-france.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div>Hi all,</div><div><br></div><div>Testing a new OS build on an XO-1, I was surprised to have an issue on Moon activity (failed to start, see log below). Trying to understand why into the source code, I finally understood that it was related to an invalid system date (set around 1999). Seems that Moon activity can't work if the system date is under 2000. Not really an issue but good to know thought.</div>

<div><br></div><div>Just my two cents.</div><div><br></div><div>                  Lionel.</div><div><br></div><div>P.S.: Tested on Moon version 16, the latest one</div><div><br></div><div><p align="LEFT" style="margin-bottom:0cm;background:transparent">


<font color="#000000"><font face="Times New Roman"><font size="3"><span style="background:transparent">Traceback
(most recent call last):</span></font></font></font></p>
<p align="LEFT" style="margin-bottom:0cm;background:transparent">
<font color="#000000"><span style="background:transparent"> <font face="Times New Roman"><font size="3">File
"/usr/bin/sugar-activity", line 154, in <module></font></font></span></font></p>
<p align="LEFT" style="margin-bottom:0cm;background:transparent">
<font color="#000000"><span style="background:transparent">   <font face="Times New Roman"><font size="3">main()</font></font></span></font></p>
<p align="LEFT" style="margin-bottom:0cm;background:transparent">
<font color="#000000"><span style="background:transparent"> <font face="Times New Roman"><font size="3">File
"/usr/bin/sugar-activity", line 149, in main</font></font></span></font></p>
<p align="LEFT" style="margin-bottom:0cm;background:transparent">
<font color="#000000"><span style="background:transparent">  
<font face="Times New Roman"><font size="3">instance =
create_activity_instance(activity_constructor, activity_handle)</font></font></span></font></p>
<p align="LEFT" style="margin-bottom:0cm;background:transparent">
<font color="#000000"><span style="background:transparent"> <font face="Times New Roman"><font size="3">File
"/usr/bin/sugar-activity", line 36, in
create_activity_instance</font></font></span></font></p>
<p align="LEFT" style="margin-bottom:0cm;background:transparent">
<font color="#000000"><span style="background:transparent">  
<font face="Times New Roman"><font size="3">activity =
constructor(handle)</font></font></span></font></p>
<p align="LEFT" style="margin-bottom:0cm;background:transparent">
<font color="#000000"><span style="background:transparent"> <font face="Times New Roman"><font size="3">File
"/home/olpc/Activities/Moon.activity/moon.py", line 147, in
__init__</font></font></span></font></p>
<p align="LEFT" style="margin-bottom:0cm;background:transparent">
<font color="#000000"><span style="background:transparent">  
<font face="Times New Roman"><font size="3">self.build_main_layout_cb()</font></font></span></font></p>
<p align="LEFT" style="margin-bottom:0cm;background:transparent">
<font color="#000000"><span style="background:transparent"> <font face="Times New Roman"><font size="3">File
"/home/olpc/Activities/Moon.activity/moon.py", line 199, in
build_main_layout_cb</font></font></span></font></p>
<p align="LEFT" style="margin-bottom:0cm;background:transparent">
<font color="#000000"><span style="background:transparent">  
<font face="Times New Roman"><font size="3">self.update_text_information_view()</font></font></span></font></p>
<p align="LEFT" style="margin-bottom:0cm;background:transparent">
<font color="#000000"><span style="background:transparent"> <font face="Times New Roman"><font size="3">File
"/home/olpc/Activities/Moon.activity/moon.py", line 279, in
update_text_information_view</font></font></span></font></p>
<p align="LEFT" style="margin-bottom:0cm;background:transparent">
<font color="#000000"><span style="background:transparent">  
<font face="Times New Roman"><font size="3">self.data_model.update_moon_calculations(time.time())</font></font></span></font></p>
<p align="LEFT" style="margin-bottom:0cm;background:transparent">
<font color="#000000"><span style="background:transparent"> <font face="Times New Roman"><font size="3">File
"/home/olpc/Activities/Moon.activity/moon.py", line 502, in
update_moon_calculations</font></font></span></font></p>
<p align="LEFT" style="margin-bottom:0cm;background:transparent">
<font color="#000000"><span style="background:transparent">  
<font face="Times New Roman"><font size="3">last_new_moon_sec =
self.last_new_moon_sec_at_time(the_date)</font></font></span></font></p>
<p align="LEFT" style="margin-bottom:0cm;background:transparent">
<font color="#000000"><span style="background:transparent"> <font face="Times New Roman"><font size="3">File
"/home/olpc/Activities/Moon.activity/moon.py", line 646, in
last_new_moon_sec_at_time</font></font></span></font></p>
<p align="LEFT" style="margin-bottom:0cm;background:transparent">
<font color="#000000"><span style="background:transparent">   <font face="Times New Roman"><font size="3">return
now - last</font></font></span></font></p>
<p align="LEFT" style="margin-bottom:0cm;background:transparent">
<font color="#000000"><font face="Times New Roman"><font size="3"><span style="background:transparent">UnboundLocalError:
local variable 'last' referenced before assignment</span></font></font></font></p>
<p align="LEFT" style="margin-bottom:0cm;background:transparent">
<font color="#000000"><font face="Times New Roman"><font size="3"><span style="background:transparent">Exited
with status 1, pid 899 data (None, <open file '<fdopen>',
mode 'w' at 0xaa48ee8>,
dbus.ByteArray('d2a82a67039af6260bd68566a7b5ca135eddf277',
variant_level=1))</span></font></font></font></p></div><div><br></div><div><br></div></div>
<br>_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Gonzalo Odiard<br><br><div>SugarLabs - Software for children learning <br></div></div>
</div>