Re: cpu_count() got an unexpected keyword argument 'at_least'

Quentin Schulz

Hi Sateesh,

On Fri, Dec 11, 2020 at 07:14:17AM -0800, sateesh m wrote:
Hi Guys,

I got expansion error during parsing. I want to fix this bug. can anybody know this issue please Update me.

Traceback (most recent call last):
File "Var <PIGZ>", line 1, in <module>
bb.data_smart.ExpansionError: Failure expanding variable PIGZ, expression was -p ${@oe.utils.cpu_count(at_least=2)} which triggered exception TypeError: cpu_count() got an unexpected keyword argument 'at_least'
Are you sure all layers are checked out at the same branch? (e.g.
`dunfell` branch (or a branch with LAYERSERIESCOMPAT in conf/layer.conf
with dunfell in it))?

I suspect there was a change in oe/ that now accepts the
at_least argument but didn't for some time. My guess is that you use a
layer checked out to a more recent version than the one
poky/openembedded-core is checkout out to.

If you've all layers with the same checked out branch (or compatible
branch), please give us the branch you use for each layer you add to
your build so we can check things up.


Join to automatically receive all group messages.