[oe] gitpkgv.bbclass: ExpansionError: Failure expanding variable GITPKGVTAG, expression was ${@get_git_pkgv(d, True)} which triggered exception TypeError: %d format: a number is required, not str
Paul Menzel
paulepanter at users.sourceforge.net
Wed May 25 07:42:22 UTC 2011
Dear OE folks,
task package of for example `systemd_git.bb` or `freerdp_git.bb` fails
with the following error message.
ERROR: Error executing a python function in /oe/openembedded/recipes/systemd/systemd_git.bb:
ExpansionError: Failure expanding variable GITPKGVTAG, expression was ${@get_git_pkgv(d, True)} which triggered exception TypeError: %d format: a number is required, not str
ERROR: The stack trace of python calls that resulted in this exception/failure was:
ERROR: File "package_do_package", line 23, in <module>
ERROR:
ERROR: File "package_do_package", line 19, in package_do_package
ERROR:
ERROR: File "/oe/bitbake/lib/bb/build.py", line 169, in exec_func
ERROR: exec_func_python(func, d, runfile, cwd=adir)
ERROR:
ERROR: File "/oe/bitbake/lib/bb/build.py", line 184, in exec_func_python
ERROR: code = _functionfmt.format(function=func, body=d.getVar(func, True))
ERROR:
ERROR: File "/oe/bitbake/lib/bb/data_smart.py", line 272, in getVar
ERROR: return self.expand(value, var)
ERROR:
ERROR: File "/oe/bitbake/lib/bb/data_smart.py", line 144, in expand
ERROR: return self.expandWithRefs(s, varname).value
ERROR:
ERROR: File "/oe/bitbake/lib/bb/data_smart.py", line 127, in expandWithRefs
ERROR: s = __expand_var_regexp__.sub(varparse.var_sub, s)
ERROR:
ERROR: File "/oe/bitbake/lib/bb/data_smart.py", line 60, in var_sub
ERROR: var = self.d.getVar(key, 1)
ERROR:
ERROR: File "/oe/bitbake/lib/bb/data_smart.py", line 272, in getVar
ERROR: return self.expand(value, var)
ERROR:
ERROR: File "/oe/bitbake/lib/bb/data_smart.py", line 144, in expand
ERROR: return self.expandWithRefs(s, varname).value
ERROR:
ERROR: File "/oe/bitbake/lib/bb/data_smart.py", line 127, in expandWithRefs
ERROR: s = __expand_var_regexp__.sub(varparse.var_sub, s)
ERROR:
ERROR: File "/oe/bitbake/lib/bb/data_smart.py", line 60, in var_sub
ERROR: var = self.d.getVar(key, 1)
ERROR:
ERROR: File "/oe/bitbake/lib/bb/data_smart.py", line 272, in getVar
ERROR: return self.expand(value, var)
ERROR:
ERROR: File "/oe/bitbake/lib/bb/data_smart.py", line 144, in expand
ERROR: return self.expandWithRefs(s, varname).value
ERROR:
ERROR: File "/oe/bitbake/lib/bb/data_smart.py", line 127, in expandWithRefs
ERROR: s = __expand_var_regexp__.sub(varparse.var_sub, s)
ERROR:
ERROR: File "/oe/bitbake/lib/bb/data_smart.py", line 60, in var_sub
ERROR: var = self.d.getVar(key, 1)
ERROR:
ERROR: File "/oe/bitbake/lib/bb/data_smart.py", line 272, in getVar
ERROR: return self.expand(value, var)
ERROR:
ERROR: File "/oe/bitbake/lib/bb/data_smart.py", line 144, in expand
ERROR: return self.expandWithRefs(s, varname).value
ERROR:
ERROR: File "/oe/bitbake/lib/bb/data_smart.py", line 134, in expandWithRefs
ERROR: raise ExpansionError(varname, s, exc)
ERROR:
ERROR: The code that was being executed was:
ERROR: 0019: bb.build.exec_func(f, d)
ERROR: 0020: package_run_hooks(f, d)
ERROR: 0021:
ERROR: 0022:
ERROR: *** 0023:package_do_package(d)
ERROR: 0024:
ERROR: (file: 'package_do_package', lineno: 23, function: <module>)
ERROR: 0015: bb.error("WORKDIR, DEPLOY_DIR, D, PN and PKGD all must be defined, unable to package")
ERROR: 0016: return
ERROR: 0017:
ERROR: 0018: for f in (bb.data.getVar('PACKAGEFUNCS', d, True) or '').split():
ERROR: *** 0019: bb.build.exec_func(f, d)
ERROR: 0020: package_run_hooks(f, d)
ERROR: 0021:
ERROR: 0022:
ERROR: 0023:package_do_package(d)
ERROR: (file: 'package_do_package', lineno: 19, function: package_do_package)
ERROR: Function 'package_do_package' failed
Both recipes, for example [1], adhere to the usage example at the top of
`gitpkgv.bbclass` [2].
Thanks,
Paul
[1] http://cgit.openembedded.org/cgit.cgi/openembedded/tree/recipes/systemd/systemd_git.bb?id=befc2ba11da94a569ef0b5fec64b98257d809687#n13
[2] http://cgit.openembedded.org/cgit.cgi/openembedded/tree/classes/gitpkgv.bbclass?id=befc2ba11da94a569ef0b5fec64b98257d809687#n24
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20110525/7b17b204/attachment-0002.sig>
More information about the Openembedded-devel
mailing list