btlewrap icon indicating copy to clipboard operation
btlewrap copied to clipboard

BluePy no longer compatible with Python 3.10

Open austwhite opened this issue 2 years ago • 4 comments

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.

austwhite avatar Jul 09 '22 01:07 austwhite

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:

  • Root cause of the incompatibility: https://github.com/IanHarvey/bluepy/issues/489
  • miflora: https://github.com/basnijholt/miflora/issues/170
  • home assistant: https://github.com/home-assistant/core/issues/74585

ChristianKuehnel avatar Jul 10 '22 15:07 ChristianKuehnel

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

sgurgul avatar Jul 10 '22 15:07 sgurgul

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 avatar Jul 11 '22 12:07 austwhite

@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

austwhite avatar Jul 20 '22 06:07 austwhite