I am using the Hassbian on a Raspberry Pi 3.
Added…
device_tracker 2:
platform: bluetooth_le_tracker
track_new_devices: yes
into the configuration.yaml
When enabling the BLE device tracker. I get an error…
homeassistant.bootstrap: Not initializing device_tracker.bluetooth_le_tracker because could not install dependency gattlib==0.20150805
I have tried “sudo pip intall gattlib” and “sudo pip3 install gattlib” via the command line without any luck…
Error:
sudo pip install gattlib
Collecting gattlib
Using cached gattlib-0.20150805.tar.gz
Complete output from command python setup.py egg_info:
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘glib-2.0’ found
Traceback (most recent call last):
File “”, line 1, in
File “/tmp/pip-build-r5Jh7o/gattlib/setup.py”, line 12, in
“pkg-config --cflags glib-2.0”.split()).decode(‘utf-8’)
File “/usr/lib/python2.7/subprocess.py”, line 573, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command ‘[‘pkg-config’, ‘–cflags’, ‘glib-2.0’]’ returned non-zero exit status 1
----------------------------------------
Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-r5Jh7o/gattlib/