OpenInterpreter / 01

The #1 open-source voice interface for desktop, mobile, and ESP32 chips.
https://01.openinterpreter.com/
GNU Affero General Public License v3.0
4.92k stars 517 forks source link

Asyncio Queue Bug #244

Open rbrisita opened 5 months ago

rbrisita commented 5 months ago

Describe the bug Asyncio queues are created outside of the current event loop which results in this error:

Task <Task pending name='Task-16' coro=<send_messages() running at ~/01/software/source/server/server.py:199>
  cb=[gather.<locals>._done_callback() at /usr/lib/python3.9/asyncio/tasks.py:764]>
  got Future <Future pending> attached to a different loop

This stems from 01/software/source/server/server.py::websocket_endpoint function and the send_task statement.

To Reproduce Steps to reproduce the behavior:

  1. poetry run 01 --local

Expected behavior Request and response when interacting with 01OS.

Desktop (please complete the following information):

Additional context Other PRs were merged and an exception printed out to allow this error to be seen. PR to resolve this will follow.