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

Container does not build whisper executable as needed #43

Open
GhostDog98 opened this issue Jan 15, 2025 · 2 comments
Open

Container does not build whisper executable as needed #43

GhostDog98 opened this issue Jan 15, 2025 · 2 comments

Comments

@GhostDog98
Copy link

When attempting to upload any file:

scriberr-1    | stderr: Output file: /scriberr/audio/7bsl1x42l4nnehn/7bsl1x42l4nnehn.mp3.json
scriberr-1    | 
scriberr-1    | stderr: Done
scriberr-1    | 
scriberr-1    | false
scriberr-1    | DEV MODE -----> false
scriberr-1    | stderr: /bin/sh: 1: whisper: not found
scriberr-1    | 
scriberr-1    | Error: Command failed with exit code 127
scriberr-1    |     at ChildProcess.<anonymous> (file:///app/build/server/chunks/queue-Bdtmtx2w.js:43900:16)
scriberr-1    |     at ChildProcess.emit (node:events:530:35)
scriberr-1    |     at maybeClose (node:internal/child_process:1104:16)
scriberr-1    |     at Socket.<anonymous> (node:internal/child_process:456:11)
scriberr-1    |     at Socket.emit (node:events:518:28)
scriberr-1    |     at Pipe.<anonymous> (node:net:343:12)
scriberr-1    | Auth state after loading cookie: true

To fix this, I had to go into the docker container in an interactive shell, cd into whisper-cpp, install cmake and maketools, and then do cmake ., make, make install, cp bin/main /bin/whisper

I would myself submit a fix PR, but I'm not 100% sure how the build process works here lol. If i figure it out, I'll submit one though.

@rishikanthc
Copy link
Owner

Yeah so whisper.cpp changed how they compile and set up the executable. Since my current setup directly comes from the repo it uses the new format but the app tries to compile it the old way.

The next release will fix it. Just finished a complete overhaul of the app. Will push out a release petty soon. Keep an eye out.

@eudes2
Copy link

eudes2 commented Jan 26, 2025

I had the same issue, but after following @GhostDog98 fix, I still have an error:

2025-01-26 13:34:54 scriberr-1    | stderr: whisper_init_from_file_with_params_no_state: loading model from '/models/ggml-tiny.en.bin'
2025-01-26 13:34:54 scriberr-1    | 
2025-01-26 13:34:54 scriberr-1    | stderr: whisper_init_from_file_with_params_no_state: failed to open '/models/ggml-tiny.en.bin'
2025-01-26 13:34:54 scriberr-1    | error: failed to initialize whisper context
2025-01-26 13:34:54 scriberr-1    | 
2025-01-26 13:34:54 scriberr-1    | Error: Command failed with exit code 3

Guess I'll wait for the next release!

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

3 participants