Re: [yocto] Python GObject Errors on yocto-2.1_M3.rc2

2016-04-08 Thread Alexander Kanavin
On 04/07/2016 07:58 PM, Chris Trobridge wrote: http://cgit.openembedded.org/meta-openembedded/tree/meta-python/recipes-devtools/python > > Will be fixed by deprecating python 2, of course. > > Alex Is there a shorter term solution that's generally applicable, like a separate

Re: [yocto] Python GObject Errors on yocto-2.1_M3.rc2

2016-04-07 Thread Chris Trobridge
> To: yocto@yoctoproject.org > From: alexander.kana...@linux.intel.com > Date: Thu, 7 Apr 2016 16:40:30 +0300 > Subject: Re: [yocto] Python GObject Errors on yocto-2.1_M3.rc2 > > On 04/07/2016 04:35 PM, Burton, Ross wrote: > > > Yeah, that. :) Annoyingly it's not just

Re: [yocto] Python GObject Errors on yocto-2.1_M3.rc2

2016-04-07 Thread Alexander Kanavin
On 04/07/2016 04:35 PM, Burton, Ross wrote: Yeah, that. :) Annoyingly it's not just a PACKAGECONFIG due to how python-native works. Yeah, the annoying side effect is that every python thingy needs to be packaged twice - not so visible in oe-core, but very visible in meta-oe's meta-python:

Re: [yocto] Python GObject Errors on yocto-2.1_M3.rc2

2016-04-07 Thread Burton, Ross
On 7 April 2016 at 14:28, Alexander Kanavin < alexander.kana...@linux.intel.com> wrote: > You need to change the inherits to pull in python3native. Sadly >> flipping between py2 and py3 isn't trivial. >> > > I think 'git revert 7f7c9ab29eba0e58916629ca13dc4a494535ce19' should do > the trick, how

Re: [yocto] Python GObject Errors on yocto-2.1_M3.rc2

2016-04-07 Thread Alexander Kanavin
On 04/06/2016 06:52 PM, Burton, Ross wrote: Regarding python3, whenever I change the "--with-python" option to something other than "python2.7" then I get an error. You need to change the inherits to pull in python3native. Sadly flipping between py2 and py3 isn't trivial. I think

Re: [yocto] Python GObject Errors on yocto-2.1_M3.rc2

2016-04-06 Thread Burton, Ross
On 6 April 2016 at 16:45, Chris Trobridge wrote: > I will try to sort that out tomorrow (p...@yoctoproject.org, right?). > No, openembedded-c...@lists.openembedded.org Regarding python3, whenever I change the "--with-python" option to > something other than

Re: [yocto] Python GObject Errors on yocto-2.1_M3.rc2

2016-04-06 Thread Chris Trobridge
> From: ross.bur...@intel.com > Date: Wed, 6 Apr 2016 12:22:39 +0100 > Subject: Re: [yocto] Python GObject Errors on yocto-2.1_M3.rc2 > To: christrobri...@hotmail.com > CC: yocto@yoctoproject.org > > > On 6 April 2016 at 12:19, Chris

Re: [yocto] Python GObject Errors on yocto-2.1_M3.rc2

2016-04-06 Thread Burton, Ross
On 6 April 2016 at 12:19, Chris Trobridge wrote: > This did the trick for python 2.7, and "from gi.repository import GObject" > works too. > Can you send a patch to add this dependency to the pygobject package? Ross --

Re: [yocto] Python GObject Errors on yocto-2.1_M3.rc2

2016-04-06 Thread Chris Trobridge
Wed, 6 Apr 2016 11:57:10 +0100 Subject: Re: [yocto] Python GObject Errors on yocto-2.1_M3.rc2 To: christrobri...@hotmail.com CC: yocto@yoctoproject.org On 6 April 2016 at 11:53, Chris Trobridge <christrobri...@hotmail.com> wrote: ImportError: No module named importlib Looks like python-gobject

Re: [yocto] Python GObject Errors on yocto-2.1_M3.rc2

2016-04-06 Thread Burton, Ross
On 6 April 2016 at 11:53, Chris Trobridge wrote: > ImportError: No module named importlib > Looks like python-gobject needs to depend on python-importlib. Not sure why that isn't in -core to be honest. Can you add python-importlib to your image and see if it then