abetlen / abetlen/llama-cpp-python

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

Offen
#1,828 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
10.6k
Forks
1.4k
PR-Merge-Kennzahlen
PR-Kennzahlen ausstehend

Beschreibung

# Prerequisites

Please answer the following questions for yourself before submitting an issue.

- [ +] I am running the latest code. Development is very rapid so there are no tagged versions as of now.
- [ +] I carefully followed the [README.md](https://github.com/abetlen/llama-cpp-python/blob/main/README.md).
- [ +] I [searched using keywords relevant to my issue](https://docs.github.com/en/issues/tracking-your-work-with-issues/filtering-and-searching-issues-and-pull-requests) to make sure that I am creating a new issue that is not already open (or closed).
- [ +] I reviewed the [Discussions](https://github.com/abetlen/llama-cpp-python/discussions), and have a new bug or useful enhancement to share.

# Expected Behavior

Simply importing llama_cpp and Weaviate together will show no warnings

# Current Behavior

```python
import llama_cpp as llm
import weaviate
```
When I import those 2 libraries together i get the
`sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name='nul' mode='w' encoding='cp932'>`

# Environment and Context

Please provide detailed information about your computer setup. This is important in case the issue is not reproducible except for under certain specific conditions.

* Physical (or virtual) hardware you are using, e.g. for Linux:

CPU: 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz
GPU: Nvidia GeForce RTX 3060 Laptop GPU

* Operating System, e.g. for Linux:

Microsoft Windows 10 Home

* SDK version, e.g. for Linux:

```
$ python3 --version
Python 3.11.10

$ make --version cmake maybe?
cmake version 3.29.5-msvc4

$ g++ --version
Microsoft (R) C/C++ Optimizing Compiler Version 19.41.34123 for x86

nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2024 NVIDIA Corporation
Built on Wed_Apr_17_19:36:51_Pacific_Daylight_Time_2024
Cuda compilation tools, release 12.5, V12.5.40
Build cuda_12.5.r12.5/compiler.34177558_0
```

# Failure Information (for bugs)

If i import 2 libraries together i get this bug:
```python
import llama_cpp as llm
import weaviate
```

# Steps to Reproduce

Please provide detailed steps for reproducing the issue. We are not sitting in front of your screen, so the more detail the better.

Simply having this code will produce the issue for me.
```python
import llama_cpp as llm
import weaviate
```

package versions
weaviate-client=4.9.3
llama-cpp-python=0.3.1
python=3.11.10

I'm not sure which library's fault this is but i submitted issues to weaviate and here.
I would appreciate any help with this matter. I don't really know myself how can i trace the file which lefts an open io connection

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.