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