ChristianKuehnel / btlewrap

Bluetooth LowEnergy wrapper for different python backends.
MIT License
35 stars 19 forks source link

BluePy no longer compatible with Python 3.10 #51

Open austwhite opened 2 years ago

austwhite commented 2 years ago

I use Home Assistant, which I believe uses this wrapper for Mi Flora integration. They have moved to Python 3.10 and unfortunately BluePy is no longer compatible. I don't have the knowledge to fix this myself, so I am just raising this as an issue to be investigated.

ChristianKuehnel commented 2 years ago

Looks like we need someone to port BluePy to Python 3.10. There is not much I can do in btlewrap. Maybe you can use the bluez backend and the command line tools as a workaround?

related issues:

sgurgul commented 2 years ago

@ChristianKuehnel Another (than porting BluePy) direction would be to enhance btlewrap with the new backend (Bleak), right ? I was going to take a look if I can help with that. Bleak seems to be more future proof.

austwhite commented 2 years ago

If I recall from the discussions on Home Assistant, BLueZ also has issues with Python 3.10. I don't really have the knowledge to test it unfrotunately

austwhite commented 2 years ago

@ChristianKuehnel Another (than porting BluePy) direction would be to enhance btlewrap with the new backend (Bleak), right ? I was going to take a look if I can help with that. Bleak seems to be more future proof.

IF you are looking at that, that would work on issue https://github.com/ChristianKuehnel/btlewrap/issues/30 which seems to be a previous request to support Bleak