Open sfitts opened 2 months ago
A workaround is to pass a non-null value for the client (say a string). This avoids the code that creates the client and since it will never be used, you won't get a runtime error. This assumes that you don't want to use the API for partitioning.
Checked other resources
Example Code
The following code raises a
ValueError
when run in "uvicorn" configured to useuvloop
:Error Message and Stack Trace (if applicable)
Description
I'm trying to use the langchain
UnstructuredLoader
in code hosted by uvicorn on Linux (where the default loop implementation isuvloop
). I expect to be able to create the loader but can't because creation of theUnstructuredClient
fails.Note that the
UnstructuredClient
instance is not actually needed since we are not using the API to partition.System Info