bluepy-helper not being built using

Mritunjai Singh mrsingh at
Wed Mar 15 20:14:54 UTC 2017


I am trying to use the sensortag snap available on github [] to get the data from TI sensor and posting these sensor data to cloud using our proprietary SDK APIs. I am successfully able to build and install the sensortag snap and also connected the snap to bluetooth-control to make sure that the snap has bluetooth-control.

I am following the available with the snap.

-          Build and install of the sensortag snap successful.

-          sensortag.sensortag-init 7C:01:91:72:63:32 successful

-          sensortag.sensortag-in  giving error messages shown below:

Traceback (most recent call last):
  File "/snap/sensortag/x1/bin/sensortag", line 11, in <module>
  File "/snap/sensortag/x1/lib/python3.5/site-packages/bluepy/", line 416, in main
    tag = SensorTag(
  File "/snap/sensortag/x1/lib/python3.5/site-packages/bluepy/", line 331, in __init__
  File "/snap/sensortag/x1/lib/python3.5/site-packages/bluepy/", line 318, in __init__
    self.connect(deviceAddr, addrType, iface)
  File "/snap/sensortag/x1/lib/python3.5/site-packages/bluepy/", line 353, in connect
  File "/snap/sensortag/x1/lib/python3.5/site-packages/bluepy/", line 210, in _startHelper
  File "/snap/sensortag/x1/usr/lib/python3.5/", line 947, in __init__
    restore_signals, start_new_session)
  File "/snap/sensortag/x1/usr/lib/python3.5/", line 1551, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: '/snap/sensortag/x1/lib/python3.5/site-packages/bluepy/bluepy-helper'

After some research it looks like that snap is not able to build the the "sensortag/parts/bluepy/buildbluepy-helper.c" and thus the bluepy-helper object is not created during the install of bluepy.
            I can see that there is a bluepy-helper.c file but no object. bluepy-helper.c bluez-src.tgz Makefile bluez-5.29 __pycache__ uuids.json

If I run make manually within the folder the objects are created. bluepy-helper.c bluez-src.tgz Makefile bluepy-helper bluez-5.29 __pycache__ uuids.json

Compiling bluepy-helper works as expected but it is not copied to the build directory and thus not installed.

It seems to be known issue as shown in links below:

Can anyone help me resolve this issue.


More information about the Snapcraft mailing list