Code Monkey home page Code Monkey logo

Comments (8)

Hectorm53 avatar Hectorm53 commented on September 22, 2024 4

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.

felipecrs avatar felipecrs commented on September 22, 2024 2

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.

home-assistant avatar home-assistant commented on September 22, 2024

bluetooth_tracker documentation
bluetooth_tracker source

from core.

felipecrs avatar felipecrs commented on September 22, 2024

Operating System 12.3

from core.

issue-triage-workflows avatar issue-triage-workflows commented on September 22, 2024

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.

ck-tom avatar ck-tom commented on September 22, 2024

+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.

IAmBecomeDeth avatar IAmBecomeDeth commented on September 22, 2024

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.

tedsluis avatar tedsluis commented on September 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.