I’m not actually sure if it was after a Peertube upgrade, or my recent upgrade of Python (because the Youtube import required it), but at some point the generation of captions started failing because of a wrong NumPy version.
How can I fix that?
Video-transcription log:
ExecaError: Command was killed with SIGSEGV (Segmentation fault): /var/www/peertube/storage/bin/pip/bin/whisper-ctranslate2 /var/www/peertube/storage/streaming-playlists/hls/4f0290fd-f7bb-4eac-81f9-8c3f8f2726d8/a199c79c-e6d6-40b6-9ccc-50f4e2f6b80d-1080-fragmented.mp4 --model small --word_timestamps True --vad_filter true --vad_min_silence_duration_ms 5000 --output_format all --output_dir /var/www/peertube/storage/tmp/transcription/cqMrAkKA7YZPJHaUifopcn
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.2 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.