How to include more python3 modules in the image

Hi,

I am working on wp85 product. We need to include more python3 modules in order to run a script on WP85 during development.

I build a new image based on the linux OS source: SWI9X15Y_07.12.09.00 (16.10.3)
https://source.sierrawireless.com/resources/legato/downloads/
and adding the lines

CORE_IMAGE_EXTRA_INSTALL = “python3 python3-subprocess”

Though, I have python3 installed in the new image but it is still lacking some modules.
ex. argparse, serial, datetime, hashlib, enum, _posixsubprocess

And I see the poky & oe version we use use doesn’t provide all the recipes for the modules. (or maybe I misunderstood it.)

How should I include the python3 modules into the image correctly?

Thanks.

Most of the packages are stated in python-3.3-manifest.inc .
We also need to add python3-misc otherwise there will be some package issue.

biitbake processed the settings in conf/local.conf.
use this IMAGE_INSTALL_append = “python3 python3-subprocess” insted of CORE_IMAGE_EXTRA_INSTALL
If you use CORE_IMAGE_EXTRA_INSTALL bitbake does not install what image is needed.
or
you can go to corresponding recipes of .bb file and
IMAGE_INSTALL += “python3 python3-subprocess”

Hi,
CORE_IMAGE_EXTRA_INSTALL has the same effect as IMAGE_INSTALL_append and IMAGE_INSTALL.
yocto version we use is old and it has some packaging problem therefore “python3-misc” need to be added to the image too.

i have a problème with pprint and and _ssl modules after building the image i can’t find them
“Import error: No module named _ssl, pprint”