Weaviate client throwing "ResourceWarning: unclosed transport"

I’m getting the following warning when I do “import weaviate” in python, even if afterwards I don’t do anything with weaviate.

Here is a thread of someone experiencing the same issue: asyncio/selector_events.py: ResourceWarning: unclosed transport _SelectorSocketTransport · langchain-ai/langchain · Discussion #18293 · GitHub

I’m using Python 3.9.5, and weaviate-client = “4.10.4”

Did someone encountered the same problem and managed to fix it?

hi!

This will usually come up if you do not close the connection before creating a new one.

Let me know if this helps.