-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
whisper.dll not work when import in python #895
Comments
I ran into the exact same problem when working on this fork To resolve this I had to take the following steps
Then I was able to load the whisper.dll correctly in python FYI @dnhkng |
Thank you so much for sharing the solution with me! |
Hi, I tried to solve this by using your solution, but somehow I can't understand some things..
Need help, thanks.. |
@muhammadalhawari See this post on the DLLs you need for windows: #1524 (comment) For the whisper DLL, you have to compile that yourself. For the working directory, that just means where you are running the python scripts. |
Hi, i create a fork of a pybind11 binding of whisper.cpp project in https://github.com/DanielusG/pywhispercpp.git because the author was no longer updating it and I wanted to implement CuBLAS.
In this fork, I created commits that allowed whisper to use CuBLAS and thus accelerate whisper using the GPU, as well as adding features such as the probability of tokens.
It works fine on linux and shows my GPU in use, but when I'm on Windows, it compiles without errors, but when I import the library a DLL error comes up.
Even just a suggestion on how I can debug the dll would be fine. I am not an expert in this field so any suggestions would be well appreciated!
The error using my fork on windows:
ImportError: DLL load failed while importing _pywhispercpp:
i followed the error with the library called dlltracer and it returns:
It may appear that the error is Microsoft VC C++. But it is correctly installed and I have tried essentially all versions
The problem only and only appears on windows and compile with CUDA support, if I disable CUDA support it works on windows as well.
So I'm wondering, why is it that when I enable CUDA suddenly whisper looks for Visual Studio DLLs?
I suspect the DLLs are just a superficial problem, but the underlying problem is essentially something else, perhaps an unhandled exception when launching the DLL. Is there any way to debug the DLL? I've searched everywhere on the net there don't seem to be any suggestions, some say to use Visual Studio to debug the DLL, but I haven't been able to get it to work at all
Any help and/or suggestions will be welcome.
P.S. A heartfelt THANK YOU to the entire community who strive every day to bring innovation open to all, thank you❤️
The text was updated successfully, but these errors were encountered: