custom-components / ble_monitor

BLE monitor for passive BLE sensors
https://community.home-assistant.io/t/passive-ble-monitor-integration/
MIT License
1.85k stars 239 forks source link

setup fail on HA 2024.4.3 #1347

Closed robertomontinaro80 closed 1 month ago

robertomontinaro80 commented 2 months ago

What happened?

ble_monitor setup fails after updating HA from 2024.4.2 to 2024.4.3 Below the log Setup failed for custom integration 'ble_monitor': Requirements for ble_monitor not found: ['aioblescan>=0.2.14', 'janus>=1.0.0'].

Sensor type

No response

Relevant log output

Setup failed for custom integration 'ble_monitor': Requirements for ble_monitor not found: ['aioblescan>=0.2.14', 'janus>=1.0.0'].
Ernst79 commented 2 months ago

Try a full system restart first.

robertomontinaro80 commented 2 months ago

Try a full system restart first.

Already tried. Nothing changed. I can assert that the issue is related to the new version of Home Assistant as I wrote in the issue description.

Ernst79 commented 2 months ago

I don’t have this issue on my system, also running 2024.4.3.

Did you install BLE monitor after you installed HA 2024.4.3?

robertomontinaro80 commented 2 months ago

I don’t have this issue on my system, also running 2024.4.3.

Did you install BLE monitor after you installed HA 2024.4.3?

I use the BLE integration monitor since 2 years :) but ok, I can try again to reinstall the version 2024.4.3.

Ernst79 commented 2 months ago

The thing is that the error says that it can't find aioblescan and janus (which are packages used by BLE monitor). These packages should already be on your system for a long time, as I haven't changed anything to these requirements. So, I'm a bit supprised that this error pops up on your system (and no one else complained so far). You can try to install them manually, if you are NOT running Home Assistant OS. Otherwise, try to reinstall BLE monitor.

robertomontinaro80 commented 1 month ago

just updated HA to the version 2024.5.3 and now the error appeared again and it does not want to go away :(

Requirements for ble_monitor not found: ['janus>=1.0.0', 'aioblescan>=0.2.14'

Ernst79 commented 1 month ago

Can you install these packages manually on your system with pip install janus and pip install aioblescan

robertomontinaro80 commented 1 month ago

I use HA in docker installation and usually I don't need to install manually any package. I can try to reinstall HA but I'm not sure how useful could it be.

Ernst79 commented 1 month ago

No, just try 'pip install janus' and 'pip install aioblescan' first (in the docker environment of course). The problem is that you seem to be the only one that is having this issue. Perhaps the above already solves it.

robertomontinaro80 commented 1 month ago

I don't know why but after restarting directly the O.S. of my raspberry - I'm using OMV 6 with portainer docker manager installed on it, in wich HA is running as container - ble integration started to work again. Thanks for your support anyway.