Incompatability of nest_asyncio and uvloop #115

Open
opened 2026-02-16 00:16:55 -05:00 by yindo · 2 comments
Owner

Originally created by @marencordtshsg on GitHub (May 15, 2024).

The patch of asyncio does not work anymore with the most recent update of Llamaparse. In line nest_asyncio.apply(), we get ValueError: Can't patch loop of type <class 'uvloop.Loop'>

Originally created by @marencordtshsg on GitHub (May 15, 2024). The patch of asyncio does not work anymore with the most recent update of Llamaparse. In line nest_asyncio.apply(), we get ValueError: Can't patch loop of type <class 'uvloop.Loop'>
Author
Owner

@logan-markewich commented on GitHub (May 15, 2024):

@marencordtshsg you need to set the loop type to asyncio

uvicorn.run(... loop="asyncio")

@logan-markewich commented on GitHub (May 15, 2024): @marencordtshsg you need to set the loop type to asyncio `uvicorn.run(... loop="asyncio")`
Author
Owner

@scottyeung commented on GitHub (Oct 25, 2024):

Possible to support uvloop again? Hard to drop it

@scottyeung commented on GitHub (Oct 25, 2024): Possible to support uvloop again? Hard to drop it
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/llama_cloud_services#115