[Sugar-devel] getting the Sugar Toolkit working with python 3
soham bhattacharya
116cs0171 at nitrkl.ac.in
Fri Jan 24 13:52:42 EST 2020
Thanks, moving the sugar3 directory from /usr/local/lib/python3.6/site-packages/ to /usr/local/lib/python3.6/dist-packages/ did the trick.
----- Original Message -----
From: "James Cameron" <quozl at laptop.org>
To: "soham bhattacharya" <116cs0171 at nitrkl.ac.in>
Cc: "sugar-devel" <sugar-devel at lists.sugarlabs.org>
Sent: Friday, January 24, 2020 11:35:59 PM
Subject: Re: [Sugar-devel] getting the Sugar Toolkit working with python 3
Not without knowing why the files are not found by Python. Please
diagnose that.
See also
https://github.com/sugarlabs/sugar/blob/master/docs/development-environment.md
and in particular the note about how Debian and Ubuntu systems are
preconfigured not to discover any Python package installed by the
user, because the files are installed to site-packages instead of
dist-packages.
On Fri, Jan 24, 2020 at 08:13:17PM +0530, soham bhattacharya wrote:
>
> Okay I tried building the sugar toolkit from https://github.com/sugarlabs/sugar-toolkit-gtk3. As per documentation I used autogen.sh, make, and make install. But still importing sugar3 in python3 does not work. Can you please help me to install sugar toolkit version 0.116 to python3.
>
> Thanks
> ----- Original Message -----
> From: "James Cameron" <quozl at laptop.org>
> To: "soham bhattacharya" <116cs0171 at nitrkl.ac.in>
> Cc: "sugar-devel" <sugar-devel at lists.sugarlabs.org>
> Sent: Friday, January 24, 2020 6:34:54 AM
> Subject: Re: [Sugar-devel] getting the Sugar Toolkit working with python 3
>
> What ppa? I don't know of any ppa. Perhaps you mean the Ubuntu
> package archive?
>
> The Python 3 package name will be python3-sugar3 once Ubuntu accepts it.
> Unlikely to happen unless someone wants it.
>
> The Python 2 package name is python-sugar3, and you can see the
> version history in Ubuntu here;
>
> https://packages.ubuntu.com/search?keywords=python-sugar3
>
> 0.112 was packaged in Ubuntu 18.04 and 19.04.
>
> Ubuntu take these packages from Debian. Debian is yet to move
> python3-sugar3 from experimental to testing release;
>
> https://packages.debian.org/search?keywords=python3-sugar3
>
> I've proposed a "Debian advocacy for Sugar" project idea for Google
> Summer of Code this year;
>
> https://github.com/sugarlabs/GSoC/blob/5ac9c642ff8c307e9348c2d357d0241c51d2cab4/Ideas-2020.md#debian-advocacy-for-sugar
>
> On Fri, Jan 24, 2020 at 06:12:39AM +0530, soham bhattacharya wrote:
> >
> > Yes, the installed version was 0.112. I guess the Ubuntu ppa was outdated. I will build and install. Thanks for the help.
> > ----- Original Message -----
> > From: "James Cameron" <quozl at laptop.org>
> > To: "soham bhattacharya" <116cs0171 at nitrkl.ac.in>
> > Cc: "sugar-devel" <sugar-devel at lists.sugarlabs.org>
> > Sent: Friday, January 24, 2020 3:10:07 AM
> > Subject: Re: [Sugar-devel] getting the Sugar Toolkit working with python 3
> >
> > What version of the Sugar Toolkit did you install?
> >
> > When you choose "apt install", you are relying on the Debian or Ubuntu
> > projects to have packaged Sugar Toolkit.
> >
> > Support for Python 3 was added in version 0.116.
> >
> > Make sure you have version 0.116 at least.
> >
> > On Fri, Jan 24, 2020 at 02:40:54AM +0530, soham bhattacharya wrote:
> > > Hi,
> > > I am Soham. I am new to the community and would like to contribute to Sugar Labs.
> > >
> > > The turtleart-activity(https://github.com/sugarlabs/turtleart-activity) repository mentions a dependency being the Sugar Toolkit. So I went to https://github.com/sugarlabs/sugar-toolkit-gtk3 and installed it using apt install, like it is mentioned in the readme. But whenever I open python3 and try import sugar3, it gives me a ModuleNotFoundError.
> > >
> > > So can anybody help me with getting the sugar toolkit running with python3. I am sorry if this is a silly question.
> > >
> > > Thank You
> > > _______________________________________________
> > > Sugar-devel mailing list
> > > Sugar-devel at lists.sugarlabs.org
> > > http://lists.sugarlabs.org/listinfo/sugar-devel
> >
> > --
> > James Cameron
> > http://quozl.netrek.org/
> > _______________________________________________
> > Sugar-devel mailing list
> > Sugar-devel at lists.sugarlabs.org
> > http://lists.sugarlabs.org/listinfo/sugar-devel
>
> --
> James Cameron
> http://quozl.netrek.org/
--
James Cameron
http://quozl.netrek.org/
More information about the Sugar-devel
mailing list