-
Notifications
You must be signed in to change notification settings - Fork 114
Description
Heya. 👋 Thanks for your work in putting this app together. 🙂
So admittedly I'm not sure how much of my issue is because I set up PyEnv incorrectly or something (PyEnv is set to use Python v3.9.19). And I understand Python apps might not work with updated versions of Python. Which kinda makes it suck because - while you can revert updates and such - Arch doesn't like it if you only update some things (instead of all things at once), and I'm sure it's only a matter of time before I'll have to update/install something... 😅
At any rate, I thought I'd let you know what I ran into, just in case.
I was originally worried because my package manager told me I needed to replace whisper-git with python-openai-whisper-git, though thankfully it turns out that's not the package that causes the issue. Unfortunately, I managed to narrow it down to Python itself.
In any case, after trying a recent update (after putting it off for a week or so), I found that trying to input ANY whisper-ctranslate2 command - including just --help - resulted in this error:
Traceback (most recent call last):
File "/home/scia/.local/bin/whisper-ctranslate2", line 5, in <module>
from src.whisper_ctranslate2.whisper_ctranslate2 import main
ModuleNotFoundError: No module named 'src'
Whisper itself works, at least - even after changing to the new name - but not this.
I've made sure all my Python packages are up to date via Pip3 (Whisper-CTranslate2 is now v0.5.2, for one), and checked for any lingering outdated packages. I've got my system reverted for now, but... yeah, it might just be a matter of time, and I use this app fairly often for the Live Transcribe feature.
You might need to check with the CTranslate2 folks, because trying to install/update Whisper-CTranslate2 after updating everything else resulted in unresolved dependency errors, and I couldn't seem to install CTranslate itself.
To be more specific, here's what the terminal said when I tried things out:
pip3 uninstall whisper-ctranslate2
WARNING: Skipping whisper-ctranslate2 as it is not installed.
╭─scia@scia in ~ took 0s
╰─λ pip3 install whisper-ctranslate2
Defaulting to user installation because normal site-packages is not writeable
Collecting whisper-ctranslate2
Using cached whisper_ctranslate2-0.5.2-py3-none-any.whl.metadata (8.1 kB)
Requirement already satisfied: numpy in /usr/lib/python3.13/site-packages (from whisper-c
translate2) (2.2.1)
Collecting faster-whisper>=1.1.1 (from whisper-ctranslate2)
Using cached faster_whisper-1.1.1-py3-none-any.whl.metadata (16 kB)
INFO: pip is looking at multiple versions of whisper-ctranslate2 to determine which versi
on is compatible with other requirements. This could take a while.
Collecting whisper-ctranslate2
Downloading whisper_ctranslate2-0.5.1-py3-none-any.whl.metadata (8.1 kB)
Downloading whisper_ctranslate2-0.5.0-py3-none-any.whl.metadata (8.1 kB)
Downloading whisper_ctranslate2-0.4.9-py3-none-any.whl.metadata (7.5 kB)
Downloading whisper_ctranslate2-0.4.8-py3-none-any.whl.metadata (7.5 kB)
Downloading whisper_ctranslate2-0.4.7-py3-none-any.whl.metadata (7.5 kB)
Downloading whisper_ctranslate2-0.4.6-py3-none-any.whl.metadata (7.4 kB)
Using cached whisper_ctranslate2-0.4.5-py3-none-any.whl.metadata (7.1 kB)
INFO: pip is still looking at multiple versions of whisper-ctranslate2 to determine which
version is compatible with other requirements. This could take a while.
Downloading whisper_ctranslate2-0.4.4-py3-none-any.whl.metadata (7.1 kB)
Downloading whisper_ctranslate2-0.4.3-py3-none-any.whl.metadata (7.1 kB)
Downloading whisper_ctranslate2-0.4.2-py3-none-any.whl.metadata (7.1 kB)
Downloading whisper_ctranslate2-0.4.1-py3-none-any.whl.metadata (7.1 kB)
Downloading whisper_ctranslate2-0.4.0-py3-none-any.whl.metadata (7.1 kB)
INFO: This is taking longer than usual. You might need to provide the dependency resolver
with stricter constraints to reduce runtime. See https://pip.pypa.io/warnings/backtracki
ng for guidance. If you want to abort this run, press Ctrl + C.
Downloading whisper_ctranslate2-0.3.9-py3-none-any.whl.metadata (7.1 kB)
Downloading whisper_ctranslate2-0.3.8-py3-none-any.whl.metadata (7.1 kB)
Downloading whisper_ctranslate2-0.3.7-py3-none-any.whl.metadata (7.1 kB)
Downloading whisper_ctranslate2-0.3.6-py3-none-any.whl.metadata (7.1 kB)
Downloading whisper_ctranslate2-0.3.5-py3-none-any.whl.metadata (6.1 kB)
Downloading whisper_ctranslate2-0.3.4-py3-none-any.whl.metadata (6.1 kB)
Downloading whisper_ctranslate2-0.3.3-py3-none-any.whl.metadata (6.1 kB)
Downloading whisper_ctranslate2-0.3.2-py3-none-any.whl.metadata (6.1 kB)
Downloading whisper_ctranslate2-0.3.1-py3-none-any.whl.metadata (5.9 kB)
Downloading whisper_ctranslate2-0.3.0-py3-none-any.whl.metadata (5.9 kB)
Downloading whisper_ctranslate2-0.2.9-py3-none-any.whl.metadata (5.9 kB)
Downloading whisper_ctranslate2-0.2.8-py3-none-any.whl.metadata (5.9 kB)
Downloading whisper_ctranslate2-0.2.7-py3-none-any.whl.metadata (5.9 kB)
Downloading whisper_ctranslate2-0.2.6-py3-none-any.whl.metadata (5.9 kB)
Downloading whisper_ctranslate2-0.2.5-py3-none-any.whl.metadata (5.9 kB)
Downloading whisper_ctranslate2-0.2.4-py3-none-any.whl.metadata (5.9 kB)
Downloading whisper_ctranslate2-0.2.3-py3-none-any.whl.metadata (5.9 kB)
Downloading whisper_ctranslate2-0.2.2-py3-none-any.whl.metadata (5.9 kB)
Downloading whisper_ctranslate2-0.2.1-py3-none-any.whl.metadata (5.9 kB)
Downloading whisper_ctranslate2-0.2.0-py3-none-any.whl.metadata (5.9 kB)
Downloading whisper_ctranslate2-0.1.9-py3-none-any.whl.metadata (5.8 kB)
Downloading whisper_ctranslate2-0.1.8-py3-none-any.whl.metadata (4.5 kB)
Downloading whisper_ctranslate2-0.1.7-py3-none-any.whl.metadata (4.5 kB)
Downloading whisper_ctranslate2-0.1.6-py3-none-any.whl.metadata (4.2 kB)
Downloading whisper_ctranslate2-0.1.5-py3-none-any.whl.metadata (4.2 kB)
Downloading whisper_ctranslate2-0.1.4-py3-none-any.whl.metadata (4.0 kB)
Downloading whisper_ctranslate2-0.1.3-py3-none-any.whl.metadata (4.0 kB)
Downloading whisper_ctranslate2-0.1.2-py3-none-any.whl.metadata (3.4 kB)
Downloading whisper_ctranslate2-0.1.1-py3-none-any.whl.metadata (3.4 kB)
Downloading whisper_ctranslate2-0.1.0-py3-none-any.whl.metadata (3.4 kB)
Downloading whisper_ctranslate2-0.0.9-py3-none-any.whl.metadata (3.4 kB)
Downloading whisper_ctranslate2-0.0.8-py3-none-any.whl.metadata (3.0 kB)
Downloading whisper_ctranslate2-0.0.7-py3-none-any.whl.metadata (3.0 kB)
Downloading whisper_ctranslate2-0.0.6-py3-none-any.whl.metadata (3.0 kB)
Downloading whisper_ctranslate2-0.0.5-py3-none-any.whl.metadata (2.3 kB)
Downloading whisper_ctranslate2-0.0.4-py3-none-any.whl.metadata (2.3 kB)
Downloading whisper_ctranslate2-0.0.3-py3-none-any.whl.metadata (2.2 kB)
Downloading whisper_ctranslate2-0.0.2-py3-none-any.whl.metadata (2.1 kB)
Downloading whisper_ctranslate2-0.0.1-py3-none-any.whl.metadata (1.6 kB)
ERROR: Cannot install whisper-ctranslate2==0.0.1, whisper-ctranslate2==0.0.2, whisper-ctr
anslate2==0.0.3, whisper-ctranslate2==0.0.4, whisper-ctranslate2==0.0.5, whisper-ctransla
te2==0.0.6, whisper-ctranslate2==0.0.7, whisper-ctranslate2==0.0.8, whisper-ctranslate2==
0.0.9, whisper-ctranslate2==0.1.0, whisper-ctranslate2==0.1.1, whisper-ctranslate2==0.1.2
, whisper-ctranslate2==0.1.3, whisper-ctranslate2==0.1.4, whisper-ctranslate2==0.1.5, whi
sper-ctranslate2==0.1.6, whisper-ctranslate2==0.1.7, whisper-ctranslate2==0.1.8, whisper-
ctranslate2==0.1.9, whisper-ctranslate2==0.2.0, whisper-ctranslate2==0.2.1, whisper-ctran
slate2==0.2.2, whisper-ctranslate2==0.2.3, whisper-ctranslate2==0.2.4, whisper-ctranslate
2==0.2.5, whisper-ctranslate2==0.2.6, whisper-ctranslate2==0.2.7, whisper-ctranslate2==0.
2.8, whisper-ctranslate2==0.2.9, whisper-ctranslate2==0.3.0, whisper-ctranslate2==0.3.1,
whisper-ctranslate2==0.3.2, whisper-ctranslate2==0.3.3, whisper-ctranslate2==0.3.4, whisp
er-ctranslate2==0.3.5, whisper-ctranslate2==0.3.6, whisper-ctranslate2==0.3.7, whisper-ct
ranslate2==0.3.8, whisper-ctranslate2==0.3.9, whisper-ctranslate2==0.4.0, whisper-ctransl
ate2==0.4.1, whisper-ctranslate2==0.4.2, whisper-ctranslate2==0.4.3, whisper-ctranslate2=
=0.4.4, whisper-ctranslate2==0.4.5, whisper-ctranslate2==0.4.6, whisper-ctranslate2==0.4.
7, whisper-ctranslate2==0.4.8, whisper-ctranslate2==0.4.9, whisper-ctranslate2==0.5.0, wh
isper-ctranslate2==0.5.1 and whisper-ctranslate2==0.5.2 because these package versions ha
ve conflicting dependencies.
The conflict is caused by:
whisper-ctranslate2 0.5.2 depends on ctranslate2
whisper-ctranslate2 0.5.1 depends on ctranslate2
whisper-ctranslate2 0.5.0 depends on ctranslate2
whisper-ctranslate2 0.4.9 depends on ctranslate2
whisper-ctranslate2 0.4.8 depends on ctranslate2
whisper-ctranslate2 0.4.7 depends on ctranslate2
whisper-ctranslate2 0.4.6 depends on ctranslate2
whisper-ctranslate2 0.4.5 depends on ctranslate2
whisper-ctranslate2 0.4.4 depends on ctranslate2
whisper-ctranslate2 0.4.3 depends on ctranslate2
whisper-ctranslate2 0.4.2 depends on ctranslate2
whisper-ctranslate2 0.4.1 depends on ctranslate2
whisper-ctranslate2 0.4.0 depends on ctranslate2
whisper-ctranslate2 0.3.9 depends on ctranslate2
whisper-ctranslate2 0.3.8 depends on ctranslate2
whisper-ctranslate2 0.3.7 depends on ctranslate2
whisper-ctranslate2 0.3.6 depends on ctranslate2
whisper-ctranslate2 0.3.5 depends on ctranslate2
whisper-ctranslate2 0.3.4 depends on ctranslate2
whisper-ctranslate2 0.3.3 depends on ctranslate2
whisper-ctranslate2 0.3.2 depends on ctranslate2
whisper-ctranslate2 0.3.1 depends on ctranslate2
whisper-ctranslate2 0.3.0 depends on ctranslate2
whisper-ctranslate2 0.2.9 depends on ctranslate2
whisper-ctranslate2 0.2.8 depends on ctranslate2
whisper-ctranslate2 0.2.7 depends on ctranslate2
whisper-ctranslate2 0.2.6 depends on ctranslate2
whisper-ctranslate2 0.2.5 depends on ctranslate2
whisper-ctranslate2 0.2.4 depends on ctranslate2
whisper-ctranslate2 0.2.3 depends on ctranslate2
whisper-ctranslate2 0.2.2 depends on ctranslate2
whisper-ctranslate2 0.2.1 depends on ctranslate2
whisper-ctranslate2 0.2.0 depends on ctranslate2
whisper-ctranslate2 0.1.9 depends on ctranslate2
whisper-ctranslate2 0.1.8 depends on ctranslate2
whisper-ctranslate2 0.1.7 depends on ctranslate2
whisper-ctranslate2 0.1.6 depends on ctranslate2
whisper-ctranslate2 0.1.5 depends on ctranslate2
whisper-ctranslate2 0.1.4 depends on ctranslate2
whisper-ctranslate2 0.1.3 depends on ctranslate2
whisper-ctranslate2 0.1.2 depends on ctranslate2
whisper-ctranslate2 0.1.1 depends on ctranslate2
whisper-ctranslate2 0.1.0 depends on ctranslate2
whisper-ctranslate2 0.0.9 depends on ctranslate2
whisper-ctranslate2 0.0.8 depends on ctranslate2
whisper-ctranslate2 0.0.7 depends on ctranslate2
whisper-ctranslate2 0.0.6 depends on ctranslate2
whisper-ctranslate2 0.0.5 depends on ctranslate2
whisper-ctranslate2 0.0.4 depends on ctranslate2
whisper-ctranslate2 0.0.3 depends on ctranslate2
whisper-ctranslate2 0.0.2 depends on ctranslate2==3.9.1
whisper-ctranslate2 0.0.1 depends on ctranslate2==3.9.1
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip to attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependen
cy-resolution/#dealing-with-dependency-conflicts
╭─scia@scia in ~ took 6s
[🔴] × pip3 install -U ctranslate2
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement ctranslate2 (from versions
: none)
ERROR: No matching distribution found for ctranslate2
╭─scia@scia in ~ took 0s
[🔴] × pip3 install ctranslate2
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement ctranslate2 (from versions
: none)
ERROR: No matching distribution found for ctranslate2
To reiterate, I've got it working for now. I might be able to see if I could get PyEnv working correctly, but I'd also still like to know Whisper-CTranslate won't still break if I have to update things. If you could look into it, I'd much appreciate it. 🙂
Any suggestions in the meantime?