AttributeError: 'NoneType' object has no attribute 'send'AttributeError: 'NoneType' object has no attribute 'send'
Exception ignored in: <function _SSLProtocolTransport.__del__ at 0x000001951368DB40>
Traceback (most recent call last):
...character limit...
Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\asyncio\base_events.py", line 515, in _check_closed
RuntimeError: Event loop is closed
Relevant code: (defined in a custom class I wrote to link the vector store and ingestion pipeline into a single object where I can access both)
async def ingest(self, chunks: list[dict]):
'''Ingests a list of chunks into the vector store asynchronously'''
if hasattr(self, 'ingestion_pipeline') == False:
self.init_ingestion_pipeline()
print('################ vector store and ingestion pipeline initialized')
processed_chunks = await process_chunks(chunks)
print('################ chunks processed')
return await self.ingestion_pipeline.arun(documents=processed_chunks)
Entrypoint:
vector_store = PFVectorStore() #custom class I was referring to
run(vector_store.ingest(test_data)) #asyncio
Pretty certain this is an async error, or something related to it?