bluepy-helper not being built using

Mritunjai Singh mrsingh at ssni.com
Tue Mar 21 16:36:10 UTC 2017


Hi Maarten,

Thanks for your response. I would be grateful if you can spare some time to check which snap(sensortag) you got working, if possible can you forward that working snapcraft.yaml file.

Waiting eagerly for your response.

Regards,
Mritunjai 

-----Original Message-----
From: snapcraft-bounces at lists.snapcraft.io [mailto:snapcraft-bounces at lists.snapcraft.io] On Behalf Of Maarten Ectors
Sent: Tuesday, March 21, 2017 3:15 AM
To: Snapcraft <snapcraft at lists.snapcraft.io>
Subject: RE: bluepy-helper not being built using

Hi Mritunjai,

I made the snap for an IoT Berlin demo. I remember making several Bluetooth sensortag intends before I got one working. Not sure  it was this snap or another one I got working. I must admit that Bluetooth hasn't been playing nice during my snap efforts :-(

Maarten

On 20 Mar 2017 12:56 p.m., "Mritunjai Singh" <mrsingh at ssni.com> wrote:

Kindly confirm if anyone has got sensortag snap[https://github.com/ mectors/sensortag] working on Raspberry Pi Board with Ubuntu Core as I am struggling to make it work using snap as that snap is not building the bluepy-helper. Can anyone suggest the alternative approach to resolve the issue.

Any help will be appreciated.

Regards,
Mritunjai

From: Mritunjai Singh
Sent: Wednesday, March 15, 2017 1:15 PM
To: 'Snapcraft at lists.snapcraft.io' <Snapcraft at lists.snapcraft.io>
Subject: bluepy-helper not being built using

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




--
Snapcraft mailing list
Snapcraft at lists.snapcraft.io
Modify settings or unsubscribe at: https://lists.ubuntu.com/ mailman/listinfo/snapcraft
--
Snapcraft mailing list
Snapcraft at lists.snapcraft.io
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft




More information about the Snapcraft mailing list