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

No module named 'whisper' #143

Open
CorradoF opened this issue Sep 5, 2024 · 5 comments
Open

No module named 'whisper' #143

CorradoF opened this issue Sep 5, 2024 · 5 comments

Comments

@CorradoF
Copy link

CorradoF commented Sep 5, 2024

C:\WINDOWS\system32>subsai-webui
Traceback (most recent call last):
File "C:\Program Files\Python310\lib\runpy.py", line 196, in _run_module_as_main
return run_code(code, main_globals, None,
File "C:\Program Files\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Program Files\Python310\Scripts\subsai-webui.exe_main
.py", line 4, in
File "C:\Program Files\Python310\lib\site-packages\subsai_init
.py", line 1, in
from subsai.main import SubsAI, Tools
File "C:\Program Files\Python310\lib\site-packages\subsai\main.py", line 28, in
from subsai.configs import AVAILABLE_MODELS
File "C:\Program Files\Python310\lib\site-packages\subsai\configs.py", line 11, in
from subsai.models.faster_whisper_model import FasterWhisperModel
File "C:\Program Files\Python310\lib\site-packages\subsai\models\faster_whisper_model.py", line 12, in
import whisper
ModuleNotFoundError: No module named 'whisper'

I tried to reinstalling it with
pip install git+https://github.com/abdeladim-s/subsai
pip install pyproject.toml
pip install -r requirements.txt

not worked

@CorradoF
Copy link
Author

CorradoF commented Sep 5, 2024

Solved with
pip install git+https://github.com/openai/whisper.git

Now I have the problem ModuleNotFoundError: No module named 'julius'

insane

Screenshot 2024-09-05 225522

@absadiki
Copy link
Owner

absadiki commented Sep 5, 2024

@CorradoF, I think it's better to install the package in a separate virtual environment .. Installing it system wide might cause so many issues.

Here are the steps

  1. Create an empty folder
  2. open a terminal (cmd) in that folder
  3. create env python -m venv subsai-env
  4. activate it .\subsai-env\Scripts\activate
  5. Then install subsai : pip install git+https://github.com/abdeladim-s/subsai

Let me know if you find any issues during the installation.

@CorradoF
Copy link
Author

CorradoF commented Sep 6, 2024

After 2 hours I solved by using python 3.11, the 3.12 can't build the wheel even using rust, I don't have the screenshot about the error.

I don't know why, I'm on win10 when using venv with the command pip install git+https://github.com/abdeladim-s/subsai it doesn't download on venv folder and won't start anyway, it consumes C diskspace, so I had to delete all my python lib, deleted 3.12 3.11 3.10, tried them all as fresh installation and python 3.11 works
luckily every other program it works with requirement.txt and I can do the venv so I didn't lose much

@CorradoF
Copy link
Author

CorradoF commented Sep 6, 2024

Thanks for doing this amazing program :)

@absadiki
Copy link
Owner

absadiki commented Sep 6, 2024

Oh yes, Python 3.12 is known to have many issues.
But I'm glad it worked at the end!
Enjoy it :)

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