Tigge / openant

ANT and ANT-FS Python Library
MIT License
182 stars 85 forks source link

TypeError: 'NoneType' object is not iterable when connecting to the Device #68

Open purpl3F0x opened 3 years ago

purpl3F0x commented 3 years ago

I'm trying to run the scan.py example (on windows) but I'm getting the following error. I tried playing around with the driver code according to other ant libs but still gives the same error...

  File "c:\Users\Stavros Avramidis\Downloads\openant-master\openant\ant\base\ant.py", line 59, in __init__
    driver.open()
  File "c:\Users\Stavros Avramidis\Downloads\openant-master\openant\ant\base\driver.py", line 231, in open
    out = usb.util.find_descriptor(
  File "C:\msys64\mingw64\lib\python3.9\site-packages\usb\util.py", line 192, in find_descriptor
    return _interop._next(desc_iter(**args))
  File "C:\msys64\mingw64\lib\python3.9\site-packages\usb\_interop.py", line 68, in _next
    return next(iter)
  File "C:\msys64\mingw64\lib\python3.9\site-packages\usb\util.py", line 183, in desc_iter
    for d in desc:
TypeError: 'NoneType' object is not iterable