Greetings, I'm trying to get use python3 with cantools in a bitbake recipe.
Usually this is installed via pip. python3 -m pip install cantools I'm trying to use it in a bb recipe in the following way: BB recipe: inherit python3native DEPENDS += "python3-pip python3-cantools" RDEPENDS_${PN} += "python3 p<ython3-pip python3-cantools" # Recipe package files FILES_${PN} += " \ /usr/include/ \ " do_compile() { cd ${S} python3 -m cantools generate_c_source ./files/dbc/somedbc.dbc -o ./dbc } But I get a bitbake error in the python3 call: ERROR: myrecipe-1.0-r0 do_compile: Execution of '/home/Development/project/build_myproject/tmp/work/cortexa53-crypto-fsl-linux/myrecipe/1.0-r0/temp/run.do_compile.10151' failed with exit code 1: /home/Development/project/build_myproject/tmp/work/cortexa53-crypto-fsl-linux/myproject/1.0-r0/recipe-sysroot-native/usr/bin/python3-native/python3: No module named cantools WARNING: exit code 1 from a shell command. Any ideas? Regards
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#63734): https://lists.yoctoproject.org/g/yocto/message/63734 Mute This Topic: https://lists.yoctoproject.org/mt/108053072/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-