Odrive 0.6.1.post0 throws Taskexception was never retrieved

I just did a pip install --upgrade odrive today and it bumped my odrivetool from 0.5.4 to 0.6.1.post0.

Now odrivetool is doing this when my odrive connects:

Task exception was never retrieved
future: <Task finished name='Task-3' coro=<_Domain.run_discovery.<locals>.loop() done, defined at C:\Users\jeffr\AppDat>
Traceback (most recent call last):
  File "C:\Users\jeffr\AppData\Local\Programs\Python\Python310\Lib\site-packages\odrive\pyfibre\fibre\libfibre.py", linp
    await callback(obj)
  File "C:\Users\jeffr\AppData\Local\Programs\Python\Python310\Lib\site-packages\odrive\pyfibre\fibre\shell.py", line 2e
    display_name, serial_number, var_name = mount_result
ValueError: not enough values to unpack (expected 3, got 2)

This did not happen with the 0.5.4 version.

Is there a known problem with the 0.6.1 firmware or am I the first to trip over it?

Try changing C:\Users\jeffr\AppData\Local\Programs\Python\Python310\Lib\site-packages\odrive\pyfibre\fibre\shell.py line 123 from
return ("device " + serial_number_str, "dev")
to
return ("device " + serial_number_str, serial_number_str, "dev")

1 Like