Re: How to Add Packages to Python3

Konrad Weihmann <kweihmann@...>

Just add RDEPENDS_${PN] += "python3-json" to the recipe that creates the package, that contains the mentioned python script.

Alternatively add IMAGE_INSTALL += "python3-json" to the image the script is in.

As this is a core module (shipped by python3) the mapping is purely based on the python3-manifest.json

On 26.11.20 12:22, vijayrakeshmunganda@... wrote:
I had installed a python file into the rootfs and when I tried to run, it throws an error as "ModuleNotFoundError: No module named 'json'". I tried to find bb file for jsonlib, but I couldn't find at Also some sources suggest to add packages via python3-manifest.json. Kindly please help me in this regard.

Join to automatically receive all group messages.