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

Exception ignored in: <_io.TextIOWrapper name=4 mode='w' encoding='UTF-8'> #665

Open
purencool opened this issue Dec 5, 2024 · 4 comments

Comments

@purencool
Copy link

Hello,

I keep getting the same error when trying to use the llm CLI. Is this a bug in the software, an issue with the file I have created, or something else?

This is the error that displays in the terminal (iterm on mac os).

Exception ignored in: <_io.TextIOWrapper name=4 mode='w' encoding='UTF-8'>
Traceback (most recent call last):
  File "/opt/homebrew/Cellar/llm/0.19/libexec/lib/python3.13/site-packages/llm_gpt4all.py", line 294, in __exit__
    sys.stderr = self.original_stderr
OSError: [Errno 9] Bad file descriptor

The command I am running and its output.

cat testing.txt | llm -m Meta-Llama-3-8B-Instruct -s "Create a report summary the contents of this file"
 Report Summary %1

**Summary of the contents of this file**

This is a DNS (Domain Name System) query log output from Dig, a command-line tool for querying DNS servers. The report shows the results of a query to Google's domain name.

Here are some key points summarized:

* **Query**: The query was made to retrieve an A record (IP address) for `google.`.
* **Response**: The response indicates that no A records were found, but it did return other information about the DNS server and its configuration.
* **DNS Server Information**:
	+ The queried domain is `google.`
	+ The SOA (Start of Authority) record shows the name servers for Google's domain (`ns-1ld1.charlestonroadregistry.com`).
	+ The query took 76 milliseconds to complete.

Overall, this report provides information about DNS queries and responses, which can be useful for troubleshooting or understanding how DNS works.Exception ignored in: <_io.TextIOWrapper name=4 mode='w' encoding='UTF-8'>
Traceback (most recent call last):
  File "/opt/homebrew/Cellar/llm/0.19/libexec/lib/python3.13/site-packages/llm_gpt4all.py", line 294, in __exit__
    sys.stderr = self.original_stderr
OSError: [Errno 9] Bad file descriptor
llm python
Python 3.13.0 (main, Oct  7 2024, 05:02:14) [Clang 16.0.0 (clang-1600.0.26.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

testing.txt

@boscacci
Copy link

boscacci commented Dec 9, 2024

Same thing is happening to me, regardless of which model I try or prompt. I get some output then it errors out like this.

@djswagerman
Copy link

Same here

@abelsonlive
Copy link

Getting this as well!

@MatthewHannigan
Copy link

MatthewHannigan commented Dec 29, 2024

This is a dupe of #635

Also, title should be 'exception encountered' not 'ignored'

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

5 participants