Comments (8)
Same issue here,
Just included the bluetooth tracker in my config.yaml and when clicking on check configuration the following error appears:
Configuration warnings
Platform error 'device_tracker' from integration 'bluetooth_tracker' - Requirements for bluetooth_tracker not found: ['PyBluez==0.22'].
running HAOS 12.4 on a raspberry pi 4
from core.
Same issue with HAOS 13.0:
Logger: homeassistant.util.package
Source: util/package.py:123
First occurred: 11:26:44 AM (1 occurrences)
Last logged: 11:26:44 AM
Unable to install package PyBluez==0.22: error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [19 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-cpython-312 creating build/lib.linux-x86_64-cpython-312/bluetooth copying bluetooth/ble.py -> build/lib.linux-x86_64-cpython-312/bluetooth copying bluetooth/bluez.py -> build/lib.linux-x86_64-cpython-312/bluetooth copying bluetooth/btcommon.py -> build/lib.linux-x86_64-cpython-312/bluetooth copying bluetooth/msbt.py -> build/lib.linux-x86_64-cpython-312/bluetooth copying bluetooth/osx.py -> build/lib.linux-x86_64-cpython-312/bluetooth copying bluetooth/widcomm.py -> build/lib.linux-x86_64-cpython-312/bluetooth copying bluetooth/__init__.py -> build/lib.linux-x86_64-cpython-312/bluetooth running build_ext building 'bluetooth._bluetooth' extension creating build/temp.linux-x86_64-cpython-312 creating build/temp.linux-x86_64-cpython-312/bluez gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fno-semantic-interposition -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -DTHREAD_STACK_SIZE=0x100000 -fPIC -I./port3 -I/usr/local/include/python3.12 -c bluez/btmodule.c -o build/temp.linux-x86_64-cpython-312/bluez/btmodule.o error: command 'gcc' failed: No such file or directory [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for PyBluez ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (PyBluez)
I really don't understand how come no one else complained about this. Would I be the only person trying to use this integration? lol
from core.
bluetooth_tracker documentation
bluetooth_tracker source
from core.
Operating System 12.3
from core.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
from core.
+1 to this.
Running on
x86_64
Core
2024.8.1
Supervisor
2024.08.0
Operating System
13.0
Frontend
20240809.0
Added this to configuration.yaml
device_tracker:
- platform: bluetooth_tracker
Checking configuration throws out:
Configuration warnings
Platform error 'device_tracker' from integration 'bluetooth_tracker' - Requirements for bluetooth_tracker not found: ['PyBluez==0.22'].
For reference here's similar looking issues for container (#119986) and core (#89119) but I suspect they might not be super relevant to this.
from core.
I was one of those two bugs linked, it's definitely been an issue for quite some time. I was able to force it to work at some point by injecting pybluez into the container but I don't even remember how I did it anymore, and obviously that was lost as soon as a new version came out.
For people on HAOS it may be much easier (but shouldn't be necessary) to install pyblues through pip
from core.
Same issue here,
Just included the bluetooth tracker in my config.yaml.
device_tracker:
- platform: bluetooth_tracker
Click on check configuration takes forever and the following error appears in the core log:
Unable to install package PyBluez==0.22: error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [19 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.linux-aarch64-cpython-312 creating build/lib.linux-aarch64-cpython-312/bluetooth copying bluetooth/ble.py -> build/lib.linux-aarch64-cpython-312/bluetooth copying bluetooth/bluez.py -> build/lib.linux-aarch64-cpython-312/bluetooth copying bluetooth/btcommon.py -> build/lib.linux-aarch64-cpython-312/bluetooth copying bluetooth/msbt.py -> build/lib.linux-aarch64-cpython-312/bluetooth copying bluetooth/osx.py -> build/lib.linux-aarch64-cpython-312/bluetooth copying bluetooth/widcomm.py -> build/lib.linux-aarch64-cpython-312/bluetooth copying bluetooth/__init__.py -> build/lib.linux-aarch64-cpython-312/bluetooth running build_ext building 'bluetooth._bluetooth' extension creating build/temp.linux-aarch64-cpython-312 creating build/temp.linux-aarch64-cpython-312/bluez gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fno-semantic-interposition -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -DTHREAD_STACK_SIZE=0x100000 -fPIC -I./port3 -I/usr/local/include/python3.12 -c bluez/btmodule.c -o build/temp.linux-aarch64-cpython-312/bluez/btmodule.o error: command 'gcc' failed: No such file or directory [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for PyBluez ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (PyBluez)
This is what I found about PyBluez on my home assistant:
/ $ grep PyBluez -R * 2> /dev/null
config/home-assistant.log:2024-08-30 07:11:30.127 ERROR (SyncWorker_25) [homeassistant.util.package] Unable to install package PyBluez==0.22: error: subprocess-exited-with-error
config/home-assistant.log: ERROR: Failed building wheel for PyBluez
config/home-assistant.log:ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (PyBluez)
config/home-assistant.log:2024-08-30 07:11:39.761 ERROR (SyncWorker_23) [homeassistant.util.package] Unable to install package PyBluez==0.22: error: subprocess-exited-with-error
config/home-assistant.log: ERROR: Failed building wheel for PyBluez
config/home-assistant.log:ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (PyBluez)
config/home-assistant.log:2024-08-30 07:12:03.906 ERROR (SyncWorker_25) [homeassistant.util.package] Unable to install package PyBluez==0.22: error: subprocess-exited-with-error
config/home-assistant.log: ERROR: Failed building wheel for PyBluez
config/home-assistant.log:ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (PyBluez)
config/home-assistant.log:2024-08-30 07:12:12.485 ERROR (SyncWorker_23) [homeassistant.util.package] Unable to install package PyBluez==0.22: error: subprocess-exited-with-error
config/home-assistant.log: ERROR: Failed building wheel for PyBluez
config/home-assistant.log:ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (PyBluez)
config/home-assistant.log:2024-08-30 07:12:13.828 ERROR (SyncWorker_42) [homeassistant.util.package] Unable to install package PyBluez==0.22: error: subprocess-exited-with-error
config/home-assistant.log: ERROR: Failed building wheel for PyBluez
config/home-assistant.log:ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (PyBluez)
config/home-assistant.log:2024-08-30 07:12:39.284 ERROR (SyncWorker_25) [homeassistant.util.package] Unable to install package PyBluez==0.22: error: subprocess-exited-with-error
config/home-assistant.log: ERROR: Failed building wheel for PyBluez
config/home-assistant.log:ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (PyBluez)
config/home-assistant.log:2024-08-30 07:12:45.966 ERROR (SyncWorker_23) [homeassistant.util.package] Unable to install package PyBluez==0.22: error: subprocess-exited-with-error
config/home-assistant.log: ERROR: Failed building wheel for PyBluez
config/home-assistant.log:ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (PyBluez)
config/home-assistant.log:2024-08-30 07:12:46.998 ERROR (SyncWorker_42) [homeassistant.util.package] Unable to install package PyBluez==0.22: error: subprocess-exited-with-error
config/home-assistant.log: ERROR: Failed building wheel for PyBluez
config/home-assistant.log:ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (PyBluez)
config/home-assistant.log:2024-08-30 07:13:10.084 ERROR (SyncWorker_42) [homeassistant.util.package] Unable to install package PyBluez==0.22: error: subprocess-exited-with-error
config/home-assistant.log: ERROR: Failed building wheel for PyBluez
config/home-assistant.log:ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (PyBluez)
config/home-assistant.log:2024-08-30 07:14:22.749 ERROR (SyncWorker_21) [homeassistant.util.package] Unable to install package PyBluez==0.22: error: subprocess-exited-with-error
config/home-assistant.log: ERROR: Failed building wheel for PyBluez
config/home-assistant.log:ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (PyBluez)
config/home-assistant.log:2024-08-30 07:14:46.112 ERROR (SyncWorker_21) [homeassistant.util.package] Unable to install package PyBluez==0.22: error: subprocess-exited-with-error
config/home-assistant.log: ERROR: Failed building wheel for PyBluez
config/home-assistant.log:ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (PyBluez)
config/home-assistant.log:2024-08-30 07:15:10.666 ERROR (SyncWorker_21) [homeassistant.util.package] Unable to install package PyBluez==0.22: error: subprocess-exited-with-error
config/home-assistant.log: ERROR: Failed building wheel for PyBluez
config/home-assistant.log:ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (PyBluez)
dev/mem:MESSAGE=2024-08-30 07:12:39.284 ERROR (SyncWorker_25) [homeassistant.util.package] Unable to install package PyBluez==0.22: error: subprocess-exited-with-error
dev/mem:PyBluez.egg-info
dev/mem:MESSAGE=2024-08-30 07:12:39.284 ERROR (SyncWorker_25) [homeassistant.util.package] Unable to install package PyBluez==0.22: error: subprocess-exited-with-error
Interesting details:
- Dune to this issue, my home assistant does not reboot anymore?!
- cpu usage of home assistant core raised from 4% to 60% when I added the bluetooth tracker. It stayed high for 15 minutes.
- When I remove the device_tracker: - platform: bluetooth_tracker I am able again to click on check configuration and reboot home assistant works again.
I have tried to solve the issues by installing py3-bluez package for alpine and then added the device_tracker in my config.yaml again, but that didn´t solve the issue:
apk add bluez
fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/aarch64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/aarch64/APKINDEX.tar.gz
(1/11) Installing dbus-libs (1.14.10-r0)
(2/11) Installing libexpat (2.6.2-r0)
(3/11) Installing dbus (1.14.10-r0)
Executing dbus-1.14.10-r0.pre-install
Executing dbus-1.14.10-r0.post-install
(4/11) Installing dbus-daemon-launch-helper (1.14.10-r0)
(5/11) Installing libffi (3.4.4-r3)
(6/11) Installing libintl (0.22.3-r0)
(7/11) Installing libblkid (2.39.3-r0)
(8/11) Installing libmount (2.39.3-r0)
(9/11) Installing pcre2 (10.42-r2)
(10/11) Installing glib (2.78.6-r0)
(11/11) Installing bluez (5.70-r0)
Executing busybox-1.36.1-r19.trigger
Executing dbus-1.14.10-r0.trigger
Executing glib-2.78.6-r0.trigger
OK: 43 MiB in 57 packages
From the core log:
2024-08-31 09:41:07.981 ERROR (SyncWorker_0) [homeassistant.util.package] Unable to install package PyBluez==0.22: error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [19 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-aarch64-cpython-312
creating build/lib.linux-aarch64-cpython-312/bluetooth
copying bluetooth/ble.py -> build/lib.linux-aarch64-cpython-312/bluetooth
copying bluetooth/bluez.py -> build/lib.linux-aarch64-cpython-312/bluetooth
copying bluetooth/btcommon.py -> build/lib.linux-aarch64-cpython-312/bluetooth
copying bluetooth/msbt.py -> build/lib.linux-aarch64-cpython-312/bluetooth
copying bluetooth/osx.py -> build/lib.linux-aarch64-cpython-312/bluetooth
copying bluetooth/widcomm.py -> build/lib.linux-aarch64-cpython-312/bluetooth
copying bluetooth/__init__.py -> build/lib.linux-aarch64-cpython-312/bluetooth
running build_ext
building 'bluetooth._bluetooth' extension
creating build/temp.linux-aarch64-cpython-312
creating build/temp.linux-aarch64-cpython-312/bluez
gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fno-semantic-interposition -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free -DTHREAD_STACK_SIZE=0x100000 -fPIC -I./port3 -I/usr/local/include/python3.12 -c bluez/btmodule.c -o build/temp.linux-aarch64-cpython-312/bluez/btmodule.o
error: command 'gcc' failed: No such file or directory
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for PyBluez
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (PyBluez)
Home assistant Yellow
Core 2024.8.3
Supervisor 2024.08.0
Operating System 13.1
Frontend 20240809.0
How can I help to investigate to issue? What (log) files are needed to investigate?
from core.
Related Issues (20)
- Tado Integration - provided temperature is invalid HOT 1
- setup failed influxdb HOT 2
- Scene defined in UI locked with "Only scenes defined in scenes.yaml are editable." HOT 3
- Error during setup of component map after initial setup and update of Home Assistant Green HOT 2
- Something is blocking Home Assistant from wrapping up the start up phase. HOT 3
- Media player play media has extremely long delays with local streams
- snapclient integration has zombie connections or something. HOT 1
- Integral sensor: trapezoid method, strange output? HOT 3
- Unable to connect to the Olama server HOT 18
- [Xiaomi Miio integration] - Failed setup, will retry: {'code': -5001, 'message': 'stuck'} - Xiaomi Smart Humidifier 2 HOT 2
- [MQTT] sensors with "options" errors out if "device_class" not set to "enum" --> Doc says SHOULD HOT 1
- HA freeze every restart od zwavejs docker HOT 1
- Failed to deliver message: <sl_Status.ZIGBEE_DELIVERY_FAILED: 3074> (not for RF interference) HOT 6
- Home Assistant Cloud speech-to-text sometimes breaks cardinal directions HOT 1
- Nice G.O. Requring Regular Reloads HOT 6
- Gigabytes of logs, and a memory leak. HOT 1
- Linkplay device will not seek or power off/idle HOT 2
- Runtime error in logs - Hydrawise HOT 1
- Not all hvac_modes available for Heat-pump in Tuya integration HOT 1
- Hive Hot Water Control still fails in 2024.9.2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core.