YuanGongND / whisper-at

Code and Pretrained Models for Interspeech 2023 Paper "Whisper-AT: Noise-Robust Automatic Speech Recognizers are Also Strong Audio Event Taggers"
BSD 2-Clause "Simplified" License
318 stars 25 forks source link

ResolutionImpossible error #26

Open orionflame opened 6 months ago

orionflame commented 6 months ago

Hi,

When I use: pip install whisper-at

I get: Defaulting to user installation because normal site-packages is not writeable Collecting whisper-at Downloading whisper_at-0.5-py3-none-any.whl.metadata (20 kB) INFO: pip is looking at multiple versions of whisper-at to determine which version is compatible with other requirements. This could take a while. Downloading whisper_at-0.4-py3-none-any.whl.metadata (20 kB) Downloading whisper_at-0.2-py3-none-any.whl.metadata (18 kB) Downloading whisper_at-0.1-py3-none-any.whl.metadata (16 kB) ERROR: Cannot install whisper-at==0.1, whisper-at==0.2, whisper-at==0.4 and whisper-at==0.5 because these package versions have conflicting dependencies.

The conflict is caused by: whisper-at 0.5 depends on triton==2.0.0 whisper-at 0.4 depends on triton==2.0.0 whisper-at 0.2 depends on triton==2.0.0 whisper-at 0.1 depends on triton==2.0.0

To fix this you could try to:

  1. loosen the range of package versions you've specified
  2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

I have regular whisper and fast whisper and whisperHallu.

Is there a way to fix this? Should I delete the other ones?

Thanks a lot in advance.

YuanGongND commented 6 months ago

Does this work?

pip install numba numpy torch tqdm more-itertools tiktoken==0.3.3
# install whisper-at without any dependency
pip install --no-deps whisper-at 
orionflame commented 6 months ago

Thanks a lot for replying so fast. I just run the first comment it was running well and got this:

Building wheels for collected packages: tiktoken Building wheel for tiktoken (pyproject.toml) ... error error: subprocess-exited-with-error

× Building wheel for tiktoken (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [37 lines of output] running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-312 creating build\lib.win-amd64-cpython-312\tiktoken copying tiktoken\core.py -> build\lib.win-amd64-cpython-312\tiktoken copying tiktoken\load.py -> build\lib.win-amd64-cpython-312\tiktoken copying tiktoken\model.py -> build\lib.win-amd64-cpython-312\tiktoken copying tiktoken\registry.py -> build\lib.win-amd64-cpython-312\tiktoken copying tiktoken__init__.py -> build\lib.win-amd64-cpython-312\tiktoken creating build\lib.win-amd64-cpython-312\tiktoken_ext copying tiktoken_ext\openai_public.py -> build\lib.win-amd64-cpython-312\tiktoken_ext running egg_info writing tiktoken.egg-info\PKG-INFO writing dependency_links to tiktoken.egg-info\dependency_links.txt writing requirements to tiktoken.egg-info\requires.txt writing top-level names to tiktoken.egg-info\top_level.txt reading manifest file 'tiktoken.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'Makefile' adding license file 'LICENSE' writing manifest file 'tiktoken.egg-info\SOURCES.txt' copying tiktoken\py.typed -> build\lib.win-amd64-cpython-312\tiktoken running build_ext running build_rust error: can't find Rust compiler

  If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.

  To update pip, run:

      pip install --upgrade pip

  and then retry package installation.

  If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for tiktoken Failed to build tiktoken ERROR: Could not build wheels for tiktoken, which is required to install pyproject.toml-based projects

YuanGongND commented 6 months ago

thanks for sharing this. What is your OS?

orionflame commented 6 months ago

Windows 11 64 bit.

orionflame commented 6 months ago

Should I just run? pip install --no-deps whisper-at

YuanGongND commented 6 months ago

You can try.

Also, can you check if https://colab.research.google.com/drive/1BbOGWCMjkOlOY5PbEMGk5RomRSqMcy_Q?usp=sharing still work (the installation block)?

orionflame commented 6 months ago

It's installing for a long time I will let you know when it finishes.

orionflame commented 6 months ago

Ok it finished after 40 mins and I got this in the end:

Requirement already satisfied: setuptools in /usr/local/lib/python3.10/dist-packages (from nvidia-cublas-cu11==11.10.3.66->torch->whisper-at) (67.7.2) Requirement already satisfied: wheel in /usr/local/lib/python3.10/dist-packages (from nvidia-cublas-cu11==11.10.3.66->torch->whisper-at) (0.43.0) Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.10/dist-packages (from requests>=2.26.0->tiktoken==0.3.3->whisper-at) (3.3.2) Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.10/dist-packages (from requests>=2.26.0->tiktoken==0.3.3->whisper-at) (3.6) Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.10/dist-packages (from requests>=2.26.0->tiktoken==0.3.3->whisper-at) (2.0.7) Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.10/dist-packages (from requests>=2.26.0->tiktoken==0.3.3->whisper-at) (2024.2.2) Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.10/dist-packages (from jinja2->torch->whisper-at) (2.1.5) Requirement already satisfied: mpmath>=0.19 in /usr/local/lib/python3.10/dist-packages (from sympy->torch->whisper-at) (1.3.0) Building wheels for collected packages: lit Building wheel for lit (pyproject.toml) ... done Created wheel for lit: filename=lit-18.1.2-py3-none-any.whl size=96368 sha256=e6628ac205bd79b7b23477ca781e89e5643c6f07552d7337afe0e9bc5c5a7224 Stored in directory: /root/.cache/pip/wheels/f4/4d/9c/3e28d23c2c6fc6a9bd89c91a7b7ff775fc71a41ac9a52563e9 Successfully built lit Installing collected packages: lit, nvidia-nvtx-cu11, nvidia-nccl-cu11, nvidia-cusparse-cu11, nvidia-curand-cu11, nvidia-cufft-cu11, nvidia-cuda-runtime-cu11, nvidia-cuda-nvrtc-cu11, nvidia-cuda-cupti-cu11, nvidia-cublas-cu11, tiktoken, nvidia-cusolver-cu11, nvidia-cudnn-cu11, triton, torch, whisper-at Attempting uninstall: triton Found existing installation: triton 2.2.0 Uninstalling triton-2.2.0: Successfully uninstalled triton-2.2.0 Attempting uninstall: torch Found existing installation: torch 2.2.1+cu121 Uninstalling torch-2.2.1+cu121: Successfully uninstalled torch-2.2.1+cu121 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. torchaudio 2.2.1+cu121 requires torch==2.2.1, but you have torch 2.0.1 which is incompatible. torchtext 0.17.1 requires torch==2.2.1, but you have torch 2.0.1 which is incompatible. torchvision 0.17.1+cu121 requires torch==2.2.1, but you have torch 2.0.1 which is incompatible. Successfully installed lit-18.1.2 nvidia-cublas-cu11-11.10.3.66 nvidia-cuda-cupti-cu11-11.7.101 nvidia-cuda-nvrtc-cu11-11.7.99 nvidia-cuda-runtime-cu11-11.7.99 nvidia-cudnn-cu11-8.5.0.96 nvidia-cufft-cu11-10.9.0.58 nvidia-curand-cu11-10.2.10.91 nvidia-cusolver-cu11-11.4.0.1 nvidia-cusparse-cu11-11.7.4.91 nvidia-nccl-cu11-2.14.3 nvidia-nvtx-cu11-11.7.91 tiktoken-0.3.3 torch-2.0.1 triton-2.0.0 whisper-at-0.5

orionflame commented 5 months ago

Did this output help at all? I imagine I can't fix this ResolutionImpossible error myself.