[Solved] Yocto Error: ERROR: Execution of event handler ‘sstate_eventhandler2‘ failed

Bitcake failed on the simplest recipe

1. Compilation error: error: execution of event handler ‘sstate’_ eventhandler2’ failed

Download the yocto code. When compiling, the following errors are reported:

$ bitbake core-image-minimal
Loading cache: 100% |##########################################################################################################| Time: 0:00:00
Loaded 1320 entries from dependency cache.
ERROR: Execution of event handler 'sstate_eventhandler2' failed
Traceback (most recent call last):
  File "/home/some-user/projects/melp/poky/meta/classes/sstate.bbclass", line 1015, in sstate_eventhandler2(e=<bb.event.ReachableStamps object at 0x7fbc17f2e0f0>):
                 for l in lines:
    >                (stamp, manifest, workdir) = l.split()
                     if stamp not in stamps:
ValueError: not enough values to unpack (expected 3, got 1)

ERROR: Command execution failed: Traceback (most recent call last):
  File "/home/some-user/projects/melp/poky/bitbake/lib/bb/command.py", line 101, in runAsyncCommand
    self.cooker.updateCache()
  File "/home/some-user/projects/melp/poky/bitbake/lib/bb/cooker.py", line 1658, in updateCache
    bb.event.fire(event, self.databuilder.mcdata[mc])
  File "/home/some-user/projects/melp/poky/bitbake/lib/bb/event.py", line 201, in fire
    fire_class_handlers(event, d)
  File "/home/some-user/projects/melp/poky/bitbake/lib/bb/event.py", line 124, in fire_class_handlers
    execute_handler(name, handler, event, d)
  File "/home/some-user/projects/melp/poky/bitbake/lib/bb/event.py", line 96, in execute_handler
    ret = handler(event)
  File "/home/some-user/projects/melp/poky/meta/classes/sstate.bbclass", line 1015, in sstate_eventhandler2
    (stamp, manifest, workdir) = l.split()
ValueError: not enough values to unpack (expected 3, got 1)

It looks like a python error. Who knows what the problem is? Am I using the wrong version?

The following is the output of Python — version

$ python --version
Python 2.7.12

2. How to solve it?

Delete the TMP and sstate cache directories, try again, and compile OK

Read More: