AnsweredAssumed Answered

Bitbake failing to build

Question asked by Per Ekelund on Jul 7, 2017
Latest reply on Aug 23, 2017 by John Anderson

I am trying to get familiar with the Yocto system. I have succesfully followed the latest version of imx yocto project user manual. When i try to execute bitbake core-image-base i get the following:

 

Traceback (most recent call last):
File "/home/per/fsl-release-bsp/sources/poky/bitbake/bin/bitbake", line 31, in <module>
import bb
File "/home/per/fsl-release-bsp/sources/poky/bitbake/lib/bb/__init__.py", line 79, in <module>
from bb import fetch2 as fetch
File "/home/per/fsl-release-bsp/sources/poky/bitbake/lib/bb/fetch2/__init__.py", line 1749, in <module>
from . import wget
File "/home/per/fsl-release-bsp/sources/poky/bitbake/lib/bb/fetch2/wget.py", line 41, in <module>
from bs4 import BeautifulSoup
File "/home/per/fsl-release-bsp/sources/poky/bitbake/lib/bs4/__init__.py", line 30, in <module>
from .builder import builder_registry, ParserRejectedMarkup
File "/home/per/fsl-release-bsp/sources/poky/bitbake/lib/bs4/builder/__init__.py", line 311, in <module>
from . import _html5lib
File "/home/per/fsl-release-bsp/sources/poky/bitbake/lib/bs4/builder/_html5lib.py", line 57, in <module>
class TreeBuilderForHtml5lib(html5lib.treebuilders._base.TreeBuilder):
AttributeError: 'module' object has no attribute '_base'
/home/per/fsl-release-bsp/sources/poky/bitbake/lib/bb/event.py:119: RuntimeWarning: Parent module 'bb' not found while handling absolute import
from bb.msg import BBLogFormatter
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/home/per/fsl-release-bsp/sources/poky/bitbake/lib/bb/event.py", line 119, in print_ui_queue
from bb.msg import BBLogFormatter
File "/home/per/fsl-release-bsp/sources/poky/bitbake/lib/bb/__init__.py", line 79, in <module>
from bb import fetch2 as fetch
File "/home/per/fsl-release-bsp/sources/poky/bitbake/lib/bb/fetch2/__init__.py", line 37, in <module>
from bb import data
ImportError: cannot import name data
Error in sys.exitfunc:
Traceback (most recent call last):
File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/home/per/fsl-release-bsp/sources/poky/bitbake/lib/bb/event.py", line 119, in print_ui_queue
from bb.msg import BBLogFormatter
File "/home/per/fsl-release-bsp/sources/poky/bitbake/lib/bb/__init__.py", line 79, in <module>
from bb import fetch2 as fetch
File "/home/per/fsl-release-bsp/sources/poky/bitbake/lib/bb/fetch2/__init__.py", line 37, in <module>
from bb import data
ImportError: cannot import name data

 

I can't make any sense out of it....

Outcomes