Re: How to Add Packages to Python3


Konrad Weihmann
 

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@gmail.com wrote:
Hi,
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 https://layers.openembedded.org/layerindex/branch/master/recipes/?q=python+json. Also some sources suggest to add packages via python3-manifest.json. Kindly please help me in this regard.
Thanks,
VR

Join yocto@lists.yoctoproject.org to automatically receive all group messages.