<div dir="ltr">Thank you so much! I realised that the problem lay in my PYTHONPATH variable. I just did export PYTHONPATH=/usr/lib/python2.7/dist-packages and it worked. Thank  you for all the suggestions and help!<br><div><br></div><div>Regards</div><div>Ananya Appan</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Dec 20, 2019 at 12:53 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 letting us know.<br>
<br>
What you describe doesn't match any problem I've seen with Ubuntu<br>
18.04.  You will have to diagnose the cause further.<br>
<br>
For example, if "python2 -c 'import sugar3'" does not work, and yet<br>
python-sugar3 package is installed, there must be something wrong with<br>
the installation of python or something wrong with the python-sugar3<br>
package.<br>
<br>
Concentrate on why "import sugar3" does not work.  Until it works,<br>
there is no way for Sugar to run, and no need to test the same.<br>
<br>
If you'd like to try a customised Ubuntu 18.04 with Sugar already<br>
installed, see OLPC OS 13.2.10,<br>
<a href="http://wiki.laptop.org/go/Release_notes/18.04.0" rel="noreferrer" target="_blank">http://wiki.laptop.org/go/Release_notes/18.04.0</a><br>
<br>
On Thu, Dec 19, 2019 at 06:28:57PM +0530, Ananya Appan wrote:<br>
> Thank you so much! I am still facing problems though.<br>
> <br>
> I tried it on python2, and I got the same error. I tried installing the sugar<br>
> desktop by installing the sucrose package using "sudo apt install sucrose" .<br>
> However, on logging out and trying to login after selecting the sugar desktop,<br>
> I am unable to login. The login screen is continuously prompted to me without<br>
> displaying any error message. Sugar3 has been installed in the directory /usr/<br>
> lib/python2.7/dist-packages/ . I'm not sure why I'm unable to import the<br>
> module.<br>
> <br>
> Thanks and Regards<br>
> Ananya Appan<br>
> <br>
> On Thu, Dec 19, 2019 at 1:21 AM James Cameron <[1]<a href="mailto:quozl@laptop.org" target="_blank">quozl@laptop.org</a>> wrote:<br>
> <br>
>     Yes, that's the correct method for installing sugar-toolkit-gtk3 on<br>
>     Ubuntu 18.04, so perhaps you are not testing correctly; make sure you<br>
>     use python2, as the Ubuntu team for 18.04 have only packaged for<br>
>     python2.<br>
> <br>
>     e.g.<br>
> <br>
>     python2 -c 'import sugar3'<br>
> <br>
>     However, if you want to work on Python 3, you will have to upgrade<br>
>     from Ubuntu 18.04, using a package name python3-sugar3, which is<br>
>     available in Debian but not yet available in Ubuntu,<br>
> <br>
>     Choose either;<br>
> <br>
>     1.  install the Debian unstable package python-sugar3 0.116 and the<br>
>     experimental package python3-sugar3 0.116, or;<br>
> <br>
>     2.  remove the package python-sugar3 and use the Native Sugar method,<br>
>     [2]<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#native-sugar<br>
>     or;<br>
> <br>
>     3.  install Sugar Live Build as a virtual machine.<br>
> <br>
>     On Wed, Dec 18, 2019 at 10:00:42PM +0530, Ananya Appan wrote:<br>
>     > Hello!<br>
>     ><br>
>     > I would like to know how to install sugar-toolkit-gtk3 for Ubuntu 18.04.<br>
>     I have<br>
>     > tried sudo apt-get install python-sugar3, but I still get the following<br>
>     error<br>
>     > on running setup.py.<br>
>     ><br>
>     > ImportError: No module named sugar3.activity<br>
>     ><br>
>     > Thanks in advance.<br>
>     ><br>
>     > Regards<br>
>     > Ananya Appan<br>
> <br>
>     > _______________________________________________<br>
>     > Sugar-devel mailing list<br>
>     > [3]<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
>     > [4]<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]<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/blob/master/docs/development-environment.md#native-sugar" rel="noreferrer" target="_blank">https://github.com/sugarlabs/sugar/blob/master/docs/development-environment.md#native-sugar</a><br>
> [3] mailto:<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
> [4] <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
> [5] <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>