ModuleNotFoundError: No module named '_sqlite3'

I was trying to build embedded linux image BSP V2.8.6b and following the link:

But when I was trying to bitbake I’m having the following error:

bmit@bmit-X200MA:~/yocto/oe-core/build$ bitbake -k angstrom-lxde-image
Traceback (most recent call last):
  File "/home/bmit/yocto/oe-core/layers/openembedded-core/bitbake/bin/bitbake", line 31, in 
    import bb
  File "/home/bmit/yocto/oe-core/layers/openembedded-core/bitbake/lib/bb/", line 79, in 
    from bb import fetch2 as fetch
  File "/home/bmit/yocto/oe-core/layers/openembedded-core/bitbake/lib/bb/fetch2/", line 39, in 
    import bb.persist_data, bb.utils
  File "/home/bmit/yocto/oe-core/layers/openembedded-core/bitbake/lib/bb/", line 31, in 
    import sqlite3
  File "/usr/local/lib/python3.6/sqlite3/", line 23, in 
    from sqlite3.dbapi2 import *
  File "/usr/local/lib/python3.6/sqlite3/", line 27, in 
    from _sqlite3 import *
ModuleNotFoundError: No module named '_sqlite3'

Hi @sonicmaster

Which Linux Distribution ( uname -a ) are you using on the module?

Did you install all the prerequisites as described here?

You could try to install following package on your build host: libsqlite3-dev

Best regards,