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

ValueError: badly formed hexadecimal UUID string #35

Open
r-bt opened this issue Jun 1, 2023 · 0 comments
Open

ValueError: badly formed hexadecimal UUID string #35

r-bt opened this issue Jun 1, 2023 · 0 comments

Comments

@r-bt
Copy link

r-bt commented Jun 1, 2023

Hi,

I'm trying to use this library with a Sphero Bolt. I'm on macOS using python 3.10

from spherov2 import scanner
from spherov2.sphero_edu import SpheroEduAPI

toy = scanner.find_toy()

I get the following error:

Exception in callback CentralManagerDelegate.did_discover_peripheral(<CBCentralMan...x600003ff0d80>, <CBPeripheral... disconnected>, {
    kCBAdvD...erLevel = 8;
}, -97)
handle: <Handle CentralManagerDelegate.did_discover_peripheral(<CBCentralMan...x600003ff0d80>, <CBPeripheral... disconnected>, {
    kCBAdvD...erLevel = 8;
}, -97)>
Traceback (most recent call last):
  File "/Users/richard/miniforge3/lib/python3.10/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "/Users/richard/Library/Caches/pypoetry/virtualenvs/spherov2-test-L0-TfrQP-py3.10/lib/python3.10/site-packages/bleak/backends/corebluetooth/CentralManagerDelegate.py", line 265, in did_discover_peripheral
    callback(peripheral, advertisementData, RSSI)
  File "/Users/richard/Library/Caches/pypoetry/virtualenvs/spherov2-test-L0-TfrQP-py3.10/lib/python3.10/site-packages/bleak/backends/corebluetooth/scanner.py", line 116, in callback
    service_uuids = [
  File "/Users/richard/Library/Caches/pypoetry/virtualenvs/spherov2-test-L0-TfrQP-py3.10/lib/python3.10/site-packages/bleak/backends/corebluetooth/scanner.py", line 117, in <listcomp>
    cb_uuid_to_str(u) for u in a.get("kCBAdvDataServiceUUIDs", [])
  File "/Users/richard/Library/Caches/pypoetry/virtualenvs/spherov2-test-L0-TfrQP-py3.10/lib/python3.10/site-packages/bleak/backends/corebluetooth/utils.py", line 19, in cb_uuid_to_str
    return normalize_uuid_str(uuid.UUIDString())
  File "/Users/richard/Library/Caches/pypoetry/virtualenvs/spherov2-test-L0-TfrQP-py3.10/lib/python3.10/site-packages/bleak/uuids.py", line 1167, in normalize_uuid_str
    return str(UUID(uuid))
  File "/Users/richard/miniforge3/lib/python3.10/uuid.py", line 177, in __init__
    raise ValueError('badly formed hexadecimal UUID string')
ValueError: badly formed hexadecimal UUID string
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