<div dir="ltr">Thanks, James.<div><br></div><div>I will try this and let you know.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 16, 2020 at 12:23 PM 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">As you want to develop on the Python 3 or master branch of Browse, you<br>
must have Sugar 0.116 installed for Python 3.  You can tell when that<br>
is complete by running "python3 -c 'import sugar3'" without error.<br>
<br>
You can do this with Ubuntu 18.04, but not with the user instructions<br>
you referenced.  Those instructions are for using Sugar 0.112 with<br>
Ubuntu, which is the only version Ubuntu have packaged, in turn<br>
because Sugar 0.112 was the version packaged by Debian just prior to<br>
the Ubuntu 18.04 freeze back in early 2018.  You will find that<br>
"python2 -c 'import sugar3'" works without error.<br>
<br>
Instead, you should use developer instructions.<br>
<br>
<a href="https://github.com/sugarlabs/sugar/blob/master/docs/development-environment.md" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar/blob/master/docs/development-environment.md</a><br>
are the developer instructions we maintain.  There are three sections.<br>
The section "Packaged Sugar" will not work for you with Ubuntu 18.04,<br>
as explained above.  So your choices are either "Sugar Live Build" or<br>
"Native Sugar".<br>
<br>
The former involves running another virtual machine.<br>
<br>
The latter involves invasive changes to your Ubuntu 18.04 VM.  You're<br>
welcome to follow those instructions, but if you are inexperienced in<br>
any of the tools used there is a risk your VM won't be usable<br>
afterward.<br>
<br>
An alternative I've been working on recently is a set of packages to<br>
add to the Ubuntu 20.04 operating system, which is yet to be<br>
released.  The packages are available now, and I test them daily.<br>
<br>
See my prior post on "Sugar for Ubuntu 20.04"<br>
<a href="http://lists.sugarlabs.org/archive/sugar-devel/2020-February/057763.html" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/archive/sugar-devel/2020-February/057763.html</a><br>
<br>
Of the three choices above, I don't know you well enough to suggest<br>
any in particular.  Please review them all.<br>
<br>
On Mon, Mar 16, 2020 at 05:25:51PM +0530, Hitesh Shejwani wrote:<br>
> I am not sure how to install sugar 0.116 in Ubuntu 18.04. I installed Sugar<br>
> according to the info given here ([1]<a href="https://github.com/sugarlabs/sugar/blob/" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar/blob/</a><br>
> master/docs/ubuntu.md)<br>
> <br>
> But as you pointed out, it is an older version of Sugar. How do I fix that?<br>
> <br>
> On Sat, Mar 14, 2020 at 2:36 AM James Cameron <[2]<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a>> wrote:<br>
> <br>
>     The Download button does not do anything until a download begins;<br>
>     you'll see that in the source code.<br>
> <br>
>     Work with the Python 3 branch by using the master branch, combined<br>
>     with Sugar 0.116.<br>
> <br>
>     On Fri, Mar 13, 2020 at 05:35:16PM +0530, Hitesh Shejwani wrote:<br>
>     > Thanks for the response James. <br>
>     ><br>
>     > I saw that when I clicked on the Download button in the browser, it<br>
>     didn't do<br>
>     > anything. So I thought to add something to it. <br>
>     ><br>
>     > How do I work with the Python 3 branch? <br>
>     ><br>
>     > On Fri, Mar 13, 2020, 1:00 PM James Cameron <[1][3]<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a>><br>
>     wrote:<br>
>     ><br>
>     >     Welcome Hitesh.<br>
>     ><br>
>     >     urllib.request is a Python 3 module.<br>
>     ><br>
>     >     Browse master branch has been ported to Python 3, and requires Sugar<br>
>     >     0.116, which in turn includes sugar-activity3.  Browse file<br>
>     >     activity/[2][4]<a href="http://activity.info" rel="noreferrer" target="_blank">activity.info</a> specifies sugar-activity3.<br>
>     ><br>
>     >     If you wish to use the Python 2 version of Browse, use the branch<br>
>     >     python2.<br>
>     ><br>
>     >     Work on Browse is best done on the master branch unless you have a<br>
>     >     good reason to work on Python 2.  I don't know why you are trying to<br>
>     >     work on Browse, so I can't deduce your needs.<br>
>     ><br>
>     >     On Fri, Mar 13, 2020 at 12:40:09PM +0530, Hitesh Shejwani wrote:<br>
>     >     > Hello,<br>
>     >     ><br>
>     >     > I am trying to work on the browse-activity. I cloned the repo on my<br>
>     VM<br>
>     >     and<br>
>     >     > installed sugar for Ubuntu. When I try to start the activity with<br>
>     >     > sugar-activity browser.py, it throws an error with traceback<br>
>     >     ><br>
>     >     > import urllib.request<br>
>     >     > ImportError: No module named request<br>
>     >     ><br>
>     >     > I am using Ubuntu 18.04. I tried using sugar-activity3 but it was<br>
>     not<br>
>     >     found.<br>
>     ><br>
>     >     > _______________________________________________<br>
>     >     > Sugar-devel mailing list<br>
>     >     > [3][5]<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
>     >     > [4][6]<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
>     ><br>
>     >     --<br>
>     >     James Cameron<br>
>     >     [5][7]<a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
>     ><br>
>     > References:<br>
>     ><br>
>     > [1] mailto:[8]<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a><br>
>     > [2] [9]<a href="http://activity.info/" rel="noreferrer" target="_blank">http://activity.info/</a><br>
>     > [3] mailto:[10]<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
>     > [4] [11]<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
>     > [5] [12]<a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
> <br>
>     --<br>
>     James Cameron<br>
>     [13]<a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
> <br>
> References:<br>
> <br>
> [1] <a href="https://github.com/sugarlabs/sugar/blob/master/docs/ubuntu.md" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar/blob/master/docs/ubuntu.md</a><br>
> [2] mailto:<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a><br>
> [3] mailto:<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a><br>
> [4] <a href="http://activity.info/" rel="noreferrer" target="_blank">http://activity.info/</a><br>
> [5] mailto:<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
> [6] <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
> [7] <a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
> [8] mailto:<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a><br>
> [9] <a href="http://activity.info/" rel="noreferrer" target="_blank">http://activity.info/</a><br>
> [10] mailto:<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
> [11] <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
> [12] <a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
> [13] <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>