[poky] Parsing fails when a recipe is using distutils.bbclass

Richard Purdie richard.purdie at linuxfoundation.org
Mon Jan 17 14:09:20 PST 2011


On Sat, 2011-01-15 at 12:28 +0100, Koen Kooi wrote:
> Hi,
> 
> I'm trying to build gnuradio using the meta-openembedded overlay which
> is causing me some problems with python-cheeta. When I have built
> python(-native), everything is fine, but on a build from scratch
> (hitting the pseudo redirect):
> 
> koen at dominion:/OE/tentacle$ MACHINE=beagleboard ./oebb.sh bitbake foo
> Executing: MACHINE=beagleboard bitbake foo
> Pseudo has not been built, building this first before the main build
> ERROR: Error evaluating '${@python_dir(d)}'                                                                            | ETA:  00:00:35
> Traceback (most recent call last):
>   File "/OE/tentacle/sources/bitbake/lib/bb/data_smart.py", line 117, in expandWithRefs
>     s = __expand_python_regexp__.sub(varparse.python_sub, s)
>   File "/OE/tentacle/sources/bitbake/lib/bb/data_smart.py", line 76, in python_sub
>     value = utils.better_eval(codeobj, DataContext(self.d))
>   File "/OE/tentacle/sources/bitbake/lib/bb/utils.py", line 387, in better_eval
>     return eval(source, _context, locals)
>   File "PYTHON_DIR", line 1, in <module>
>   File "python-dir.bbclass", line 7, in python_dir
> Exception: No Python in STAGING_INCDIR. Forgot to build python-native?

Just to follow up on this, the way OE detects the python directory isn't
compatible with the signature/checksum generation in poky. We therefore
switched to using PYTHON_BASEVERSION alongside the PREFERED_VERSION for
python to avoid this error.

Koen's later patches take this into account.

Cheers,

Richard




More information about the poky mailing list