Skip to content

Troubleshooting

Ordered by how likely you are to meet them. Every entry here was either hit in the lab or is the project's own warning.

"FP16 is not supported on CPU"

Not an error. The warning

UserWarning: FP16 is not supported on CPU; using FP32 instead

means exactly what it says: on a machine without a graphics card the program quietly uses full-precision numbers instead. Ignore it forever. (On a GPU machine you would not see it.)

The first run seems to hang

It is downloading the model. First use of each size fetches it into ~/.cache/whisper — 76 MB for tiny, 145 MB for base, gigabytes at the top of the range (chapter 5). If a download was interrupted and later runs fail loading that model, delete the model's file from the cache and let it fetch again cleanly.

whisper: command not found

The virtual environment is not active in this terminal. Run the activate line from chapter 3 again — the prompt shows the environment name when it is on. The same applies to the python3 that runs the example scripts.

Errors the moment it reads a file

Whisper decodes audio through ffmpeg (chapter 2). If ffmpeg is absent, runs fail at the decoding step. Check with ffmpeg -version; install per chapter 3, and make sure the terminal that runs Whisper is one where ffmpeg is on the PATH.

The install eats gigabytes

That is PyTorch's graphics-card build arriving by default. Install the CPU build first, from PyTorch's CPU index, as chapter 3 does — a few hundred megabytes instead. If Whisper is already installed the large way, nothing is broken; the extra libraries merely sit there. Rebuild the environment if the space matters.

The install itself fails building something

The project's README names the two usual causes: a dependency (tiktoken) with no ready wheel for your platform needs a Rust compiler installed, and the error No module named 'setuptools_rust' is fixed by pip install setuptools-rust before retrying. Both are install-time only; neither affects a working install.

faster-whisper dies with a TypeError about metadata_errors

TypeError: open() got an unexpected keyword argument 'metadata_errors'

The lab hit exactly this (transcripts t09 and t06). Cause: pip had installed PyAV 19, which removed an argument faster-whisper 1.2.1 passes when opening audio. Fix:

pip install "av==16.0.0"

Then rerun. (Reaching for older PyAV lines is a dead end on some platforms — 14.x had no wheel for the lab machine and tried to build from source.) The general lesson travels: when a fresh install of a wrapper library breaks on a brand-new dependency, pinning that dependency one major line back is the first move, not the last resort.

The transcript is in the wrong language

Detection reads the first 30 seconds; music, silence or a bilingual opening can fool it. Name the language yourself — --language Spanish — and it will not guess at all. The mirror problem, English output from non-English audio, means translation was requested: check for a stray --task translate.

Garbage, loops, or words nobody said

Work through chapter 13's list: names defeat small models (step up one size), quiet passages invite invention (check no_speech_prob in the JSON, trim dead air), and tiny is not a non-English model in any serious sense — base is the floor there.

It gets killed, or the machine swaps itself to death

The model is too big for the memory available — on CPU, RAM plays the role the VRAM column in chapter 5 describes. Drop a size. This is the practical reason large and turbo are graphics-card tools for most people, no matter how patient they are.