Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nyreed opened this issue Dec 11, 2022 · 0 comments

Comments

@nyreed
Copy link

nyreed commented Dec 11, 2022

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: adafruit/Adafruit_Python_BluefruitLE#30 (comment)

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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant