IanHarvey / bluepy

Python interface to Bluetooth LE on Linux
Other
1.59k stars 491 forks source link

ValueError: too many values to unpack (expected 2) #387

Open pattyland opened 4 years ago

pattyland commented 4 years ago

Hi there, Lately this error appears more and more often in my logs:

File "/usr/local/lib/python3.7/site-packages/avea/avea.py", line 237, in discover_avea_bulbs
    devices = scanner.scan(4.0)
  File "/usr/local/lib/python3.7/site-packages/bluepy/btle.py", line 852, in scan
  File "/usr/local/lib/python3.7/site-packages/bluepy/btle.py", line 790, in start
  File "/usr/local/lib/python3.7/site-packages/bluepy/btle.py", line 309, in _mgmtCmd
    DBG("Select timeout")
  File "/usr/local/lib/python3.7/site-packages/bluepy/btle.py", line 352, in _waitResp
    elif deviceAddr is not None:
  File "/usr/local/lib/python3.7/site-packages/bluepy/btle.py", line 318, in parseResp
    if 'rsp' not in resp:
ValueError: too many values to unpack (expected 2)

After that, communication with the device is no longer possible.

Best regards pattyland