[bitbake-devel] [PATCH] bb/tinfoil.py: import bb.msg

Robert Yang liezhi.yang at windriver.com
Thu Jun 1 02:52:12 UTC 2017



On 05/27/2017 06:21 PM, Robert Yang wrote:
> It uses bb.msg without import it, so there might be errors like:
> AttributeError: 'module' object has no attribute 'logger_create'
>
> We can't reproduce the problem everytime, I think that it depends on the order.

Sorry, please drop this patch, I just figured out the reason.

The logger_create() was added to bb.msg two months ago, so if I import an
older bb.msg, and then switch bitbake to a new branch and use tinfoil.py,
the error will happen (my code error in layerindex caused this).

// Robert

>
> Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
> ---
>  lib/bb/tinfoil.py | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/lib/bb/tinfoil.py b/lib/bb/tinfoil.py
> index 928333a..a0d8a16 100644
> --- a/lib/bb/tinfoil.py
> +++ b/lib/bb/tinfoil.py
> @@ -33,6 +33,7 @@ import bb.remotedata
>  from bb.cookerdata import CookerConfiguration, ConfigParameters
>  from bb.main import setup_bitbake, BitBakeConfigParameters, BBMainException
>  import bb.fetch2
> +import bb.msg
>
>
>  # We need this in order to shut down the connection to the bitbake server,
>



More information about the bitbake-devel mailing list