All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bb/tinfoil.py: import bb.msg
@ 2017-05-27 10:21 Robert Yang
  2017-06-01  2:52 ` Robert Yang
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Yang @ 2017-05-27 10:21 UTC (permalink / raw)
  To: bitbake-devel; +Cc: paul.eggleton

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.

Signed-off-by: Robert Yang <liezhi.yang@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,
-- 
2.10.2



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] bb/tinfoil.py: import bb.msg
  2017-05-27 10:21 [PATCH] bb/tinfoil.py: import bb.msg Robert Yang
@ 2017-06-01  2:52 ` Robert Yang
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Yang @ 2017-06-01  2:52 UTC (permalink / raw)
  To: bitbake-devel; +Cc: paul.eggleton



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@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,
>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-01  2:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-27 10:21 [PATCH] bb/tinfoil.py: import bb.msg Robert Yang
2017-06-01  2:52 ` Robert Yang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.