Host / SBC: fly pi lite 2.
Been pulling my hair out for the last couple of days…
FIrst time i encounter this issue but i´ve tried uninstalling and reinstalling Moonraker with the same result.
Using Kiauh.
Any help would be much appreciated!
moonraker.log (100.1 KB)
i suspect the issue has something to do with whatever this means:
Arksine
January 19, 2025, 11:34am
2
It looks similar to this issue.
opened 11:24AM - 24 Nov 23 UTC
closed 12:58AM - 05 Dec 23 UTC
bug
answered
* bleak version: 0.21.1
* dbus-fast version: >=2.0.0
* Python version: 3.11.2
…
* Operating System: Raspbian 11
* BlueZ version (`bluetoothctl -v`) in case of Linux: 5.65
### Description
Hello,
After I am upgraded Bleak (0.21.1) and dbus-fast (2.0.0 and 2.14.0) on my Raspberry Pi there are a issue when I like to start scanning for BLE Devices with BleakScanner. It seems something going wrong when I am initialize the BleakScanner.
### What I Did
In my code I am just calling BleakScanner() and after that the only thing that happends is the error in Logs.
```
async def scan(self, timeout: float = 10.0) -> list[BLEDevice]:
_scanner = BleakScanner()
return await _scanner.discover(timeout=timeout)
```
### Logs
```2023-11-15 18:39:59,959 - pi_socket - ERROR: Can not create Dataclass: dbus_fast.signature.Variant size changed, may indicate binary incompatibility. Expected 24 from C header, got 20 from PyObject```
Sorry that I can't provide more Logging Informations, when I am runnging my program with dbus-fast 1.84.2 I can see the whole Scanning progress in my log but with dbus-fast >=2.0.0 there is only thats what is comming. Also for not providing more Informations. I am just using Bleak and they told me this might be a problem with dbus-fast so I should reporded here.
If there is more information I can providing you feel free to contact me.
Thanks for your help in advance.
In short, your system encountered a problem building the wheel during the update. You can try reinstalling dbus-fast via ssh:
source ~/moonraker-env/bin/activate
pip uninstall dbus-fast
pip cache remove dbus-fast
pip install dbus-fast
sudo systemctl restart moonraker
deactivate