Package Details: whisper-git 1.0.r8.e90b8fa-1

Git Clone URL: https://aur.archlinux.org/whisper-git.git (read-only, click to copy)
Package Base: whisper-git
Description: General-purpose speech recognition model by OpenAI
Upstream URL: https://github.com/openai/whisper
Licenses: MIT
Provides: whisper
Submitter: blinry
Maintainer: blinry
Last Packager: blinry
Votes: 2
Popularity: 1.61
First Submitted: 2022-09-22 17:49 (UTC)
Last Updated: 2022-09-22 21:32 (UTC)

Latest Comments

GottamRev1 commented on 2022-10-01 12:58 (UTC)

It worked for me when using pip, but would crash if I tried this package. Please add python-huggingface-hub to dependencies, that fixed it for me.

noyogurt commented on 2022-09-26 15:14 (UTC) (edited on 2022-09-26 15:15 (UTC) by noyogurt)

After installing whisper-git (aur), python-requests(extra), and python-huggingface-hub-git(aur). I'm consistently getting this error when trying to whisper

Traceback (most recent call last):
  File "/usr/bin/whisper", line 33, in <module>
    sys.exit(load_entry_point('whisper==1.0', 'console_scripts', 'whisper')())
  File "/usr/bin/whisper", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.10/site-packages/whisper/__init__.py", line 12, in <module>
    from .decoding import DecodingOptions, DecodingResult, decode, detect_language
  File "/usr/lib/python3.10/site-packages/whisper/decoding.py", line 11, in <module>
    from .tokenizer import Tokenizer, get_tokenizer
  File "/usr/lib/python3.10/site-packages/whisper/tokenizer.py", line 8, in <module>
    from transformers import GPT2TokenizerFast
  File "<frozen importlib._bootstrap>", line 1075, in _handle_fromlist
  File "/usr/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 862, in __getattr__
    module = self._get_module(self._class_to_module[name])
  File "/usr/lib/python3.10/site-packages/transformers/utils/import_utils.py", line 874, in _get_module
    raise RuntimeError(
RuntimeError: Failed to import transformers.models.gpt2 because of the following error (look up to see its traceback):
Failed to import transformers.tokenization_utils because of the following error (look up to see its traceback):
/usr/lib/python3.10/site-packages/tokenizers/tokenizers.cpython-310-x86_64-linux-gnu.so: undefined symbol: onig_region_free

bquast commented on 2022-09-24 16:55 (UTC)

for me python-requests and python-huggingface_hub were missing

blinry commented on 2022-09-24 10:49 (UTC)

Hey nika, try installing https://aur.archlinux.org/packages/python-huggingface-hub, and potentially other dependencies which are not packaged correctly in https://aur.archlinux.org/packages/python-transformers (see ChrisMorgan's comment). :)

nika commented on 2022-09-24 10:04 (UTC) (edited on 2022-09-24 10:42 (UTC) by nika)

Thanks for this, getting this error though and fixed it by adding: pip install huggingface_hub

Traceback (most recent call last):
  File "/usr/bin/whisper", line 33, in <module>
    sys.exit(load_entry_point('whisper==1.0', 'console_scripts', 'whisper')())
  File "/usr/bin/whisper", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.10/site-packages/whisper/__init__.py", line 12, in <module>
    from .decoding import DecodingOptions, DecodingResult, decode, detect_language
  File "/usr/lib/python3.10/site-packages/whisper/decoding.py", line 11, in <module>
    from .tokenizer import Tokenizer, get_tokenizer
  File "/usr/lib/python3.10/site-packages/whisper/tokenizer.py", line 8, in <module>
    from transformers import GPT2TokenizerFast
  File "/usr/lib/python3.10/site-packages/transformers/__init__.py", line 30, in <module>
    from . import dependency_versions_check
  File "/usr/lib/python3.10/site-packages/transformers/dependency_versions_check.py", line 17, in <module>
    from .utils.versions import require_version, require_version_core
  File "/usr/lib/python3.10/site-packages/transformers/utils/__init__.py", line 46, in <module>
    from .hub import (
  File "/usr/lib/python3.10/site-packages/transformers/utils/hub.py", line 39, in <module>
    from huggingface_hub import HfFolder, Repository, create_repo, list_repo_files, whoami
ModuleNotFoundError: No module named 'huggingface_hub'

blinry commented on 2022-09-22 21:33 (UTC)

Sure, done! Thanks, sekret!

sekret commented on 2022-09-22 19:12 (UTC)

Please add git to makedepends.