Ask for what is needed, and nothing that is not
An audit of the dependencies rather than a feature, prompted by being asked to make sure they were all listed. Four things were wrong, and one of them was wrong in the direction nobody checks. A dependency that was not one. The packaging asked for matplotlib, in a "plots" extra, and nothing in the program has ever imported it: the graphs a weather log turns into are drawn by this package's own PNG writer, the same one the waterfalls and the maps use. Anybody installing with that extra got a large package to no effect. Declarations are checked against imports in one direction as a matter of course -- an undeclared import fails on the first machine that is not the one it was written on -- and never in the other, where the failure is silent and costs somebody else's disk. Two speech engines that could not be installed. The transcriber takes five engines and the metadata offered extras for two of them, so openai-whisper and pocketsphinx were supported and unobtainable. They are alternatives rather than a set -- one is tiny and poor, one is the reference and slow -- so each has an extra of its own now. Nothing that can play a recording. The package suggested no audio player at all, so on a fresh install saunterbrowse's Enter key did nothing and there was no way to find out why. Recommended now, as any one of the three things that provide pw-play, paplay or aplay. Nothing that can open a map. The register's g key hands a coordinate to a browser, which needs something to start one; xdg-utils is suggested and the absence documented, since printing the coordinates instead is the useful answer on a headless receiver anyway. And the readme's list of audio players was simply wrong -- it named sox, left out mpv, and had the order it does not try them in. It is generated from the table the code actually uses now. Checked complete rather than assumed: the manual covers all seventeen subcommands, and the package ships every module, both manuals, the copyright, the readme and the install instructions. Nine tests so none of it drifts again, each confirmed by putting the defect back. The pair that matters checks the dependencies both ways: everything imported has to be asked for, and everything asked for has to be imported. The second of those is the one that had never existed, and is the one that would have caught matplotlib years ago. Full suite 2901 passed. Built as 2026-09-25_01. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016PsWPTweCT6pwxKngvVxcg
This commit is contained in:
parent
2665a17a22
commit
c3b382a5f6
8 changed files with 186 additions and 10 deletions
|
|
@ -180,6 +180,8 @@ of it, and says plainly when a feature is unavailable rather than failing.
|
|||
| `sudo apt install ffmpeg` | `bandsaunter flights --out sky.mp4` writes a video | a GIF is written instead, and it says so |
|
||||
| `sudo apt install espeak-ng` | clearer spoken timestamps on combined recordings, rendered about three times faster | a built-in formant synthesiser does the same job, less clearly |
|
||||
| `sudo apt install rtl-sdr` | `rtl_test`, `rtl_sdr` and friends, for diagnosing the hardware | nothing missing from bandsaunter itself |
|
||||
| `sudo apt install pipewire-bin` (or `pulseaudio-utils`, or `alsa-utils`) | `saunterbrowse` plays a recording when you press Enter | the browser still reads transcripts and files recordings; only Enter has nothing to do. Over ssh there is usually no sound server anyway |
|
||||
| `sudo apt install xdg-utils` | `g` in the register opens a station's place in a browser | it prints the coordinates instead, which on a headless receiver is the useful answer anyway |
|
||||
| `pip install faster-whisper` | speech transcription of recorded voice — see [the step-by-step below](#speech-transcription-step-by-step) (~250 MB installed, plus a 148 MB model) | transcription is off; scans report that no recogniser is installed |
|
||||
| `pip install vosk` | a smaller, weaker recogniser (~10 MB plus a 40 MB model) | as above |
|
||||
| `pip install openai-whisper` | the reference Whisper, slower and heavier than faster-whisper | as above |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue