New HA 0.27 and Bluetooth LE tracker

And as I discovered, gattlib needs libglib-2.0 dev, bluetooth.h, and boost_python to install. This will get you the first two on Ubuntu:

apt-get install libglib2.0-dev libbluetooth-dev

HOWEVER, on Ubuntu 16.04, and Arch Linux, and anywhere with Python 3.5.x installed, gattlib will currently not install without manual steps.

This is the error:

(home-assistant) hass@t:~$ pip install gattlib
#...
/usr/bin/ld: cannot find -lboost_python-py34
collect2: error: ld returned 1 exit status
error: command 'x86_64-linux-gnu-g++' failed with exit status 1

And this is how to install it when you get that error:

pip download gattlib
tar xvzf ./gattlib-0.20150805.tar.gz
cd gattlib-0.20150805/
sed -ie 's/boost_python-py34/boost_python-py35/' setup.py
pip install .

There’s an open bug with gattlib here.

3 Likes