[Sugar-devel] sugar-toolkit-gtk3 installation

James Cameron quozl at laptop.org
Fri Dec 20 15:23:10 EST 2019


Thanks for this information.  Can you confirm for me that you had
changed PYTHONPATH from the default after installation of Ubuntu
18.04?

That will help us all be certain that this was not a problem with
Sugar or Ubuntu.

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

-- 
James Cameron
http://quozl.netrek.org/


More information about the Sugar-devel mailing list