digitalbirdo / BT-LinkkeySync

Scripts to synchronize bluetooth link keys from mac OSX to windows
MIT License
112 stars 32 forks source link

KeyError: 'LinkKeys' #13

Closed Kent-Narun closed 4 years ago

Kent-Narun commented 5 years ago

I'm currently using MacOS Majave 10.14 beta. Ross-MacBook-Pro:Desktop rossoknarun$ sudo ./BT-Linkkeysync.py

BT-Linkkeysync by DigitalBird

get Bluetooth Link Keys from macOS and store it to blued.plist convert exported list from binary to xml parse the converted plist Convert the Link Keys and store them to btkeys.reg Traceback (most recent call last): File "./BT-Linkkeysync.py", line 45, in print(" Bluetooth 2.0: "+str(len(pl["LinkKeys"].keys()))+ " Links keys found") KeyError: 'LinkKeys'

coconut49 commented 5 years ago

https://github.com/digitalbirdo/BT-LinkkeySync/blob/adb7985d3008a50fcf25ff60ae1f2d38938adbfe/BT-LinkkeySync.py#L15

set highSierraLoc = True please

MrTomek commented 4 years ago
Traceback (most recent call last):
  File "./BT-Linkkeysync.py", line 45, in <module>
    print("  Bluetooth 2.0:    "+str(len(pl["LinkKeys"].keys()))+ " Links keys found")
KeyError: 'LinkKeys'

macOS High Sierra 10.13.6 iMac 21.5-inch Mid 2011

StefanLobbenmeier commented 4 years ago

I had the same issue and resolved it in my branch. Please check if the fix works for you, and don't forget to comment in the pull request if it succeeded :)

MrTomek commented 4 years ago

Thanks, well done

digitalbirdo commented 4 years ago

I could not test it as I don't have a working hackintosh at the moment, but the change looks good. Thx @StefanLobbenmeier