[yocto] Strange behavior with python recipe
Shantanoo Desai
desai at uni-bremen.de
Thu Sep 27 01:39:43 PDT 2018
Hello all,
I am working with the following:
. Hardware: Phytec-imx6-Mira Development board
. Branch: krogoth
. Bitbake Version: 1.30
. Workflow tool: devtool
. Build Env: Debian 9.4 server
I want to use the pynmea2 and influxdb-python modules on the embedded board
for application development. I added them using devtool and the recipes were
created accordingly.
I added the necessary RDEPENDS to the recipes and structured them to the
meta-python layer i.e. pynmea2.inc and pynmea2_1.7.1.bb (similar for
influxdb-python)
My application needs to be with python3 hence in the recipes I added `inhert
setuptools3 pypi` so that it builds for python3. I added these recipes in my
`local.conf` file.
Strangely, there is no `datetime` module available in the python3 shell when
I import these modules on the hardware. This same `datetime` module is
however available on python2 shell.
I explicitly added the `python3-datetime` in the `local.conf` file but still
the module is unavailable on hardware.
Links to necessary files and query:
Stackexchange Query:
https://stackoverflow.com/questions/52519565/no-module-named-datetime-in-pyt
hon3-when-creating-a-recipe-for-yocto-but-datet/52528150#52528150
Github Gists of the recipes:
https://gist.github.com/shantanoo-desai/fc00836d399f8592a30efe1ec9c56213
I am not sure why isn't this python3-datetime module available on board even
though I have explicitly mentioned it in the RDEPENDS and
IMAGE_INSTALL_append ?
Any help would be appreciated. (First time poster in the mailing-list but
willing to learn the right etiquettes for asking queries here!)
Regards,
Shan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180927/a62371ac/attachment-0001.html>
More information about the yocto
mailing list