bluepy-helper not being built using

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


Hello,

I am trying to use the sensortag snap available on github [https://github.com/mectors/sensortag] 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 README.md 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>
    sys.exit(main())
  File "/snap/sensortag/x1/lib/python3.5/site-packages/bluepy/sensortag.py", line 416, in main
    tag = SensorTag(arg.host)
  File "/snap/sensortag/x1/lib/python3.5/site-packages/bluepy/sensortag.py", line 331, in __init__
    Peripheral.__init__(self,addr)
  File "/snap/sensortag/x1/lib/python3.5/site-packages/bluepy/btle.py", line 318, in __init__
    self.connect(deviceAddr, addrType, iface)
  File "/snap/sensortag/x1/lib/python3.5/site-packages/bluepy/btle.py", line 353, in connect
    self._startHelper()
  File "/snap/sensortag/x1/lib/python3.5/site-packages/bluepy/btle.py", line 210, in _startHelper
    universal_newlines=True)
  File "/snap/sensortag/x1/usr/lib/python3.5/subprocess.py", line 947, in __init__
    restore_signals, start_new_session)
  File "/snap/sensortag/x1/usr/lib/python3.5/subprocess.py", 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.
blescan.py bluepy-helper.c bluez-src.tgz get_services.py Makefile sensortag.py bluez-5.29 btle.py __init__.py __pycache__ uuids.json

If I run make manually within the folder the objects are created.
blescan.py bluepy-helper.c bluez-src.tgz get_services.py Makefile sensortag.py bluepy-helper bluez-5.29 btle.py __init__.py __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:
https://github.com/IanHarvey/bluepy/issues/158
https://github.com/IanHarvey/bluepy/issues/139

Can anyone help me resolve this issue.

Regards,
Mritunjai







More information about the Snapcraft mailing list