pybluez / pybluez

Bluetooth Python extension module
https://pybluez.readthedocs.io/
GNU General Public License v2.0
2.25k stars 668 forks source link

install error on Raspberry Pi #476

Open xgqfrms opened 1 year ago

xgqfrms commented 1 year ago

install error on Raspberry Pi

image

System

Issue

reproduce steps

$ sudo pip3 install pybluez
#!/usr/bin/env python3
# coding: utf8

from time import sleep
import bluetooth

try:
  nearby_devices = bluetooth.discover_devices(lookup_names=True)
  print("Found {} devices.".format(len(nearby_devices)))
  for addr, name in nearby_devices:
    print("address = {}, name = {}".format(addr, name))
except KeyboardInterrupt:
  print("Ctrl + C ✅")
finally:
  sleep(1)
  print("clear ✅")

long logs.

https://gist.github.com/xgqfrms/af407d86c1630af75046d19c0b785451

CoolCash1 commented 1 year ago

Try running sudo apt install bluetooth libbluetooth-dev and then try install again