<div dir="ltr">Yes James,<div>Now that I go through the commits for sugar-datastore, I had built datastore for Python2 instead of Python3.</div><div>I shall repeat the sudo make install step once again, however this time building for python3 and post the result here</div><div><br></div><div>Thanks.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 2, 2019 at 8:10 AM James Cameron <<a href="mailto:quozl@laptop.org">quozl@laptop.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Yes, it is possible that your issue of running sugar activities was<br>
introduced at the commit where the warning got updated, so you should<br>
test the possibility by checking out the immediately prior commit.<br>
<br>
You could also review the commit for functional change.<br>
<br>
First, find the commit.<br>
<br>
The message is in this file;<br>
<br>
<a href="https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/src/sugar3/activity/activityinstance.py#L138" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/src/sugar3/activity/activityinstance.py#L138</a><br>
<br>
According to "git blame", the whitespace was introduced by 3b28597.<br>
<br>
<a href="https://github.com/sugarlabs/sugar-toolkit-gtk3/blame/master/src/sugar3/activity/activityinstance.py#L138" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar-toolkit-gtk3/blame/master/src/sugar3/activity/activityinstance.py#L138</a><br>
<a href="https://github.com/sugarlabs/sugar-toolkit-gtk3/commit/3b28597486951c225239c220def190377ee1739f#diff-35db2ad94d2c22d773bce7bb50fdacafL138" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar-toolkit-gtk3/commit/3b28597486951c225239c220def190377ee1739f#diff-35db2ad94d2c22d773bce7bb50fdacafL138</a><br>
<br>
The whitespace is not welcome.  You may either remove it yourself,<br>
tell Aniket about it, or if you don't want to work toward fixing it<br>
create a new issue.<br>
<br>
However, given that the error message you posted specifically<br>
identifies the datastore as failing to start, it is more likely that<br>
the commits to the datastore have introduced a regression.  I've given<br>
you methods to prove that, but not enough information has been<br>
revealed, and I've not had time to try it myself.  I had tested it<br>
already, so don't want to waste time testing again unless I can see<br>
what is different.<br>
<br>
On speculation that you may not have been aware of the Port to Python<br>
3 of the datastore, I've updated the instructions for native install;<br>
<br>
<a href="https://github.com/sugarlabs/sugar/commit/e3206870eca3b99bc5baf43750318b72a481191c" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar/commit/e3206870eca3b99bc5baf43750318b72a481191c</a><br>
<br>
Let me know if you had built the datastore for Python 2 by mistake.<br>
<br>
On Fri, Aug 02, 2019 at 07:22:33AM +0530, Swarup N wrote:<br>
> Hi<br>
> I noticed something strange. Earlier while i was trying run sugar-activity<br>
>  through Ubuntu Terminal, the warning that is thrown "Activity written for<br>
> Python 2, consider porting to Python 3", was being shown as "Activity written<br>
> for Python 2,                                     consider porting to Python<br>
> 3", with a considerable amount of whitespace in between in words.<br>
> <br>
> Could it be possible that the issue of running sugar activities was introduced<br>
> at the commit where the warning got updated?<br>
> <br>
> Thanks.  <br>
> <br>
> On Fri, Aug 2, 2019 at 7:12 AM Swarup N <[1]<a href="mailto:nswarup14@gmail.com" target="_blank">nswarup14@gmail.com</a>> wrote:<br>
> <br>
>     Hi,<br>
> <br>
>     I was able get Sugar running as expected, thanks to James's earlier<br>
>     suggestion.<br>
>     I entering each of the core sugar directories, apart from sugar-toolkit, i<br>
>     checked out via "git checkout v0.114" to the v0.114 tag, and repeated the<br>
>     process of sudo make install for each of these directories, and logged out<br>
>     and logged in with Sugar-desktop selected. This way I was able to get my<br>
>     activities running.<br>
> <br>
>     Earlier, I had cloned the HEAD of each the repositories. Perhaps a later<br>
>     change to sugar-datastore was what causing the issue?<br>
> <br>
>     Thanks for all the help.<br>
> <br>
>     -Swarup N<br>
> <br>
>     On Thu, Aug 1, 2019 at 12:01 PM James Cameron <[2]<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a>> wrote:<br>
> <br>
>         Again, this only tells you the datastore has failed on start.<br>
> <br>
>         On Thu, Aug 01, 2019 at 11:25:09AM +0530, Swarup N wrote:<br>
>         >   File "/usr/local/lib/python2.7/dist-packages/sugar3/datastore/<br>
>         datastore.py",<br>
>         > line 51, in _get_data_store<br>
>         > [...]<br>
>         > dbus.exceptions.DBusException:<br>
>         org.freedesktop.DBus.Error.Spawn.ChildExited:<br>
>         > Process org.laptop.sugar.DataStore exited with status 1<br>
> <br>
>         --<br>
>         James Cameron<br>
>         [3]<a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
> <br>
> References:<br>
> <br>
> [1] mailto:<a href="mailto:nswarup14@gmail.com" target="_blank">nswarup14@gmail.com</a><br>
> [2] mailto:<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a><br>
> [3] <a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
<br>
-- <br>
James Cameron<br>
<a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
</blockquote></div>