<div dir="ltr"><span style="color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:16px">On Debian or Ubuntu, ensure </span><code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:13.6px;padding:0.2em 0.4em;margin:0px;background-color:rgba(27,31,35,0.05);border-radius:3px;color:rgb(36,41,46)">deb-src</code><span style="color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:16px"> lines are present and enabled in </span><code style="box-sizing:border-box;font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:13.6px;padding:0.2em 0.4em;margin:0px;background-color:rgba(27,31,35,0.05);border-radius:3px;color:rgb(36,41,46)">/etc/apt/sources.list</code><span style="color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:16px">, and then;</span><br><div><span style="color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:16px"><br></span></div><div><span style="color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:16px">should I open sources.list in a text editor and uncomment all deb-src lines commented with #</span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 8, 2020 at 11:53 PM Srevin Saju <<a href="mailto:srevinsaju@sugarlabs.org">srevinsaju@sugarlabs.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">
<div>
<p><font face="Noto Sans">Oops, you got the wrong sucrose.</font></p>
<p><font face="Noto Sans">sucrose is not distributed on pypi, i.e,
PIP. On ubuntu 18.04, the suggested method is to build sugar
development environment, I guess you missed that part; <br>
</font></p>
<p><font face="Noto Sans">The latest version of sugar repository is
not available on Bionic Beaver (18.04). See
<a href="https://pkgs.org/search/?q=sucrose" target="_blank">https://pkgs.org/search/?q=sucrose</a>; So that means you have to
build it, to make it work!<br>
</font></p>
<p><font face="Noto Sans">But, its simple, but make sure you follow
all the instructions carefully; in case you miss one step, the
rest of them goes awry.<br>
</font></p>
<p><font face="Noto Sans"><a href="https://github.com/sugarlabs/sugar/blob/master/docs/development-environment.md#native-sugar" target="_blank">https://github.com/sugarlabs/sugar/blob/master/docs/development-environment.md#native-sugar</a></font></p>
<p><font face="Noto Sans">Let me know if you face any issues in
between the steps<br>
</font></p>
<div>On 08/06/2020 21:18, Tushar Gupta
wrote:<br>
</div>
<blockquote type="cite">
<div dir="auto">Just a quick question, I am using ubuntu 18.04
<div dir="auto"><br>
</div>
<div dir="auto">I pip installed sucrose</div>
<div dir="auto">Cloned the repo somewhere on ubuntu</div>
<div dir="auto">Then navigated to the cloned repo, ran python
main.py dev </div>
<div dir="auto">Re-login with sugar And changes will be
reflected in sugar ?</div>
<div dir="auto"><br>
</div>
<div dir="auto">Thanks !</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, Jun 8, 2020, 11:03 PM
Srevin Saju <<a href="mailto:srevinsaju@sugarlabs.org" target="_blank">srevinsaju@sugarlabs.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">Hello
Tushar,<br>
<br>
Great to hear you have setup the development environment<br>
<br>
To port stick-hero-activity, you may follow these steps if you
are not <br>
using a VM. These steps are pretty simple, (there might be
other <br>
methods, but if you are beginning development, you may prefer
this method)<br>
<br>
* Clone a local copy of stick-hero-activity: `git clone <br>
<a href="https://github.com/sugarlabs/stick-hero-activity" rel="noreferrer noreferrer" target="_blank">https://github.com/sugarlabs/stick-hero-activity`</a><br>
<br>
* Create a `branch` so that you can revert any time, in case
you make a <br>
mistake, and also reviews would be easier, and your patch
could get <br>
merged faster. `git branch tushar-fixes`<br>
<br>
* Checkout the branch : `git checkout tushar-fixes`<br>
<br>
* Now, there are many different ways to do this step, i.e
setting it up <br>
for development, but I prefer this: `python setup.py dev`, or
`python3 <br>
setup.py dev`; In case you are porting it to python3, port the
setup.py <br>
first so that you can test it. This will create 'symlinks' to
the <br>
'~/Activities' folder, so if you make changes to the cloned
activity, <br>
then your changes will get reflected (almost) immediately<br>
<br>
* Log out your system, Log In to sugar: see <br>
<a href="https://github.com/sugarlabs/sugar-docs/blob/master/src/sugar-logging-in.md" rel="noreferrer noreferrer" target="_blank">https://github.com/sugarlabs/sugar-docs/blob/master/src/sugar-logging-in.md</a><br>
<br>
* You are likely to see your activity in the spiral view. (do
not see it?)<br>
<br>
* You can check the logs your activity produces using the
Log.Activity <br>
(<a href="https://github.com/sugarlabs/log-activity" rel="noreferrer noreferrer" target="_blank">https://github.com/sugarlabs/log-activity</a>)
, alternatively, use the <br>
Terminal Activity (<a href="https://github.com/sugarlabs/terminal-activity" rel="noreferrer noreferrer" target="_blank">https://github.com/sugarlabs/terminal-activity</a>),
<br>
change your directory to `~/Activities/StickHero.Activity` and
then run <br>
`sugar-activity3`, this will launch your activity. After you
close your <br>
activity, you can see the logs in the Terminal itself.<br>
<br>
Hope I did not complicate things. if you have any more
questions, you <br>
can join #sugar on IRC <br>
(<a href="https://wiki.sugarlabs.org/go/Internet_Relay_Chat" rel="noreferrer noreferrer" target="_blank">https://wiki.sugarlabs.org/go/Internet_Relay_Chat</a>)
. we will try to <br>
help you out,<br>
<br>
-- <br>
V/r<br>
Srevin Saju<br>
<br>
</blockquote>
</div>
</blockquote>
<pre cols="72">--
V/r
Srevin Saju</pre>
</div>
</blockquote></div>