-
Notifications
You must be signed in to change notification settings - Fork 15
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
_pywhispercpp module could not be found #34
Comments
Seems like Python cannot see the DLL module for some reason, even though the wheels were built successfully for Windows. |
I confirm this problem exists. Building from source results in the same error. |
@NBNGaming, |
I'm getting the same exact error message regarding the .dll file...I searched the "lib" directory after pip installing and there are no .dll files within that directory. Any idea why? I'm not an expert so forgive me, but am I supposed to build whisper.cpp first and then install pywhispercpp? ggerganov's repo? I'm unfamiliar with building but can learn, but need to know if I have to install whisper.cpp first please. Thanks! BTW, I don't know what GCC toolchain means... Windows 10 |
@BBC-Esq, I am not quite sure why this is happening on Windows! But, before going through this path, here are some suggestions:
|
I'm using Python 3.11. Not familiar with WSL...any other ideas? Have you actually tested it on Windows? |
Apart from the Github action which ran successfully, I didn't make any tests on Windows unfortunately, I only tested the project on Linux. |
Actually, it wasn't that hard to test and it gave me this error:
I did pip install and then the link to the wheel you gave me. Here is the directory structure that another script of mine culled...Everything from the "pywhispercpp" directory downwards:
I noticed that the .pyd file is one level up within the "site-packages" folder though. |
Correction in case you didn't see my edit to the above message...The .pyd file is a directory higher in "site-packages". |
@BBC-Esq, so it's there at least. Not sure why Windows cannot find it!! |
Sure, I'll put it in both at the same time. |
Same exact error as before. Might it be that you're importing "_pywhispercpp" with an underscore at the beginning instead of simply "pywhispercpp"? |
The script I'm using is very simple. I even modified it to add appending the system path but am still getting the same error...
|
No, the Can you try with os.add_dll_directory instead of |
You should use |
Same error as before and here's the modified script:
I also tried this script:
It gave me a slightly different error:
NOTE: It says "or one of its dependencies" |
Windows is weird to be honest! |
I asked jeeves and he told me to try "dependency walker" from Microsoft but it didn't work...https://www.dependencywalker.com/ Then I tried https://github.com/lucasg/Dependencies/releases/tag/v1.11.1 The "file" "open" dialog only lets you select .dll files so you'll have to drag and drop the .pyd file...Anyways, this is what it gave me: It seems that "whisper.dll" is missing? So basically, I need to install openai's whisper? |
Great idea @BBC-Esq, |
Fucking A...it worked. I put it in the "site-packages" folder, the "benchmark_whisper" folder, and the "pywhispercpp" folder and it worked...now it's just a matter of narrowing it down to which folder hierarchy it should be in. |
...correction, it didn't actually work. It resolved that error, but now I'm getting "failed to compute log mel spectrogram:"
|
Finally! so that's what was missing! I should find a way to include it with the wheel! |
I/we fixed it! Mind explaining to me what
|
...do tell me you've implemented the gpu acceleration like cuda, etc. in your repo? I don't see anything in the documentation about a cuda let alone any other gpu acceleration parameters... ;-) |
The |
Damn, was looking forward to benchmarking cuda whisper.cpp. Anyways, fun little adventure tonight. Have a good one man. I'll follow new releases for when you include the .dll and/or support GPU. How hard can it be, to support cuda, vulkan, openblas, etc. ;-) |
It shouldn't be so hard I assume, but it'll need time, this is the problem :) |
Just did a standard
PyPi
download in my venv as perpip install pywhispercpp
A standard script with:
Is failing with error:
For reference,
FFMpeg
is installed:The text was updated successfully, but these errors were encountered: