Re: [yocto] How to Add Packages to Python3

2020-11-26 Thread 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, vijayrakeshmunga...@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





-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#51579): https://lists.yoctoproject.org/g/yocto/message/51579
Mute This Topic: https://lists.yoctoproject.org/mt/78527355/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] How to Add Packages to Python3

2020-11-26 Thread vijayrakeshmunganda
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

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#51570): https://lists.yoctoproject.org/g/yocto/message/51570
Mute This Topic: https://lists.yoctoproject.org/mt/78527355/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-