Can’t say what the issue is, but I ran into a similar problem with the new html5 notifications. I debugged it by creating a new virtualenv and running the pip install command in that env to see what was missing:
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 .
gattlib seems to be a bit complicated to install. As gattlib basically just call hcitool and gatttool, it might be a better option to just call these tools directly without using gattlib. I’m not sure how the core developers will like this idea.
I’ve updated to v0.27.2, removed bluetooth packages, restarted, re-installed packages, restarted but still getting 16-09-04 09:03:40 homeassistant.bootstrap: Not initializing device_tracker.bluetooth_le_tracker because could not install dependency gattlib==0.20150805
I switched over to hass virtual environment get permission denied using hass system account. When you try sudo and command it asks for hass password but hass is only a system account no password so hitting enter without password will not work.
Did you install the packages that gattlib requires as regular user (pi) with sudo? You should only do the “pip install gattlib” in the hass virtual env.
Worked for me, but I had to use the regular BT tracker, because the BT LE tracker requires root permission (not sure how to set that up).
Packages regular user pi w/ sudo those installed fine, switched over to hass user then switched over to virtual env, I had to back out of pi folder in virtual env to hass folder I was able to download gattlib now got a little further but get this error.
/usr/bin/ld: cannot find -lboost_python-py35
/usr/bin/ld: cannot find -lboost_thread
collect2: error: ld returned 1 exit status
error: command 'arm-linux-gnueabihf-g++' failed with exit status 1
Command "/srv/hass/hass_venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-h7jrikde
build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))"
install --record /tmp/pip-rk7a_dph-record/install-record.txt --single-version-externally-managed --compile
install- headers /srv/hass/hass_venv/include/site/python3.4/gattlib" failed with error code 1 in
/tmp/ piph7jrikde-build/
(hass_venv) hass@raspberrypi:~/gattlib-0.20150805$