[bitbake-devel] [PATCH 1/2] utils: Avoid warnings about deprecated imp module

richard.purdie at linuxfoundation.org richard.purdie at linuxfoundation.org
Tue Nov 13 23:13:30 UTC 2018


On Tue, 2018-11-13 at 15:11 -0800, akuster808 wrote:
> On 11/13/18 2:59 PM, Richard Purdie wrote:
> > The imp module is deprecated, port the code over to use importlib.
> > 
> > bitbake/lib/bb/utils.py:30: DeprecationWarning: the imp module is
> > deprecated in favour of importlib; see the module's documentation
> > for alternative uses
> >   import imp
> 
> so host side? Thud and Sumo backport?

Yes, but I think the patch crashes and burns on python34 as I clearly
didn't understand the docs correctly as I thought this was 3.4 safe.

So more investigation/work needed...

We hide most of these warnings anyway, I just decided we should really
fix some of them before 3.7+ bites us.

Cheers,

Richard



More information about the bitbake-devel mailing list