Hi all!
I’m running Home Assistant as a rootless podman container and it has been working flawlesly even with zwave2mqtt and several other integrations through mqtt. In any case, after the last upgrade to the 2025.3 version (both .0 and .1) bluetooth has stopped working. I’m pretty sure it is something related to the internal pip install in the container not being able to install a proper dependency, but I have not been able to map exactly where the problem lies. Here comes the relevant log:
``
2025-03-08 11:04:19.880 ERROR (MainThread) [homeassistant.loader] Unexpected exception importing component homeassistant.components.bluetooth
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/loader.py”, line 1014, in async_get_component
comp = await self.hass.async_add_import_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
self._get_component, True
^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File “/usr/local/lib/python3.13/concurrent/futures/thread.py”, line 59, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/src/homeassistant/homeassistant/loader.py”, line 1074, in _get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/util/loop.py”, line 201, in protected_loop_func
return func(*args, **kwargs)
File “/usr/local/lib/python3.13/importlib/init.py”, line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “”, line 1387, in _gcd_import
File “”, line 1360, in _find_and_load
File “”, line 1331, in _find_and_load_unlocked
File “”, line 935, in _load_unlocked
File “”, line 1026, in exec_module
File “”, line 488, in _call_with_frames_removed
File “/usr/src/homeassistant/homeassistant/components/bluetooth/init.py”, line 28, in
from habluetooth import (
…<8 lines>…
)
File “/usr/local/lib/python3.13/site-packages/habluetooth/init.py”, line 26, in
from .scanner import BluetoothScanningMode, HaScanner, ScannerStartError
File “src/habluetooth/scanner.py”, line 18, in init habluetooth.scanner
ImportError: cannot import name stop_discovery``
I’m so far out of ideas on where the problem lies. I’ve looked into the deps directory and see that the dependencies seem to be there, here is the ls -la in the config director (outside of the container that then I can see mapped as /config inside the container)
nacho@calixto:/etc/homeassistant/deps$ ls
aioaquarea charset_normalizer pydantic-1.10.19.dist-info
aioaquarea-0.7.2.dist-info charset_normalizer-3.4.0.dist-info pyplejd
aiodocker charset_normalizer.libs pyplejd-0.14.7.dist-info
aiodocker-0.21.0.dist-info dateutil python_dateutil-2.9.0.post0.dist-info
aiohappyeyeballs dbus_fast pytz
aiohappyeyeballs-2.4.4.dist-info dbus_fast-2.33.0.dist-info pytz-2024.2.dist-info
aiohttp frozenlist requests
aiohttp-3.11.10.dist-info frozenlist-1.5.0.dist-info requests-2.32.3.dist-info
aiohttp.libs hass_web_proxy_lib six-1.17.0.dist-info
aiooui hass_web_proxy_lib-0.0.7.dist-info six.py
aiooui-0.1.7.dist-info idna srp
aio_panasonic_comfort_cloud idna-3.10.dist-info srp-1.0.22.dist-info
aio_panasonic_comfort_cloud-2025.1.2.dist-info lib typing_extensions-4.12.2.dist-info
aiosignal multidict typing_extensions.py
aiosignal-1.3.1.dist-info multidict-6.1.0.dist-info uart_devices
attr multidict.libs uart_devices-0.1.0.dist-info
attrs music_assistant urllib3
attrs-24.2.0.dist-info music_assistant-2.0.0.dist-info urllib3-1.26.20.dist-info
bin nordpool usb_devices
bleak nordpool-0.4.2.dist-info usb_devices-0.4.5.dist-info
bleak-0.22.3.dist-info prettytable wcwidth
bleak_retry_connector prettytable-3.12.0.dist-info wcwidth-0.2.13.dist-info
bleak_retry_connector-3.8.1.dist-info propcache xmltodict-0.13.0.dist-info
bluetooth_adapters propcache-0.2.1.dist-info xmltodict.py
bluetooth_adapters-0.21.4.dist-info propcache.libs yarl
certifi pycache yarl-1.18.3.dist-info
certifi-2024.8.30.dist-info pydantic yarl.libs
Any idea on what could be the problem? I assume I will have to go into the container and make a pip install of something, but I cannot pinpoint what.
Thanks!