1. I wrote the recipe .bb to install the nano editor, the
contents given below,
2. When I run the bitbake nano, the am getting the error as
given below,
bitbake nano
Loading cache: 100%
|###################################################################################################################|
Time: 0:00:00
Loaded 1324 entries from dependency cache.
ERROR: ExpansionError during parsing
/home/satya/Yocto/Practice/poky/build-bbb-2/meta-mylayer/recipes-example/nano/
nano_2.3.1.bb
| ETA: --:--:--
Traceback (most recent call last):
File
"/home/satya/Yocto/Practice/poky/bitbake/lib/bb/data_smart.py",
line 412, in DataSmart.expandWithRefs(s='
https://www.nano-editor.org/dist/v${PV_MAJ}.${PV_MIN}/nano-${PV}.tar.gz',
varname='SRC_URI'):
try:
> s =
__expand_var_regexp__.sub(varparse.var_sub, s)
try:
File
"/home/satya/Yocto/Practice/poky/bitbake/lib/bb/data_smart.py",
line 111, in VariableParse.var_sub(match=<_sre.SRE_Match
object; span=(34, 43), match='${PV_MAJ}'>):
else:
> var = self.d.getVarFlag(key,
"_content")
self.references.add(key)
File
"/home/satya/Yocto/Practice/poky/bitbake/lib/bb/data_smart.py",
line 773, in DataSmart.getVarFlag(var='PV_MAJ',
flag='_content', expand=True, noweakdefault=False,
parsing=False):
cachename = var + "[" + flag + "]"
> value = self.expand(value, cachename)
File
"/home/satya/Yocto/Practice/poky/bitbake/lib/bb/data_smart.py",
line 436, in
DataSmart.expand(s=
"${@bb.data.getVar('PV',d,1).split('.')[0]}",
varname='PV_MAJ'):
def expand(self, s, varname = None):
> return self.expandWithRefs(s, varname).value
File
"/home/satya/Yocto/Practice/poky/bitbake/lib/bb/data_smart.py",
line 426, in
DataSmart.expandWithRefs(s=
"${@bb.data.getVar('PV',d,1).split('.')[0]}",
varname='PV_MAJ'):
except Exception as exc:
> raise ExpansionError(varname, s, exc)
from exc
bb.data_smart.ExpansionError: Failure expanding variable
PV_MAJ, _expression_ was
${@bb.data.getVar('PV',d,1).split('.')[0]} which triggered
exception AttributeError: module 'bb.data' has no attribute
'getVar'
Summary: There was 1 ERROR message shown, returning a non-zero
exit code.
3. Could not get the solution, any help here. Any patches
needs to appy here, if yes pls suggest.