philble icon indicating copy to clipboard operation
philble copied to clipboard

*** Terminating app due to uncaught exception 'OC_PythonException', reason: '<class 'ValueError'>: bytes is not a 16-char string'

Open nyreed opened this issue 2 years ago • 0 comments

Running ./lightcom results in the following crash:

Discovering.2022-12-11 14:09:16.759 Python[24010:4096980] *** Terminating app due to uncaught exception 'OC_PythonException', reason: '<class 'ValueError'>: bytes is not a 16-char string' ... stacktrace ... libc++abi: terminating with uncaught exception of type NSException.

This is due to a bug in Adafruit-BluefruitLE, which was fixed but the version of PyPI was never updated with the fix. The library is now deprecated. See: https://github.com/adafruit/Adafruit_Python_BluefruitLE/issues/30#issuecomment-511162115

Fix:

Uninstall the PyPI version of Adafruit-BluefruitLE [pip uninstall Adafruit-BluefruitLE] Install Adafruit-BluefruitLE manually from https://github.com/adafruit/Adafruit_Python_BluefruitLE [git clone] and [sudo python setup.py install]

nyreed avatar Dec 11 '22 13:12 nyreed