[yocto] bitbake core-image-web-kiosk question ?

Khem Raj raj.khem at gmail.com
Tue Jun 13 22:38:54 PDT 2017


On Tue, Jun 13, 2017 at 9:10 PM, Riko Ho <antonius.riko at gmail.com> wrote:
> Hello Everyone,
>
> I tried doing "bitbake core-image-web-kiosk"
>
> And I got this :
>
> ====================
>
> Loading cache: 100%
> |#####################################################################################################################################|
> Time: 0:00:00
> Loaded 1310 entries from dependency cache.
> ERROR: ExpansionError during parsing
> /home/bianchi77/poky/meta-web-kiosk/recipes-browser/vala/vala_0.16.0.bb
> | ETA:  --:--:--
> Traceback (most recent call last):
>   File "/home/bianchi77/poky/bitbake/lib/bb/data_smart.py", line 412, in
> DataSmart.expandWithRefs(s='http://ftp.gnome.org/pub/GNOME/sources/${BPN}/${SHRT_VER}/${BP}.tar.xz
> http://ftp.gnome.org/pub/GNOME/sources/vala/0.36/vala-0.36.0.tar.xz',
> varname='SRC_URI'):
>                  try:
>     >                s = __expand_var_regexp__.sub(varparse.var_sub, s)
>                      try:
>   File "/home/bianchi77/poky/bitbake/lib/bb/data_smart.py", line 111, in
> VariableParse.var_sub(match=<_sre.SRE_Match object; span=(46, 57),
> match='${SHRT_VER}'>):
>                  else:
>     >                var = self.d.getVarFlag(key, "_content")
>                  self.references.add(key)
>   File "/home/bianchi77/poky/bitbake/lib/bb/data_smart.py", line 794, in
> DataSmart.getVarFlag(var='SHRT_VER', flag='_content', expand=True,
> noweakdefault=False, parsing=False):
>                      cachename = var + "[" + flag + "]"
>     >            value = self.expand(value, cachename)
>
>   File "/home/bianchi77/poky/bitbake/lib/bb/data_smart.py", line 436, in
> DataSmart.expand(s="${@bb.data.getVar('PV',d,1).split('.')[0]}.${@bb.data.getVar('PV',d,1).split('.')[1]}",
> varname='SHRT_VER'):
>          def expand(self, s, varname = None):
>     >        return self.expandWithRefs(s, varname).value
>
>   File "/home/bianchi77/poky/bitbake/lib/bb/data_smart.py", line 426, in
> DataSmart.expandWithRefs(s="${@bb.data.getVar('PV',d,1).split('.')[0]}.${@bb.data.getVar('PV',d,1).split('.')[1]}",
> varname='SHRT_VER'):
>                  except Exception as exc:
>     >                raise ExpansionError(varname, s, exc) from exc
>
> bb.data_smart.ExpansionError: Failure expanding variable SHRT_VER,
> expression was
> ${@bb.data.getVar('PV',d,1).split('.')[0]}.${@bb.data.getVar('PV',d,1).split('.')[1]}
> which triggered exception AttributeError: module 'bb.data' has no attribute
> 'getVar'
>
>
> Summary: There was 1 ERROR message shown, returning a non-zero exit code.
>
> ===============
>
> Does anyone know how to fix it ?
>
> I used poky with pyro release,
>

Looking at the layer, this strikes clear Last commit: 3 years, 8
months ago (master branch)
so this layer is rusted. Pyro is less than a month old release.

So this layer would need work to bring it forward. To begin with
delete the vala/ directory so
it can use the vala from core layer instead of a pinned version.

> Thanks
>
> --
>
> /*******/
> Sent by Ubuntu LTS 16.04,
> 谢谢,
> Regards,
> Riko Ho
> /*******/
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>



More information about the yocto mailing list