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

Cannot install whisperx 3.3.0 via pipx or uv #973

Open
wmsmigiel opened this issue Jan 3, 2025 · 6 comments
Open

Cannot install whisperx 3.3.0 via pipx or uv #973

wmsmigiel opened this issue Jan 3, 2025 · 6 comments

Comments

@wmsmigiel
Copy link

Hi!

I'm trying to install the latest whisperx 3.3.0 via pipx or uv. I'm getting the following errors:

> pipx install whisperx
Fatal error from pip prevented installation. Full pip output in file:
    /home/voii/.local/state/pipx/log/cmd_2025-01-03_12.22.28_pip_errors.log

pip seemed to fail to build package:
    torch>=2

Some possibly relevant errors from pip install:
    ERROR: Ignored the following versions that require a different python version: 3.3.0 Requires-Python <3.13,>=3.9
    ERROR: Could not find a version that satisfies the requirement torchaudio>=2 (from whisperx) (from versions: none)
    ERROR: No matching distribution found for torchaudio>=2

Error installing whisperx.
> uv tool install whisperx
  × No solution found when resolving dependencies:
  ╰─▶ Because only the following versions of whisperx are available:
          whisperx==3.1.1
          whisperx==3.1.2
          whisperx==3.1.3
          whisperx==3.1.4
          whisperx==3.1.5
          whisperx==3.1.6
          whisperx==3.2.0
          whisperx==3.3.0
      and whisperx<=3.1.2 was yanked (reason: unofficial release by third party (see
      https://github.com/m-bain/whisperX/issues/761)), we can conclude that whisperx<=3.1.2 cannot be used.
      And because whisperx==3.1.3 was yanked (reason: unofficial release by third party (see
      https://github.com/m-bain/whisperX/issues/761)) and whisperx>=3.1.4,<=3.1.6 was yanked (reason: unofficial
      release by third party (see https://github.com/m-bain/whisperX/issues/761)), we can conclude that
      whisperx>=3.1.4,<=3.1.6 cannot be used. (1)

      Because only the following versions of torchaudio are available:
          torchaudio<=2.0.0
          torchaudio==2.0.1
          torchaudio==2.0.2
          torchaudio==2.1.0
          torchaudio==2.1.1
          torchaudio==2.1.2
          torchaudio==2.2.0
          torchaudio==2.2.1
          torchaudio==2.2.2
          torchaudio==2.3.0
          torchaudio==2.3.1
          torchaudio==2.4.0
          torchaudio==2.4.1
          torchaudio==2.5.0
          torchaudio==2.5.1
      and torchaudio==2.0.0 was yanked (reason: Contains an incorrect torch dependency), we can conclude that
      torchaudio>=2.0.0,<2.0.1 cannot be used.
      And because torchaudio>=2.0.1 has no wheels with a matching Python ABI tag and whisperx>=3.2.0 depends on
      torchaudio>=2, we can conclude that whisperx>=3.2.0 cannot be used.
      And because we know from (1) that whisperx>=3.1.4,<=3.1.6 cannot be used, we can conclude that all versions
      of whisperx cannot be used.
      And because you require whisperx, we can conclude that your requirements are unsatisfiable.

Is there any way to address this? I would like to have just the CLI working, pipx/uv are quite convenient for that.

Thanks!

@Barabazs
Copy link
Collaborator

Barabazs commented Jan 3, 2025

Which python version are you using? I just tried pipx on 3.12 and I had no issues installing.

@wmsmigiel
Copy link
Author

Which python version are you using? I just tried pipx on 3.12 and I had no issues installing.

python 3.12 failed for me as well, same with 3.10

> uv tool install whisperx --python 3.12
Resolved 126 packages in 54ms
  × Failed to build `llvmlite==0.36.0`
  ├─▶ The build backend returned an error
  ╰─▶ Call to `setuptools.build_meta:__legacy__.build_wheel` failed (exit status: 1)

      [stderr]
      Traceback (most recent call last):
        File "<string>", line 14, in <module>
        File "/home/voii/.cache/uv/builds-v0/.tmpQ0jk6z/lib/python3.12/site-packages/setuptools/build_meta.py", line 334, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/home/voii/.cache/uv/builds-v0/.tmpQ0jk6z/lib/python3.12/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires
          self.run_setup()
        File "/home/voii/.cache/uv/builds-v0/.tmpQ0jk6z/lib/python3.12/site-packages/setuptools/build_meta.py", line 522, in run_setup
          super().run_setup(setup_script=setup_script)
        File "/home/voii/.cache/uv/builds-v0/.tmpQ0jk6z/lib/python3.12/site-packages/setuptools/build_meta.py", line 320, in run_setup
          exec(code, locals())
        File "<string>", line 55, in <module>
        File "<string>", line 52, in _guard_py_ver
      RuntimeError: Cannot install on Python version 3.12.8; only versions >=3.6,<3.10 are supported.


      hint: This usually indicates a problem with the package or the build environment.
  help: `llvmlite` (v0.36.0) was included because `whisperx` (v3.3.0) depends on `pyannote-audio` (v3.3.2) which depends on `torch-audiomentations` (v0.11.1) which depends on `librosa` (v0.10.2.post1) which depends on `numba`
        (v0.53.1) which depends on `llvmlite`

Python 3.9 worked, but with some additional messages

> uvx whisperx -h
INFO:speechbrain.utils.quirks:Applied quirks (see `speechbrain.utils.quirks`): [allow_tf32, disable_jit_profiling]
INFO:speechbrain.utils.quirks:Excluded quirks specified by the `SB_DISABLE_QUIRKS` environment (comma-separated list): []
usage: whisperx [-h] [--model MODEL] [--model_dir MODEL_DIR] [--device DEVICE] [--device_index DEVICE_INDEX] [--batch_size BATCH_SIZE] [--compute_type {float16,float32,int8}] [--output_dir OUTPUT_DIR]

@muuvmuuv
Copy link

muuvmuuv commented Jan 3, 2025

Same here, only got it running with

  • uv python install 3.9
  • uv python pin 3.9
  • uv sync
  • uv add whisperx

@erkkimon
Copy link

erkkimon commented Jan 6, 2025

Which python version are you using? I just tried pipx on 3.12 and I had no issues installing.

python 3.12 failed for me as well, same with 3.10

> uv tool install whisperx --python 3.12
Resolved 126 packages in 54ms
  × Failed to build `llvmlite==0.36.0`
  ├─▶ The build backend returned an error
  ╰─▶ Call to `setuptools.build_meta:__legacy__.build_wheel` failed (exit status: 1)

      [stderr]
      Traceback (most recent call last):
        File "<string>", line 14, in <module>
        File "/home/voii/.cache/uv/builds-v0/.tmpQ0jk6z/lib/python3.12/site-packages/setuptools/build_meta.py", line 334, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/home/voii/.cache/uv/builds-v0/.tmpQ0jk6z/lib/python3.12/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires
          self.run_setup()
        File "/home/voii/.cache/uv/builds-v0/.tmpQ0jk6z/lib/python3.12/site-packages/setuptools/build_meta.py", line 522, in run_setup
          super().run_setup(setup_script=setup_script)
        File "/home/voii/.cache/uv/builds-v0/.tmpQ0jk6z/lib/python3.12/site-packages/setuptools/build_meta.py", line 320, in run_setup
          exec(code, locals())
        File "<string>", line 55, in <module>
        File "<string>", line 52, in _guard_py_ver
      RuntimeError: Cannot install on Python version 3.12.8; only versions >=3.6,<3.10 are supported.


      hint: This usually indicates a problem with the package or the build environment.
  help: `llvmlite` (v0.36.0) was included because `whisperx` (v3.3.0) depends on `pyannote-audio` (v3.3.2) which depends on `torch-audiomentations` (v0.11.1) which depends on `librosa` (v0.10.2.post1) which depends on `numba`
        (v0.53.1) which depends on `llvmlite`

Python 3.9 worked, but with some additional messages

> uvx whisperx -h
INFO:speechbrain.utils.quirks:Applied quirks (see `speechbrain.utils.quirks`): [allow_tf32, disable_jit_profiling]
INFO:speechbrain.utils.quirks:Excluded quirks specified by the `SB_DISABLE_QUIRKS` environment (comma-separated list): []
usage: whisperx [-h] [--model MODEL] [--model_dir MODEL_DIR] [--device DEVICE] [--device_index DEVICE_INDEX] [--batch_size BATCH_SIZE] [--compute_type {float16,float32,int8}] [--output_dir OUTPUT_DIR]

Got the exactly same error when installing with command pipx install whisperx --python 3.10 on Arch Linux. I tried it because pipx install whisperx failed with default Python which is 3.13 in my system. Haven't found a solution yet but will let you know if I find out something. So this post can be considered basically as +1 for priority.

@mcint
Copy link

mcint commented Jan 10, 2025

For ease of quickly trying variations

uvx --python 3.9 --with git+https://github.com/m-bain/whisperx.git whisperx ... are some additional supported options. I hadn't adopted uv tool ... use, but will now.

@odevroed
Copy link

Same here on Fedora 41.
Fresh install with conda of python 3.10 as suggested in the docs. Got the exact same message as OP.
I tried with Python 3.9 as well, but I got the same error again.

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

6 participants