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

Nothing happens #18

Open
KingTimer12 opened this issue Jul 16, 2023 · 13 comments
Open

Nothing happens #18

KingTimer12 opened this issue Jul 16, 2023 · 13 comments

Comments

@KingTimer12
Copy link

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
@abdeladim-s
Copy link
Owner

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 ?

@KingTimer12
Copy link
Author

I haven't tried any version other than the current one and used pip

@abdeladim-s
Copy link
Owner

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.

@KingTimer12
Copy link
Author

I installed WSL and stuff, now at least it's responding, but unfortunately it's an error

image

do you know the cause?

@abdeladim-s
Copy link
Owner

abdeladim-s commented Jul 17, 2023

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.

@KingTimer12
Copy link
Author

image

it's my CPU and there was an error in cmake when I went to install it in WSL, I will solve it

@abdeladim-s
Copy link
Owner

Ok .. you will need cmake and g++.
just be patient and let me know if you need any help.

@KingTimer12
Copy link
Author

did not work

cmake and g++ installed

image

@abdeladim-s
Copy link
Owner

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.

@KingTimer12
Copy link
Author

Does "a new virtual environment" refer to starting a new project or reinstalling WSL?

I'll uninstall the library and install again

@abdeladim-s
Copy link
Owner

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.

@mohsen-goodarzi
Copy link

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

@abdeladim-s
Copy link
Owner

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.

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