Replies: 1 comment 1 reply
-
Hey, this isn’t a Whisper bug. It’s your environment indicating there’s a problem writing to stdout. The OSError: The clean fix isn’t just redirecting output; it’s ensuring Whisper runs in an environment with a proper terminal or controlled logging. You have a few solid options: Run Whisper inside tmux or screen so it has a real TTY:
Redirect Whisper’s output to a file so it never writes to stdout directly:
Run Whisper as a systemd service with proper stdout/stderr logging if you want it to run reliably in production. The simplest and most reliable fix for your setup is using tmux or screen. It gives Whisper a clean environment to run in, keeps it headless-friendly, and prevents the I/O error entirely. This way, you’re not just patching the symptom; you’re addressing the root cause and making Whisper run well on your headless server. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm running Debian/Trixie on an AMD64 system. I'm using an AMD Ryzen 3 1200 Quad-Core Processor with 16G of RAM and 16G of swap space. Free shows I'm using less than half of that when running whisper. My video card is ancient since I usually run the server headless. However it seemed like a good place to run whisper to generate subtitles.
Unfortunately, when I try, using the same scripts that worked on my workstation (same OS but faster processor and slightly better video card (I'm not a gamer so I never bothered getting a gamer video card), I find nothing is generated, Capturing the error output, I get this:
File "/home/garydale/.venv/lib/python3.13/site-packages/whisper/transcribe.py", line 615, in cli
result = transcribe(model, audio_path, temperature=temperature, **args)
File "/home/garydale/.venv/lib/python3.13/site-packages/whisper/transcribe.py", line 482, in transcribe
print(make_safe(line))
~~~~~^^^^^^^^^^^^^^^^^
OSError: [Errno 5] Input/output error
Exception ignored on flushing sys.stdout:
OSError: [Errno 5] Input/output error
The transcribe.py error matches the symptoms but I don't understand why I'm getting here and not on my other machine (which mainly uses a better processor but is otherwise similar).
Any ideas on how to fix this?
Beta Was this translation helpful? Give feedback.
All reactions