You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RuntimeError: There is no current event loop in thread 'MainThread'. #6
Exception ignored in: <function AsyncOpenAIAPI.__del__ at 0x7faf6116aa70>
Traceback (most recent call last):
File "/home/kuba/Projects/forks/lmql/src/lmql/runtime/bopenai/batched_openai.py", line 553, in __del__
File "/etc/conda/envs/lmql/lib/python3.10/asyncio/events.py", line 656, in get_event_loop
RuntimeError: There is no current event loop in thread 'MainThread'.
Okay, thank. I will investigate further and report back here. If you run locally, the playground will actually re-run a new lmql process on each query. So it seems odd that it would block the next call.
I just released a bug fix release lmql==0.0.4.2, where this issue should be fixed. It would be really cool, if anyone who has experienced this bug, could briefly report back, if this is fixed.
Activity
lambdaofgod commentedon Apr 7, 2023
Error details when running
lml runwith a file:lbeurerkellner commentedon Apr 7, 2023
Thanks for reporting this. Does the query otherwise finish execution, or does it not execute at all?
lambdaofgod commentedon Apr 7, 2023
Query finishes. In app the problem is that every next call does not work.
lbeurerkellner commentedon Apr 7, 2023
I think I have observed this before on Linux systems specifically. This is very likely a asyncio clean-up issue. I will investigate this.
When you say "next call", what exactly do you mean? Once the query finishes,
lmql runshould have terminated, right?lambdaofgod commentedon Apr 7, 2023
I mean in web app.
lbeurerkellner commentedon Apr 7, 2023
Okay, thank. I will investigate further and report back here. If you run locally, the playground will actually re-run a new lmql process on each query. So it seems odd that it would block the next call.
Paethon commentedon Apr 12, 2023
Seeing the exact same problem here as well (running on Arch Linux)
Merge pull request #14 from eth-sri/GH-6
lbeurerkellner commentedon Apr 13, 2023
I just released a bug fix release lmql==0.0.4.2, where this issue should be fixed. It would be really cool, if anyone who has experienced this bug, could briefly report back, if this is fixed.