Nutzung von bluetooth auf dem Mac mit Python

Habe ich praktisch durchforstet das ganze Internet (metaphorisch gesprochen) versuchen, einen Weg zu finden, funktioniert mit Bluetooth über Python auf dem Mac. PyBluez nicht kompatibel ist, Hellblau ist nicht gepflegt wird (versucht unabhängig), installiert die PyObC Rahmen (incl Bluetooth-Framework), und versucht, in meinen beiden 2.7.6 und 3.6.1 Umgebungen mit MacOS 10.10.5.

Bekomme ich oft Fehler wie die unten:

    Traceback (most recent call last):
  File "/Users/***/PycharmProjects/Bluey/main.py", line 1, in <module>
    import bluetooth
  File "build/bdist.macosx-10.10-intel/egg/bluetooth/__init__.py", line 47, in <module>
  File "build/bdist.macosx-10.10-intel/egg/bluetooth/osx.py", line 1, in <module>
  File "build/bdist.macosx-10.10-intel/egg/lightblue/__init__.py", line 160, in <module>
  File "build/bdist.macosx-10.10-intel/egg/lightblue/_lightblue.py", line 31, in <module>
  File "build/bdist.macosx-10.10-intel/egg/lightblue/_macutil.py", line 169, in <module>
objc.BadPrototypeError: Objective-C expects 1 arguments, Python argument has 2 arguments for <unbound selector sleep of BBCocoaSleeper at 0x103cdc030>

Process finished with exit code 1

Ich hab auch schon versucht die Neuinstallation alle die vorgenannten Module für beide Umgebungen.

Ich will nur in der Lage, mit Bluetooth-w/o änderung von OSs für ein Projekt. Ich bin mir sicher, dass ich was verpasst habe, da ich bezweifle, dass niemand die codes für Bluetooth auf dem Mac mit Python. Wenn es inhärente Probleme der Kompatibilität, ist es ein anderes Modul, das ich noch zu entdecken?

Es gibt keine vollständigen Bibliotheken für die BLE auf macOS.

InformationsquelleAutor Nathan | 2017-06-05

Schreibe einen Kommentar