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

Faster-Whisper inside Docker fails #166

Closed
defano opened this issue Jan 4, 2024 · 1 comment
Closed

Faster-Whisper inside Docker fails #166

defano opened this issue Jan 4, 2024 · 1 comment

Comments

@defano
Copy link

defano commented Jan 4, 2024

Using the latest release for Linux (Whisper-Faster r167.3) inside a Docker container results in the following error when issuing the command whisper-faster audio.wav:

Traceback (most recent call last):
   File "__main__.py", line 1100, in <module>
   File "__main__.py", line 768, in cli
TypeError: '>' not supported between instances of 'NoneType' and 'int'
[3370] Failed to execute script '__main__' due to unhandled exception!

This appears to be caused by the script being unable to detect the number of CPUs. If a non-zero value for --threads is supplied on the command-line, the tool works normally.

Good: whisper-faster --threads 1 audio.wav
Bad: whisper-faster audio.wav

Excellent work on this, by the way. It's a very convenient utility for those of us who don't regularly work in Python.

@Purfview
Copy link
Owner

Purfview commented Jan 4, 2024

Should be fixed in r167.4.
You should see warning if CPU cores can't be detected.

Excellent work on this, by the way. It's a very convenient utility for those of us who don't regularly work in Python.

Thx. Yeah, the vast majority of Python's community is "the devs for the devs", not so friendly for the mortal users...

@Purfview Purfview closed this as completed Jan 4, 2024
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

2 participants