error while using bitbake

Hi Everyone,
I am using Bitbake to compile a new kernel. I am using the angstrom
distribution.
When I type in the command bitbake -b openembedded/recipes/linux/
linux-omap_2.6.29.bb

This is what I get :

/cg/OE$ bitbake -b openembedded/recipes/linux/linux-omap_2.6.29.bb
/usr/lib/pymodules/python2.6/bb/COW.py:29: DeprecationWarning: the
sets module is deprecated
  import types, sets
Traceback (most recent call last):
  File "/usr/bin/bitbake", line 143, in <module>
    main()
  File "/usr/bin/bitbake", line 140, in main
    cooker.cook()
  File "/usr/lib/pymodules/python2.6/bb/cooker.py", line 611, in cook
    if not self.buildFile(self.configuration.buildfile):
  File "/usr/lib/pymodules/python2.6/bb/cooker.py", line 479, in
buildFile
    self.bb_cache.loadData(fn, self.configuration.data)
  File "/usr/lib/pymodules/python2.6/bb/cache.py", line 170, in
loadData
    bb_data, skipped = self.load_bbfile(fn, cfgData)
  File "/usr/lib/pymodules/python2.6/bb/cache.py", line 407, in
load_bbfile
    bb_data = parse.handle(bbfile, bb_data) # read .bb data
  File "/usr/lib/pymodules/python2.6/bb/parse/__init__.py", line 75,
in handle
    return h['handle'](fn, data, include)
  File "/usr/lib/pymodules/python2.6/bb/parse/parse_py/BBHandler.py",
line 141, in handle
    feeder(lineno, s, fn, base_name, d)
  File "/usr/lib/pymodules/python2.6/bb/parse/parse_py/BBHandler.py",
line 364, in feeder
    return ConfHandler.feeder(lineno, s, fn, d)
  File "/usr/lib/pymodules/python2.6/bb/parse/parse_py/
ConfHandler.py", line 213, in feeder
    include(fn, s, data, "include required")
  File "/usr/lib/pymodules/python2.6/bb/parse/parse_py/
ConfHandler.py", line 106, in include
    ret = handle(fn, data, True)
  File "/usr/lib/pymodules/python2.6/bb/parse/__init__.py", line 75,
in handle
    return h['handle'](fn, data, include)
  File "/usr/lib/pymodules/python2.6/bb/parse/parse_py/BBHandler.py",
line 141, in handle
    feeder(lineno, s, fn, base_name, d)
  File "/usr/lib/pymodules/python2.6/bb/parse/parse_py/BBHandler.py",
line 360, in feeder
    inherit(n, d)
  File "/usr/lib/pymodules/python2.6/bb/parse/parse_py/BBHandler.py",
line 75, in inherit
    include(fn, file, d, "inherit")
  File "/usr/lib/pymodules/python2.6/bb/parse/parse_py/
ConfHandler.py", line 109, in include
    raise ParseError("Could not %(error_out)s file %(fn)s" % vars() )
bb.parse.ParseError: Could not inherit file classes/kernel.bbclass

Does anyone know what is causing this parse error, what is the
solution?
Any help is greatly appreciated.

Thanks,
Regards,
Chhavi

Dear Chhavi,

[…]

    inherit(n, d)
  File "/usr/lib/pymodules/python2.6/bb/parse/parse_py/BBHandler.py",
line 75, in inherit
    include(fn, file, d, "inherit")
  File "/usr/lib/pymodules/python2.6/bb/parse/parse_py/
ConfHandler.py", line 109, in include
    raise ParseError("Could not %(error_out)s file %(fn)s" % vars() )
bb.parse.ParseError: Could not inherit file classes/kernel.bbclass

Does anyone know what is causing this parse error, what is the
solution?

I have no clue. Is your build environment set up correctly? Do other
recipes build correctly?

Did you search the Web for hints? [1]

Thanks,

Paul

[1] http://projects.linuxtogo.org/pipermail/openembedded-devel/2007-June/002279.html

Try with bitbake-1.8.18, it solved a few strange issues for me.

Regards,
Gyorgy