Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bleak not working Issue on MacOS 12.0.1 Monterey #683

Closed
Ironman-007 opened this issue Nov 1, 2021 · 1 comment
Closed

Bleak not working Issue on MacOS 12.0.1 Monterey #683

Ironman-007 opened this issue Nov 1, 2021 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@Ironman-007
Copy link

Ironman-007 commented Nov 1, 2021

  • bleak version: 0.11.0
  • Python version: 3.9.7
  • Operating System: MacOS 12.0.1 Monterey
  • BlueZ version (bluetoothctl -v) in case of Linux: n/a

Description

Python3 program with Bleak can not discover any devices.

I'm trying to develop a GUI using Python (with Bleak lib) on my mac to talk to an nRF52840 board through BLE.
But the program can not find any BLE devices.

What I Did

I firstly test this demo from Bleak repo:

import asyncio
import CoreBluetooth

from bleak import discover

async def main():
    print("main()")
    devices = await discover()
    for d in devices:
        print(d)

asyncio.run(main())

There is no output.
I reinstalled the python3 (by using brew), but there is still no output.

When I tried this demo on my PC, it's working, and can find all Bluetooth devices around.

Anyone can help me with this? Thanks in advance! :)

@dlech dlech added the duplicate This issue or pull request already exists label Nov 1, 2021
@dlech
Copy link
Collaborator

dlech commented Nov 1, 2021

Sorry, we haven't figured out a solution to it yet. Please report the issue in the Apple Feedback Assistant and subscribe to issue #635 for updates. Closing this one as a duplicate.

@dlech dlech closed this as completed Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants