Nothing happens
Opened this issue · 13 comments
Hello, I'm using version 1.1.1 of the pywhispercpp library and when I try to run the code, nothing happens. I've tried using the CLI and the same error persists. Also, when the library breaks the other whisper variables and I need to uninstall it to get it working again.
Is there anything I can do to resolve it?
I'll attach a video showing what appears when I run the code.
2023-07-16.20-43-28.mp4
Hello @KingTimer12,
Are you using Windows ? it seems like a MSVC issue!
Have you tried an older version of the library (before 1.1.1) and it is working ? or they all exit with the same error code ?
Also, did you install it through pip or build it from source ?
I haven't tried any version other than the current one and used pip
Probably a C++ DLL or something is missing from your system.
If you are on windows 10/11, why not just use WSL , it will work without any issues ?!
Let me know if you find any issues while setting it up.
oh, no! what type of CPU you have ? It seems like the prebuilt wheels are not compatible with your CPU architecture.
Please try to build the package for your specific CPU using (always inside WSL):
pip install git+https://github.com/abdeladim-s/pywhispercpp
Let me know if you find any other issues.
Ok .. you will need cmake and g++.
just be patient and let me know if you need any help.
That's weird, No errors during the build process and it didn't work when you run it ?
I think you will need to remove the old package first before installing from source, or even better create a new virtual environment.
Does "a new virtual environment" refer to starting a new project or reinstalling WSL?
I'll uninstall the library and install again
a new virtual environment is just like an isolated Python installation.
Usually you don't want to mess up with the system wide python libraries, so you create a separate python env per project to manage the dependencies for that project.
It is easy to create, just search python virtual environment.
you can also uninstall it from the previous env, but the problem pip may just pull the cached version you already installed from PYPI (and this is what happened before I guess), that's why I told you to create a new virtual env to make sure no cache is already there.
I have the same problem on Windows.
Code exits on the import line from pywhispercpp.model import Model
without any error.
To be more specific on this line:
https://github.com/abdeladim-s/pywhispercpp/blob/1e5fd96240d7154bdad2e0cc51ca6726d23e9dbe/pywhispercpp/model.py#L13C1-L14C1
I have the same problem on Windows. Code exits on the import line
from pywhispercpp.model import Model
without any error. To be more specific on this line: https://github.com/abdeladim-s/pywhispercpp/blob/1e5fd96240d7154bdad2e0cc51ca6726d23e9dbe/pywhispercpp/model.py#L13C1-L14C1
@mohsen-goodarzi, Please try the latest update if it works. Otherwise use WSL and build it from source.