This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

pc-ble-driver-py recipe for installing it on yocto

Hi, 

I am trying to install pc-ble-driver-py pypi lib into custom yocto setup. I have created recipes for it which is shown bellow 

in python-pc-ble-driver-py.inc

SUMMARY = "Socket.IO integration for Flask applications"
DESCRIPTION = "A Python interface and library for pc-ble-driver. \
This allows Python applications to interface with a Nordic Semiconductor IC \
(both nRF51 and nRF52 series) over a serial port to obtain access to the full \
 serialized SoftDevice API"
HOMEPAGE = "https://github.com/NordicSemiconductor/pc-ble-driver-py"
LICENSE = "Modified BSD License"
LIC_FILES_CHKSUM = "file://README.rst;md5=0ee5c22181e071c7757e8bbf5732b8c4"

DISTUTILS_INSTALL_ARGS += " install"

SRC_URI = "https://files.pythonhosted.org/packages/70/cb/0c6c2ac9d5679a83a259ab52c580c219d188ae02bde64be27b75663a6889/pc_ble_driver_py-0.10.0.tar.gz"
SRC_URI[md5sum] = "bd3f2901cb976f02f4633af575be571e"
SRC_URI[sha256sum] = "1fdf6a0ec970e070c8e9bc92d40e986beb375c456749b57767007a9cabb3fccd"


CLEANBROKEN = "1"

PYPI_PACKAGE = "pc-ble-driver-py"

and in python-pc-ble-driver-py_0.10.0.bb

inherit pypi setuptools
require python-pc-ble-driver-py.inc

and while compile the yocto image I get such error.

ERROR: python-pc-ble-driver-py-0.10.0-r0 do_compile: python setup.py build execution failed.
ERROR: python-pc-ble-driver-py-0.10.0-r0 do_compile: Function failed: do_compile (log file is located at /home/user/projects/optart/esl/gateway/yocto/build/tmp/work/cortexa7hf-neon-vfpv4-phytec-linux-gnueabi/python-pc-ble-driver-py/0.10.0-r0/temp/log.do_compile.956)
ERROR: Logfile of failure stored in: /home/user/projects/optart/esl/gateway/yocto/build/tmp/work/cortexa7hf-neon-vfpv4-phytec-linux-gnueabi/python-pc-ble-driver-py/0.10.0-r0/temp/log.do_compile.956
Log data follows:
| DEBUG: Executing shell function do_compile
| ERROR: python setup.py build execution failed.
| /home/user/projects/optart/esl/gateway/yocto/build/tmp/sysroots/x86_64-linux/usr/bin/python-native/python: can't open file 'setup.py': [Errno 2] No such file or directory
| ERROR: Function failed: do_compile (log file is located at /home/user/projects/optart/esl/gateway/yocto/build/tmp/work/cortexa7hf-neon-vfpv4-phytec-linux-gnueabi/python-pc-ble-driver-py/0.10.0-r0/temp/log.do_compile.956)
ERROR: Task (/home/user/projects/optart/esl/gateway/yocto/sources/poky/../meta-openembedded/meta-python/recipes-devtools/python/python-pc-ble-driver-py_0.10.0.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2640 tasks of which 2639 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory
No currently running tasks (2376 of 3693) 64% |############################################################# |
error: pathspec 'bitbake.lock' did not match any file(s) known to git.
error: pathspec 'gateway' did not match any file(s) known to git.

Summary: 1 task failed:
/home/user/projects/optart/esl/gateway/yocto/sources/poky/../meta-openembedded/meta-python/recipes-devtools/python/python-pc-ble-driver-py_0.10.0.bb:do_compile
Summary: There were 6 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

I am able to install other python library with same method but having issue in pc-ble-driver-py lib

Is there any way to resolve such errors.

P.S. I tried latest 0.12.0 version first and it also had the same error. So i tried some older versions as well.

Parents Reply
  • Hi Jorgen,

    yes I checked it, there is no file there actually. But my question is when I do install some other libraries by creating same recipe it works. It just fails in pc-ble-driver-py only. 

    So I need to know that is there any other way to install this library on yocto.

    Another thing i noticed that after downloading the .tar.gz file from pypi.org there are no LICENCE file in it. Where mostly all the other libraries have LICENCE file in their .tar.gz file.

Children
No Data
Related