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

AttributeError: module 'socket' has no attribute 'AF_BLUETOOTH' #6

Open
rjblake opened this issue Dec 31, 2020 · 1 comment
Open

AttributeError: module 'socket' has no attribute 'AF_BLUETOOTH' #6

rjblake opened this issue Dec 31, 2020 · 1 comment

Comments

@rjblake
Copy link

rjblake commented Dec 31, 2020

Any idea how to fix this? I can't seem to determine what is missing to get it to work.

pi@raspi:~/py-bluetooth-utils $ python3.9 example_ble_scan.py
Traceback (most recent call last):
File "/home/pi/py-bluetooth-utils/example_ble_scan.py", line 13, in
toggle_device(dev_id, True)
File "/home/pi/py-bluetooth-utils/bluetooth_utils.py", line 88, in toggle_device
hci_sock = socket.socket(socket.AF_BLUETOOTH,
AttributeError: module 'socket' has no attribute 'AF_BLUETOOTH'

@ZHCSOFT
Copy link

ZHCSOFT commented May 10, 2023

Use system-provided python. Do not use python installed via conda

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants