[OE-core] New ugly parsing error, when SRCPV fails to expand

Martin Jansa martin.jansa at gmail.com
Fri Feb 15 00:30:44 UTC 2013


Failing to get recipe from upstream svn repository now fails with ugly 
stack trace.

I have bitbake/master from today and it's not really google-glog fault I had network 
issue when bitbake was parsing, but error message should look better (it looked better
before)

Parsing recipes...ERROR: Error executing a python function in <code>:
ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError: Fetcher failure: Fetch command failed with exit
 code 1, output:
svn: E175002: Unable to connect to a repository at URL 'http://google-glog.googlecode.com/svn/trunk'
svn: E175002: OPTIONS of 'http://google-glog.googlecode.com/svn/trunk': Could not resolve hostname `google-glog.googlecode.com': Host not found (http://google-glog.googlecode.com
)


ERROR: The stack trace of python calls that resulted in this exception/failure was:
ERROR:   File "<code>", line 1, in <module>
ERROR:
ERROR:   File "__anon_620__OE_shr_core_openembedded_core_meta_classes_base_bbclass", line 209, in __anon_620__OE_shr_core_openembedded_core_meta_classes_base_bbclass
ERROR:
ERROR:   File "/OE/shr-core/bitbake/lib/bb/data_smart.py", line 503, in getVar
ERROR:     return self.expand(value, var)
ERROR:
ERROR:   File "/OE/shr-core/bitbake/lib/bb/data_smart.py", line 336, in expand
ERROR:     return self.expandWithRefs(s, varname).value
ERROR:
ERROR:   File "/OE/shr-core/bitbake/lib/bb/data_smart.py", line 317, in expandWithRefs
ERROR:     s = __expand_var_regexp__.sub(varparse.var_sub, s)
ERROR:
ERROR:   File "/OE/shr-core/bitbake/lib/bb/data_smart.py", line 97, in var_sub
ERROR:     var = self.d.getVar(key, True)
ERROR:
ERROR:   File "/OE/shr-core/bitbake/lib/bb/data_smart.py", line 503, in getVar
ERROR:     return self.expand(value, var)
ERROR:
ERROR:   File "/OE/shr-core/bitbake/lib/bb/data_smart.py", line 336, in expand
ERROR:     return self.expandWithRefs(s, varname).value
ERROR:
ERROR:   File "/OE/shr-core/bitbake/lib/bb/data_smart.py", line 317, in expandWithRefs
ERROR:     s = __expand_var_regexp__.sub(varparse.var_sub, s)
ERROR:
ERROR:   File "/OE/shr-core/bitbake/lib/bb/data_smart.py", line 97, in var_sub
ERROR:     var = self.d.getVar(key, True)
ERROR:
ERROR:   File "/OE/shr-core/bitbake/lib/bb/data_smart.py", line 503, in getVar
ERROR:     return self.expand(value, var)
ERROR:
ERROR:   File "/OE/shr-core/bitbake/lib/bb/data_smart.py", line 336, in expand
ERROR:     return self.expandWithRefs(s, varname).value
ERROR:
ERROR:   File "/OE/shr-core/bitbake/lib/bb/data_smart.py", line 317, in expandWithRefs
ERROR:     s = __expand_var_regexp__.sub(varparse.var_sub, s)
ERROR:
ERROR:   File "/OE/shr-core/bitbake/lib/bb/data_smart.py", line 97, in var_sub
ERROR:     var = self.d.getVar(key, True)
ERROR:
ERROR:   File "/OE/shr-core/bitbake/lib/bb/data_smart.py", line 503, in getVar
ERROR:     return self.expand(value, var)
ERROR:
ERROR:   File "/OE/shr-core/bitbake/lib/bb/data_smart.py", line 336, in expand
ERROR:     return self.expandWithRefs(s, varname).value
ERROR:
ERROR:   File "/OE/shr-core/bitbake/lib/bb/data_smart.py", line 326, in expandWithRefs
ERROR:     raise ExpansionError(varname, s, exc)
ERROR:
ERROR: The code that was being executed was:
ERROR:  *** 0001:__anon_620__OE_shr_core_openembedded_core_meta_classes_base_bbclass(d)
ERROR:      0002:__anon_227__OE_shr_core_openembedded_core_meta_classes_package_bbclass(d)
ERROR:      0003:__anon_20__OE_shr_core_openembedded_core_meta_classes_blacklist_bbclass(d)
ERROR:      0004:__anon_20__OE_shr_core_openembedded_core_meta_classes_debian_bbclass(d)
ERROR:      0005:__anon_474__OE_shr_core_openembedded_core_meta_classes_package_ipk_bbclass(d)
ERROR: [From file: '<code>', lineno: 1, function: <module>]
ERROR:      0205:    #
ERROR:      0206:    override = d.getVar('SRC_URI_OVERRIDES_PACKAGE_ARCH', True)
ERROR:      0207:    if override != '0':
ERROR:      0208:        paths = []
ERROR:  *** 0209:        fpaths = (d.getVar('FILESPATH', True) or '').split(':')
ERROR:      0210:        machine = d.getVar('MACHINE', True)
ERROR:      0211:        for p in fpaths:
ERROR:      0212:            if os.path.basename(p) == machine and os.path.isdir(p):
ERROR:      0213:                paths.append(p)
ERROR: [From file: '__anon_620__OE_shr_core_openembedded_core_meta_classes_base_bbclass', lineno: 209, function: __anon_620__OE_shr_core_openembedded_core_meta_classes_base_bbclass]
ERROR: Failed to parse recipe: /OE/shr-core/meta-openembedded/meta-oe/recipes-support/google-glog/google-glog_svn.bb
ERROR: Command execution failed: Exited with 1

Summary: There were 70 ERROR messages shown, returning a non-zero exit code.

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20130215/7af64304/attachment-0002.sig>


More information about the Openembedded-core mailing list