All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jason Wessel <jason.wessel@windriver.com>
To: Chris Larson <clarson@kergoth.com>
Cc: "bitbake-devel@lists.openembedded.org"
	<bitbake-devel@lists.openembedded.org>
Subject: Re: trouble during parsing
Date: Mon, 25 Feb 2013 09:13:45 -0600	[thread overview]
Message-ID: <512B7FA9.6030508@windriver.com> (raw)
In-Reply-To: <CAPhnLPBwwM84Pu25od0pLr2446-RSbGsDHQbayQE3g+xNV2tkw@mail.gmail.com>

On 02/24/2013 08:28 PM, Flanagan, Elizabeth wrote:
> On Sun, Feb 24, 2013 at 6:12 PM, Flanagan, Elizabeth
> <elizabeth.flanagan@intel.com> wrote:
>> On Wed, Feb 20, 2013 at 6:31 AM, Chris Larson <clarson@kergoth.com> wrote:
>>>
>>> On Wed, Feb 20, 2013 at 5:54 AM, Andreas Müller
>>> <schnitzeltony@googlemail.com> wrote:
>>>>
>>>> with current bitbake master I get
>>>>
>>>> ERROR: Command execution failed: Traceback (most recent call
>>>> last):#########################################################
>>>> | ETA: 00:00:17
>>>> File "/home/andreas/oe-core/sources/bitbake/lib/bb/command.py", line
>>>> 92, in runAsyncCommand
>>>> self.cooker.updateCache()
>>>> File "/home/andreas/oe-core/sources/bitbake/lib/bb/cooker.py", line
>>>> 1330, in updateCache
>>>> if not self.parser.parse_next():
>>>> File "/home/andreas/oe-core/sources/bitbake/lib/bb/cooker.py", line
>>>> 1703, in parse_next
>>>> self.virtuals += len(result)
>>>> TypeError: object of type 'ExpansionError' has no len()
>>>
>>>
>>> Hmm, looks like it's returning the exceptions rather than raising them, for
>>> some reason, but that doesn't make much sense — the pool code always raises
>>> any exceptions from its imap iterator's next() method.
>>
>
> Ach, should have updated my email. Seems reverting
> 0a99563a4ea270594fd9a61da46f9387fb79dc66 cleared up the issue.

The real question is what are the expansion errors about here.  This is probably not the right way to fix it, but it at least allows you to see what is behind the expansion error:

diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 448f899..b166425 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -1661,6 +1661,8 @@ class CookerParser(object):
         parsed = None
         try:
             parsed, result = self.results.next()
+            if isinstance(result, BaseException):
+                raise result
         except StopIteration:
             self.shutdown()
             return False





      parent reply	other threads:[~2013-02-25 15:30 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-20 12:54 trouble during parsing Andreas Müller
2013-02-20 14:31 ` Chris Larson
2013-02-25  2:12   ` Flanagan, Elizabeth
2013-02-25  2:28     ` Flanagan, Elizabeth
2013-02-25  9:32       ` Andreas Müller
2013-02-25  9:32         ` [bitbake-devel] " Andreas Müller
2013-02-25  9:46         ` [meta-ti] " Javier Martinez Canillas
2013-02-25  9:46           ` [bitbake-devel] " Javier Martinez Canillas
2013-02-25 10:02           ` [meta-ti] " Andreas Müller
2013-02-25 10:02             ` [bitbake-devel] " Andreas Müller
2013-02-25 13:44             ` [meta-ti] " Trevor Woerner
2013-02-25 14:01               ` Richard Purdie
2013-02-25 14:07                 ` Gary Thomas
2013-02-25 15:24                   ` Trevor Woerner
2013-02-25 14:32             ` Denys Dmytriyenko
2013-02-25 14:32               ` [bitbake-devel] " Denys Dmytriyenko
2013-02-25 15:13       ` Jason Wessel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=512B7FA9.6030508@windriver.com \
    --to=jason.wessel@windriver.com \
    --cc=bitbake-devel@lists.openembedded.org \
    --cc=clarson@kergoth.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.