Bug 2977 - AttributeError: 'exceptions.TypeError' object has no attribute 'recipe'
Summary: AttributeError: 'exceptions.TypeError' object has no attribute 'recipe'
Status: RESOLVED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.1.2
Assignee: Paul Eggleton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-08-21 07:33 UTC by Martin Jansa
Modified: 2012-09-10 12:27 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments
bitbake.zip (36.61 KB, application/x-zip-compressed)
2012-08-21 08:09 UTC, Martin Jansa
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Jansa 2012-08-21 07:33:02 UTC
Updating cache sometimes fails, but does not say which recipe is failing to parse:

ERROR: Command execution failed: Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/bb/command.py", line 84, in runAsyncCommand
    self.cooker.updateCache()
  File "/usr/lib64/python2.7/site-packages/bb/cooker.py", line 1207, in updateCache
    if not self.parser.parse_next():
  File "/usr/lib64/python2.7/site-packages/bb/cooker.py", line 1684, in parse_next
    logger.error('Unable to parse %s', value.recipe,
AttributeError: 'exceptions.TypeError' object has no attribute 'recipe'
Comment 1 Martin Jansa 2012-08-21 08:09:55 UTC
Created attachment 708 [details]
bitbake.zip

even with debug output of
bitbake -v -v -D shr-image 2>&1 | tee -a log
I cannot find which recipe/file is causing this

latest oe-core and bitbake
oe-core: 04568d1f18250d531aad5d286157d2d559083520
bitbake: e5045429bce15b66c4355be214db3982ac7761f3
Comment 2 Paul Eggleton 2012-08-28 12:45:12 UTC
There have been a number of error handling fixes in master over the last week - is this issue still reproducible with current master?
Comment 3 Paul Eggleton 2012-09-03 14:33:11 UTC
Changing status to NEEDINFO
Comment 4 Paul Eggleton 2012-09-07 15:23:57 UTC
OK, with some help from Martin last night I tracked down the cause of this and have sent some patches to the bitbake-devel mailing list.