Skip to content

Commit

Permalink
install faster-whisper using git as pypi is not updated anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
MahmoudAshraf97 committed Nov 25, 2023
1 parent 4b05198 commit b4e4143
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
torch>=2
torchaudio>=2
faster-whisper>=0.10
git+https://github.com/SYSTRAN/faster-whisper.git@0.10.0
transformers
pandas
setuptools>=65
Expand Down

2 comments on commit b4e4143

@RAHUL-KAD
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit is not working properly for faster-whisper.

pip install git+https://github.com/m-bain/whisperx.git

=> Step 7: RUN pip install git+https://github.com/m-bain/whisperx.git --upgrade
Looking in indexes: http://pypi-mirror.modal.local:5555/simple
Collecting git+https://github.com/m-bain/whisperx.git
Cloning https://github.com/m-bain/whisperx.git to /tmp/pip-req-build-pyk5h1y2
Running command git clone --filter=blob:none --quiet https://github.com/m-bain/whisperx.git /tmp/pip-req-build-pyk5h1y2
Resolved https://github.com/m-bain/whisperx.git to commit 5a16e59
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [35 lines of output]
/tmp/pip-req-build-pyk5h1y2/setup.py:4: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/requirements.py", line 35, in init
parsed = _parse_requirement(requirement_string)
File "/usr/local/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/_parser.py", line 64, in parse_requirement
return _parse_requirement(Tokenizer(source, rules=DEFAULT_RULES))
File "/usr/local/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/_parser.py", line 82, in _parse_requirement
url, specifier, marker = _parse_requirement_details(tokenizer)
File "/usr/local/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/_parser.py", line 126, in _parse_requirement_details
marker = _parse_requirement_marker(
File "/usr/local/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/_parser.py", line 147, in _parse_requirement_marker
tokenizer.raise_syntax_error(
File "/usr/local/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/_tokenizer.py", line 165, in raise_syntax_error
raise ParserSyntaxError(
pkg_resources.extern.packaging._tokenizer.ParserSyntaxError: Expected end or semicolon (after name and no valid version specifier)
git+https://github.com/SYSTRAN/[email protected]
^

  The above exception was the direct cause of the following exception:
  
  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "/tmp/pip-req-build-pyk5h1y2/setup.py", line 18, in <module>
      install_requires=[
    File "/tmp/pip-req-build-pyk5h1y2/setup.py", line 18, in <listcomp>
      install_requires=[
    File "/usr/local/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3171, in __init__
      super(Requirement, self).__init__(requirement_string)
    File "/usr/local/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/requirements.py", line 37, in __init__
      raise InvalidRequirement(str(e)) from e
  pkg_resources.extern.packaging.requirements.InvalidRequirement: Expected end or semicolon (after name and no valid version specifier)
      git+https://github.com/SYSTRAN/[email protected]
         ^
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Terminating task due to error: failed to run builder command "pip install git+https://github.com/m-bain/whisperx.git --upgrade"

Caused by:
container exit status: 1
Runner failed with exception: task exited with failure, status = exit status: 1

@ZackHodari
Copy link

@ZackHodari ZackHodari commented on b4e4143 Nov 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed here #604

For now you can install with pip install git+https://github.com/ZackHodari/whisperx.git@fix/pip-install-git-faster-whisper, though this will likely go out of date with m-bain main

Please sign in to comment.