<div dir="ltr"><div dir="ltr">Regards,<div>I agree with, James. What I think is that since <a href="https://github.com/sugarlabs/sugar/pull/805">this pr</a> is not yet merged into master, sugar requires python 2, </div><div>and the way I was installing Sugar builds the toolkit for Python 3. So I first installed Sugar from sucrose and then installed the toolkit-gtk3 v0.113 by hand.</div><div>Doing this I am able to test ported activities through the command line using Ubuntu 18.04 terminal, but opening Sugar home view causes "Segmentation fault" with a warning "python2.7 has stopped unexpectedly". I am not yet able to figure out the reason for this.</div><div><br></div><div>Regarding the Python version in <a href="http://configure.ac/" rel="noreferrer" target="_blank">configure.ac</a>, I think that the caller should be allowed to specify the version or alternatively since we are porting to six, a method building for both python2 and python3 would be great.</div><div><br></div><div>I don't expect myself to be 100 percent right and expect to be corrected wherever required.</div><div><br></div><div>Thanks a lot, everyone. ☺</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 15, 2019 at 3:17 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">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 <a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a> where the Python version is chosen.<br>
<br>
<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>
<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 [1]here. I<br>
> was using Ubuntu 18.10. After installation, on running Sugar I received the<br>
> error message "ImportError: No module named sugar3". Need help with a couple of<br>
> questions <br>
> 1) Is there a need to have a build of the older version for v0.113 to 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] <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>
<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></div>