Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name='nul' mode='w' encoding='cp932'> #1404

Open
AkiraRy opened this issue Nov 11, 2024 · 0 comments

Comments

@AkiraRy
Copy link

AkiraRy commented Nov 11, 2024

TL;DR

I don't know if it is weaviate's fault but i figured out i should make an issue nevertheless. Simply running a file containing those 2 imports will reproduce this bug on my machine. Anywhere, doesn't even need to be in a project. I don't really know how can i trace the actual file which leaves an open connection. Any help will be greatly appreciated.
I'm not sure which library's fault this is but i submitted issues to llama-cpp-python and here.

How to reproduce this bag?

import llama_cpp as llm
import weaviate

What is the expected behavior?

Libraries simply load without any warnings.

What is the actual behavior?

When I load those 2 libraries together I get this warning
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name='nul' mode='w' encoding='cp932'>

Supporting information

I use conda to manage libraries.
weaviate-client=4.9.3
llama-cpp-python=0.3.1
python=3.11.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant