cpu_count() got an unexpected keyword argument 'at_least'
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'
thanking you in advance.
Regards,
Sateesh
You're probably mixing incompatible branches of different layers - always use the same branch in all layers.
at_least was added in oe-core/dunfell with:
https://git.openembedded.org/openembedded-core/commit/?id=c6dda204e15c5b27559f7617b18a7b3ce604e2f8
Quoted 21 lines · sateesh m
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'thanking you in advance.
Regards,
Sateesh
Hi Sateesh,
Quoted 8 lines · sateesh m
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/utils.py 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.
Cheers,
Quentin