Skip to content

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

@nyreed

Description

@nyreed

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions