Error when executing main file
I've followed the steps according to the README. Everything was fine until I ran the command "py main.py --api". Can anyone help me to fix this problem?. Thanks a lot. I'm using: Choco version "1.2.1" and Python version: "3.9.12"
Somehow you installed another library with the same name (whisper, but for work you need openai-whisper)
Try reinstalling via:
pip uninstall whisper
pip install git+https://github.com/openai/whisper.git
If this does not help, then please run:
pip freeze
And send an output.
still the same issue
PS F:\AI\ecoute> pip freeze aiosignal==1.3.1 async-timeout==4.0.2 attrs==23.1.0 certifi==2023.5.7 charset-normalizer==3.1.0 colorama==0.4.6 comtypes==1.1.14 customtkinter==5.1.3 darkdetect==0.8.0 ffmpeg-python==0.2.0 filelock==3.12.0 frozenlist==1.3.3 future==0.18.3 idna==3.4 Jinja2==3.1.2 llvmlite==0.40.1rc1 MarkupSafe==2.1.3 more-itertools==9.1.0 mpmath==1.3.0 multidict==6.0.4 networkx==3.1 numba==0.57.0 numpy==1.24.3 openai-whisper @ git+https://github.com/openai/whisper.git@248b6cb124225dd263bb9bd32d060b6517e067f8 PyAudioWPatch==0.2.12.5 pywin32==306 pywinauto==0.6.8 regex==2023.6.3 requests==2.31.0 six==1.16.0 sympy==1.12 tiktoken==0.3.3 torch==2.0.1 tqdm==4.65.0 typing_extensions==4.6.3 urllib3==2.0.3 Wave==0.0.2 yarl==1.9.2 PS F:\AI\ecoute>
@saravanareddy09
If your error has not changed, then the problem is exactly what I wrote about. You have the wrong library installed. And for some reason, pip did not remove it, although judging by your message, pip itself does not see this library.
Lines of code for which an error is thrown are not in the openai-whisper, because they belong to the same erroneous library.
Do you have multiple versions of Python installed on your system? Run this to check:
where python
where pip
If there are several versions, then you used pip from the wrong version of python. In this case, you need to run the script using the "correct" version (to do this, instead of python, write C:\full\path\to\python)
You also have the following options:
- try to manualy delete
C:\full\path\to\python_dir\lib\site-packages\whisper.py - or try full reinstall python and
ecoute - or try to use virtual environments(like, venv)
Note: Maybe you should try using an earlier version of python, like 3.9
if possible pls connect in google meet or +917095143164 we can resolve fast ..i need this ecoute app kind request to you @s0d3s @emcf @zarifpour after resolve few issues iam getting this issue
Traceback (most recent call last):
File "F:\AI\ecoute\main.py", line 2, in
I downgraded to 3.9.5, and working like Charm
I downgraded to 3.9.5, and working like Charm
you downgraded python?