<div dir="ltr">Thanks. James.<div>Agreed, there can be a number of runtime dependencies that the user has to install. I don't think mentioning them all in the documentation</div><div>will be a good idea. What do you think?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 16, 2019 at 9:31 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">Thanks for testing, Aniket.<br>
<br>
Because 0.113 introduces a dependency on Six for the first time, the<br>
method of resolving dependencies in the instructions is out of date.<br>
<br>
I've added<br>
<a href="https://github.com/sugarlabs/sugar/pull/829/commits/97d1ef60b65a0fffe52ec4070944e2b03fe56ac2" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar/pull/829/commits/97d1ef60b65a0fffe52ec4070944e2b03fe56ac2</a><br>
to the pull request.<br>
<br>
Yes, you are correct that dependencies are not added during build,<br>
this is something you may have to do yourself.<br>
<br>
For instance, after you've built Sugar, there are a set of run-time<br>
dependencies to install. I'm working on refining the instructions<br>
some more. Let me know how you go.<br>
<br>
On Thu, May 16, 2019 at 09:23:08AM +0530, ANIKET MATHUR wrote:<br>
> hey,<br>
> I tested the changes that James made.<br>
> I started with a fresh Ubuntu 18.04 VM. Cloned artwork, datastore,<br>
> toolkit-gtk3, and sugar.<br>
> Applied his patch to toolkit-gtk3 and then followed the native procedure in the<br>
> documentation considering his changes.<br>
> I installed the toolkit for both python2 and python3.<br>
> But when I run sugar from the command line I got an import error <br>
> "import six<br>
> "ImportError:No module named six"<br>
> I am not sure why I got this error, do the dependencies and libraries used by<br>
> python3 do not get installed when the toolkit for python 3 is built?<br>
> Please help.<br>
> Thanks!<br>
> <br>
> On Wed, May 15, 2019 at 1:49 PM James Cameron <[1]<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a>> wrote:<br>
> <br>
>Â Â Â Thanks!<br>
> <br>
>Â Â Â I've proposed a pull request to let the caller specify the Python<br>
>Â Â Â version, and a draft pull request documenting how to build for both<br>
>Â Â Â versions.<br>
> <br>
>Â Â Â [2]<a href="https://github.com/sugarlabs/sugar-toolkit-gtk3/pull/411" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar-toolkit-gtk3/pull/411</a><br>
>Â Â Â [3]<a href="https://github.com/sugarlabs/sugar/pull/829" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar/pull/829</a><br>
> <br>
>Â Â Â Aniket, when you say v0.113 this means you are using either git tag<br>
>   v0.113 (i.e. e30b73f) or tarball. Seems unlikely you are doing that,<br>
>   but instead you would be using HEAD of master branch instead. Is my<br>
>Â Â Â guess right?<br>
> <br>
>Â Â Â Regarding the segmentation fault, please check<br>
>Â Â Â .sugar/default/logs/shell.log for any details, or run within gdb and<br>
>Â Â Â capture a backtrace of all threads.<br>
> <br>
>Â Â Â On Wed, May 15, 2019 at 01:31:23PM +0530, ANIKET MATHUR wrote:<br>
>Â Â Â > Regards,<br>
>   > I agree with, James. What I think is that since [1]this pr is not yet<br>
>Â Â Â merged<br>
>   > into master, sugar requires python 2, <br>
>Â Â Â > and the way I was installing Sugar builds the toolkit for Python 3. So I<br>
>Â Â Â first<br>
>Â Â Â > installed Sugar from sucrose and then installed the toolkit-gtk3 v0.113<br>
>Â Â Â by<br>
>Â Â Â > hand.<br>
>Â Â Â > Doing this I am able to test ported activities through the command line<br>
>Â Â Â using<br>
>Â Â Â > Ubuntu 18.04 terminal, but opening Sugar home view causes "Segmentation<br>
>Â Â Â fault"<br>
>Â Â Â > with a warning "python2.7 has stopped unexpectedly". I am not yet able to<br>
>Â Â Â > figure out the reason for this.<br>
>Â Â Â ><br>
>   > Regarding the Python version in [2][4]<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a>, I think that the<br>
>Â Â Â caller should<br>
>Â Â Â > be allowed to specify the version or alternatively since we are porting<br>
>Â Â Â to six,<br>
>Â Â Â > a method building for both python2 and python3 would be great.<br>
>Â Â Â ><br>
>Â Â Â > I don't expect myself to be 100 percent right and expect to be corrected<br>
>Â Â Â > wherever required.<br>
>Â Â Â ><br>
>   > Thanks a lot, everyone. ☺<br>
>Â Â Â ><br>
>Â Â Â > On Wed, May 15, 2019 at 3:17 AM James Cameron <[3][5]<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a>><br>
>Â Â Â wrote:<br>
>Â Â Â ><br>
>Â Â Â >Â Â Â G'day Aniket,<br>
>Â Â Â ><br>
>Â Â Â >Â Â Â If you were using the native sugar build method, then you are using<br>
>   >   HEAD, which contains all patches since 0.113. Don't try to apply the<br>
>Â Â Â >Â Â Â patch that Alex pointed out, as it is already applied.<br>
>Â Â Â ><br>
>Â Â Â >Â Â Â The error message "ImportError: No module named sugar3" is caused by<br>
>Â Â Â >Â Â Â not installing the Toolkit for Python 2.<br>
>Â Â Â ><br>
>Â Â Â >Â Â Â Sugar 0.113 requires Python 2.<br>
>Â Â Â ><br>
>Â Â Â >Â Â Â Toolkit by default installs for Python 3.<br>
>Â Â Â ><br>
>Â Â Â >Â Â Â You can verify this is the situation by testing the import by hand<br>
>Â Â Â >Â Â Â using different versions of Python;<br>
>Â Â Â ><br>
>Â Â Â >Â Â Â python3 -c 'import sugar3'Â # expect pass<br>
>Â Â Â ><br>
>Â Â Â >Â Â Â python2 -c 'import sugar3'Â # expect fail<br>
>Â Â Â ><br>
>Â Â Â >Â Â Â You'll find in [4][6]<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a> where the Python version is chosen.<br>
>Â Â Â ><br>
>Â Â Â >Â Â Â [5][7]<a href="https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/</a><br>
>Â Â Â <a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
>Â Â Â >Â Â Â #L18<br>
>Â Â Â ><br>
>Â Â Â >Â Â Â Perhaps that line should allow the caller to specify the version.<br>
>Â Â Â ><br>
>Â Â Â >Â Â Â What do you think?<br>
>Â Â Â ><br>
>Â Â Â >Â Â Â On Tue, May 14, 2019 at 04:42:16PM +0530, ANIKET MATHUR wrote:<br>
>Â Â Â >Â Â Â > Greetings everyone,<br>
>Â Â Â >Â Â Â ><br>
>   >   > I was installing Sugar v0.113 using the Native Sugar build method <br>
>Â Â Â [1]<br>
>Â Â Â >Â Â Â here. I<br>
>Â Â Â >Â Â Â > was using Ubuntu 18.10. After installation, on running Sugar I<br>
>Â Â Â received<br>
>Â Â Â >Â Â Â the<br>
>Â Â Â >Â Â Â > error message "ImportError: No module named sugar3". Need help with<br>
>Â Â Â a<br>
>Â Â Â >Â Â Â couple of<br>
>   >   > questions <br>
>Â Â Â >Â Â Â > 1) Is there a need to have a build of the older version for v0.113<br>
>Â Â Â to<br>
>Â Â Â >Â Â Â work<br>
>Â Â Â >Â Â Â > properly?<br>
>Â Â Â >Â Â Â > (never paid attention to that before).<br>
>Â Â Â >Â Â Â > Â 2) What is the correct procedure for installing v0.113?<br>
>   >   > Thanks!  <br>
>Â Â Â >Â Â Â ><br>
>Â Â Â >Â Â Â > References:<br>
>Â Â Â >Â Â Â ><br>
>Â Â Â >Â Â Â > [1] [6][8]<a href="https://github.com/sugarlabs/sugar/blob/master/docs/" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar/blob/master/docs/</a><br>
>Â Â Â >Â Â Â development-environment.md<br>
>Â Â Â ><br>
>Â Â Â >Â Â Â > _______________________________________________<br>
>Â Â Â >Â Â Â > Sugar-devel mailing list<br>
>Â Â Â >Â Â Â > [7][9]<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
>Â Â Â >Â Â Â > [8][10]<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>
>Â Â Â >Â Â Â [9][11]<a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
>Â Â Â ><br>
>Â Â Â > References:<br>
>Â Â Â ><br>
>Â Â Â > [1] [12]<a href="https://github.com/sugarlabs/sugar/pull/805" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar/pull/805</a><br>
>Â Â Â > [2] [13]<a href="http://configure.ac/" rel="noreferrer" target="_blank">http://configure.ac/</a><br>
>Â Â Â > [3] mailto:[14]<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a><br>
>Â Â Â > [4] [15]<a href="http://configure.ac/" rel="noreferrer" target="_blank">http://configure.ac/</a><br>
>Â Â Â > [5] [16]<a href="https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/</a><br>
>Â Â Â <a href="http://configure.ac#L18" rel="noreferrer" target="_blank">configure.ac#L18</a><br>
>Â Â Â > [6] [17]<a href="https://github.com/sugarlabs/sugar/blob/master/docs/" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar/blob/master/docs/</a><br>
>Â Â Â development-environment.md<br>
>Â Â Â > [7] mailto:[18]<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
>Â Â Â > [8] [19]<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
>Â Â Â > [9] [20]<a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
> <br>
>Â Â Â --<br>
>Â Â Â James Cameron<br>
>Â Â Â [21]<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:quozl@laptop.org" target="_blank">quozl@laptop.org</a><br>
> [2] <a href="https://github.com/sugarlabs/sugar-toolkit-gtk3/pull/411" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar-toolkit-gtk3/pull/411</a><br>
> [3] <a href="https://github.com/sugarlabs/sugar/pull/829" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar/pull/829</a><br>
> [4] <a href="http://configure.ac/" rel="noreferrer" target="_blank">http://configure.ac/</a><br>
> [5] mailto:<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a><br>
> [6] <a href="http://configure.ac/" rel="noreferrer" target="_blank">http://configure.ac/</a><br>
> [7] <a href="https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/configure.ac" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/configure.ac</a><br>
> [8] <a href="https://github.com/sugarlabs/sugar/blob/master/docs/" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar/blob/master/docs/</a><br>
> [9] mailto:<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
> [10] <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
> [11] <a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
> [12] <a href="https://github.com/sugarlabs/sugar/pull/805" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar/pull/805</a><br>
> [13] <a href="http://configure.ac/" rel="noreferrer" target="_blank">http://configure.ac/</a><br>
> [14] mailto:<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a><br>
> [15] <a href="http://configure.ac/" rel="noreferrer" target="_blank">http://configure.ac/</a><br>
> [16] <a href="https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/configure.ac#L18" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/configure.ac#L18</a><br>
> [17] <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>
> [18] mailto:<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
> [19] <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
> [20] <a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
> [21] <a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
<br>
> _______________________________________________<br>
> Sugar-devel mailing list<br>
> <a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
> <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
<br>
<br>
-- <br>
James Cameron<br>
<a href="http://quozl.netrek.org/" rel="noreferrer" target="_blank">http://quozl.netrek.org/</a><br>
</blockquote></div>