setup.py no such file or directory


Bel Hadj Salem Talel
 

Hi Community,

I have a python module which I downloaded from github containing a setup.py as all python modules.
When I create a recipe with devtool it compiles correctly with no problem, but when I copy paste the same recipe source from workspace recipes to an official meta recipe I got this error :
/media/talel/data/menzu-zeus/menzu/tmp/work/aarch64-poky-linux/python3-wirepas_messaging/1.4.0-r0/recipe-sysroot-native/usr/bin/python3-native/python3: can't open file 'setup.py': [Errno 2] No such file or directory
Here is the recipe by devtool:

##############

SUMMARY = "Wirepas gateway transport service that connects the local dbus to a remote MQTT broker."
HOMEPAGE = "https://github.com/wirepas/gateway"
LICENSE = "Apache"
LIC_FILES_CHKSUM = "file://LICENSE;md5=cb6bb17b0d0cca188339074207e9f4d8"
SRC_URI = "file:///media/talel/data/multigate/multigate/meta-wirepas/recipes-wirepas/wirepas-gateway/files/wirepas_gateway-${PV}/wp-gateway.zip"
inherit setuptools3
RDEPENDS_${PN} += "python3-pyyaml python3-grpcio python3-paho-mqtt python3-pydbus"
RDEPENDS_${PN} += "python3-core python3-datetime python3-io python3-json python3-logging python3-netclient python3-paho-mqtt python3-pydbus python3-pygobject python3-pyyaml python3-threading"
DEPENDS += "systemd"

##############

I copy paste the same recipe source to a recipe under meta-wirepas/recipes-wirepas of mine, and copied the SRC_URI = "file:///media/talel/data/multigate/multigate/meta-wirepas/recipes-wirepas/wirepas-gateway/files/wirepas_gateway-${PV}/wp-gateway.zip" zip file under "files", and I got the error.

I don't know what is the difference, I think devtool created the recipe with .bbappend containing :

inherit externalsrc
EXTERNALSRC = "/media/talel/data/menzu-zeus/menzu/workspace/sources/wirepas-gateway"
EXTERNALSRC_BUILD = "/media/talel/data/menzu-zeus/menzu/workspace/sources/wirepas-gateway"

######

Is it the source of the problem, or how can I fix the issue ?

Thanks, Talel



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