Bitbake failed with errors

Hello.

I’m trying to build linux image from source. My build machine has Ubuntu 16.04. I’ve followed steps with: openembedded-(core)

  • installed required software
  • installed ‘repo’ with ‘phablet-tools’
  • used ‘LinuxImageV2.7’ with ‘repo init…’
  • edited ‘local.conf’ for target machine

Now when I run ‘bitbake -k angstrom-lxde-image’ command, I get error:

ERROR: Execution of event handler 'config_reparse_eventhandler' failed
Traceback (most recent call last):
  File "/home/(***)/oe-core/layers/openembedded-core/bitbake/lib/bb/build.py", line 261, in exec_func(func='oecore_update_bblayers', d=<bb.data_smart.DataSmart object at 0x7f73925e2588>, dirs=None, pythonexception=True):
             if ispython:
    >            exec_func_python(func, d, runfile, cwd=adir, pythonexception=pythonexception)
             else:
  File "/home/(***)/oe-core/layers/openembedded-core/bitbake/lib/bb/build.py", line 306, in exec_func_python(func='oecore_update_bblayers', d=<bb.data_smart.DataSmart object at 0x7f73925e2588>, runfile='/home/(***)/oe-core/build/tmp-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/defaultpkgname/1.0-r0/temp/run.oecore_update_bblayers.20348', cwd=None, pythonexception=True):
             comp = utils.better_compile(code, func, "exec_python_func() autogenerated")
    >        utils.better_exec(comp, {"d": d}, code, "exec_python_func() autogenerated", pythonexception=pythonexception)
         except (bb.parse.SkipRecipe, bb.build.FuncFailed):
  File "/home/(***)/oe-core/layers/openembedded-core/bitbake/lib/bb/utils.py", line 399, in better_exec(code=<code object <module> at 0x7f73920dc8a0, file "exec_python_func() autogenerated", line 2>, context={'d': <bb.data_smart.DataSmart object at 0x7f73925e2588>}, text='\noecore_update_bblayers(d)\n', realfile='exec_python_func() autogenerated', pythonexception=True):
         try:
    >        exec(code, get_context(), context)
         except (bb.BBHandledException, bb.parse.SkipRecipe, bb.build.FuncFailed, bb.data_smart.ExpansionError):
  File "exec_python_func() autogenerated", line 2, in <module>
  File "/home/(***)/oe-core/build/../layers/openembedded-core/meta/classes/sanity.bbclass", line 84, in oecore_update_bblayers(d=<bb.data_smart.DataSmart object at 0x7f73925e2588>):
         current_lconf = int(d.getVar('LCONF_VERSION', True))
    >    lconf_version = int(d.getVar('LAYER_CONF_VERSION', True))
     
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

ERROR: Error parsing configuration files
Traceback (most recent call last):
  File "/home/(***)/oe-core/layers/openembedded-core/bitbake/lib/bb/build.py", line 261, in exec_func(func='oecore_update_bblayers', d=<bb.data_smart.DataSmart object at 0x7f73925e2588>, dirs=None, pythonexception=True):
             if ispython:
    >            exec_func_python(func, d, runfile, cwd=adir, pythonexception=pythonexception)
             else:
  File "/home/(***)/oe-core/layers/openembedded-core/bitbake/lib/bb/build.py", line 306, in exec_func_python(func='oecore_update_bblayers', d=<bb.data_smart.DataSmart object at 0x7f73925e2588>, runfile='/home/(***)/oe-core/build/tmp-glibc/work/armv7at2hf-neon-angstrom-linux-gnueabi/defaultpkgname/1.0-r0/temp/run.oecore_update_bblayers.20348', cwd=None, pythonexception=True):
             comp = utils.better_compile(code, func, "exec_python_func() autogenerated")
    >        utils.better_exec(comp, {"d": d}, code, "exec_python_func() autogenerated", pythonexception=pythonexception)
         except (bb.parse.SkipRecipe, bb.build.FuncFailed):
  File "/home/(***)/oe-core/layers/openembedded-core/bitbake/lib/bb/utils.py", line 399, in better_exec(code=<code object <module> at 0x7f73920dc8a0, file "exec_python_func() autogenerated", line 2>, context={'d': <bb.data_smart.DataSmart object at 0x7f73925e2588>}, text='\noecore_update_bblayers(d)\n', realfile='exec_python_func() autogenerated', pythonexception=True):
         try:
    >        exec(code, get_context(), context)
         except (bb.BBHandledException, bb.parse.SkipRecipe, bb.build.FuncFailed, bb.data_smart.ExpansionError):
  File "exec_python_func() autogenerated", line 2, in <module>
  File "/home/(***)/oe-core/build/../layers/openembedded-core/meta/classes/sanity.bbclass", line 84, in oecore_update_bblayers(d=<bb.data_smart.DataSmart object at 0x7f73925e2588>):
         current_lconf = int(d.getVar('LCONF_VERSION', True))
    >    lconf_version = int(d.getVar('LAYER_CONF_VERSION', True))
     
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

Any suggestions what to do with it?

Thanks in advance.

Hi
Could you update your python package?
what is your kernel version ( uname -v )?

Hi.

Which python version should I update to?

I now have:

python - v2.7.11

python2.7 - v2.7.12

python3 - v3.5.1

python3.5 - v3.5.2

I have kernel:

4.13.0-32-generic #35~16.04.1-Ubuntu SMP Thu Jan 25 10:13:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Hi

I have the same kernel version. For python i am using python 2.7v12 and python3 3.5.2. For me the bitbake build is working fine. What did you change additionally to local conf. Can you start a clean build and send the log in a text file.

I tried to start clean build with: “rm -rf oe-core”

and then followed the same tutorial “OpenEmbedded (core)”.

I attached files:

  • local.conf

  • output for “repo init …”

  • output for “repo sync”

  • output of 1st and 2nd “bitbake…”

After first bitbake I run “touch conf/sanity.conf” command.

link text

hello,

thanks for the files. Can you say, what is the folder name or structure replaced by *** in the file bitbake-output-second.txt

I have replaced only my user name folder (4 chars long) with “(***)”.

Thx for the tip. I’ll give it a try and share the result later.

Thanks for the feedback.

Did you install ubuntu with home folder encryption on. If yes, either reinstall ubuntu with home folder encryption off or disable it following this guide.

I’ve decrypted my home folder and now bitbake works Ok.

jaski.tx - Thx for help!