0-1-0 / lightblue-0.4

LightBlue python module that compiles successful on OS X 10.8 (Mountain Lion)
GNU General Public License v3.0
95 stars 92 forks source link

error on Mac OS X 10.13.1 #12

Open juneJuly opened 6 years ago

juneJuly commented 6 years ago

when try to connect a device , it raise an exception in file _macutil.py at line 75:

'module' object has no attribute 'BluetoothDeviceAddress'

error msg:

Traceback (most recent call last):
  File "test.py", line 26, in <module>
    crash(target)
  File "test.py", line 10, in crash
    sock.connect((target, 0xf))
  File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/lightblue/_bluetoothsockets.py", line 351, in connect
    _macutil.createbtdevaddr(address[0]))
ValueError: depythonifying struct of 1 members, got tuple of 6