I'm getting the following error when I attempt to run hue-thief using the following command
python3 hue-thief.py /dev/ttyUSB0
Any ideas as to the cause?
hue-thief.py:28: RuntimeWarning: coroutine 'setup' was never awaited
s = yield from util.setup(device, baudrate=57600)
Traceback (most recent call last):
File "hue-thief.py", line 124, in
loop.run_until_complete(steal(sys.argv[1]))
File "/usr/lib/python3.5/asyncio/base_events.py", line 466, in run_until_complete
return future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
raise self._exception
File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
result = coro.send(None)
File "hue-thief.py", line 28, in steal
s = yield from util.setup(device, baudrate=57600)
TypeError: cannot 'yield from' a coroutine object in a non-coroutine generator
I'm getting the following error when I attempt to run hue-thief using the following command python3 hue-thief.py /dev/ttyUSB0
Any ideas as to the cause?
hue-thief.py:28: RuntimeWarning: coroutine 'setup' was never awaited s = yield from util.setup(device, baudrate=57600) Traceback (most recent call last): File "hue-thief.py", line 124, in
loop.run_until_complete(steal(sys.argv[1]))
File "/usr/lib/python3.5/asyncio/base_events.py", line 466, in run_until_complete
return future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
raise self._exception
File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
result = coro.send(None)
File "hue-thief.py", line 28, in steal
s = yield from util.setup(device, baudrate=57600)
TypeError: cannot 'yield from' a coroutine object in a non-coroutine generator