Skip to content

awaiting a future attached to a different loop #43

@jensbjorgensen

Description

@jensbjorgensen

Running on a recent raspberry pi, I tried to run the script under the tutorial heading

Talking to Python from the Browser

Once I open the link in the browser the script begins rapidly spewing errors of the form:

RuntimeError: Task <Task pending name='Task-11627' coro=<Queue.get() running at /usr/lib/python3.9/asyncio/queues.py:166> cb=[<TaskWakeupMethWrapper object at 0xa8a25a18>()]> got Future attached to a different loop
Got unrecognized error from task. ignoring:
Traceback (most recent call last):
File "/home/pi/src/rtcbot/rtcbot/base/base.py", line 365, in _get
await self._getTask
File "/usr/lib/python3.9/asyncio/queues.py", line 166, in get
await getter

As the src path suggests, I've pulled latest git in case this was somehow recently fixed.

Looking at the code in base.py around 365, self._getTask created just above it, should yield the same loop where await is called on 365 so I'm a bit confused about the error. But that's the error .... not sure what to make of it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions