MahmoudAshraf97 / whisper-diarization

Automatic Speech Recognition with Speaker Diarization based on OpenAI Whisper
BSD 2-Clause "Simplified" License
3.43k stars 288 forks source link

install issue #172

Open transcriptionstream opened 6 months ago

transcriptionstream commented 6 months ago

Still working to determine a resolution, not whisper-diarization directly but downstream dep change causing the following when installing

Collecting sox
  Downloading sox-1.5.0.tar.gz (63 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 63.9/63.9 KB 5.6 MB/s eta 0:00:00
  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
  ╰─> [97 lines of output]
      /usr/lib/python3/dist-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
        warnings.warn(
      /bin/sh: 1: sox: not found
      SoX could not be found!

          If you do not have SoX, proceed here:
           - - - http://sox.sourceforge.net/ - - -

          If you do (or think that you should) have SoX, double-check your
          path variables.

      /bin/sh: 1: sox: not found
      SoX could not be found!

          If you do not have SoX, proceed here:
           - - - http://sox.sourceforge.net/ - - -

          If you do (or think that you should) have SoX, double-check your
          path variables.

      /bin/sh: 1: sox: not found
      SoX could not be found!

          If you do not have SoX, proceed here:
           - - - http://sox.sourceforge.net/ - - -

          If you do (or think that you should) have SoX, double-check your
          path variables.

      /bin/sh: 1: sox: not found
      SoX could not be found!

          If you do not have SoX, proceed here:
           - - - http://sox.sourceforge.net/ - - -

          If you do (or think that you should) have SoX, double-check your
          path variables.

      Traceback (most recent call last):
        File "/usr/lib/python3/dist-packages/setuptools/config.py", line 419, in _parse_attr
          return getattr(StaticModule(module_name), attr_name)
        File "/usr/lib/python3/dist-packages/setuptools/config.py", line 26, in __init__
          spec = importlib.util.find_spec(name)
        File "/usr/lib/python3.10/importlib/util.py", line 94, in find_spec
          parent = __import__(parent_name, fromlist=['__path__'])
        File "/tmp/pip-install-tbeypn21/sox_1a67d651811142adbe7698040c9e33e2/sox/__init__.py", line 21, in <module>
          from . import file_info
        File "/tmp/pip-install-tbeypn21/sox_1a67d651811142adbe7698040c9e33e2/sox/file_info.py", line 9, in <module>
          from .core import VALID_FORMATS
        File "/tmp/pip-install-tbeypn21/sox_1a67d651811142adbe7698040c9e33e2/sox/core.py", line 8, in <module>
          import numpy as np
      ModuleNotFoundError: No module named 'numpy'

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-tbeypn21/sox_1a67d651811142adbe7698040c9e33e2/setup.py", line 10, in <module>
          setup(
        File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 153, in setup
          return distutils.core.setup(**attrs)
        File "/usr/lib/python3.10/distutils/core.py", line 121, in setup
          dist.parse_config_files()
        File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 804, in parse_config_files
          parse_configuration(
        File "/usr/lib/python3/dist-packages/setuptools/config.py", line 158, in parse_configuration
          meta.parse()
        File "/usr/lib/python3/dist-packages/setuptools/config.py", line 498, in parse
          section_parser_method(section_options)
        File "/usr/lib/python3/dist-packages/setuptools/config.py", line 469, in parse_section
          self[name] = value
        File "/usr/lib/python3/dist-packages/setuptools/config.py", line 222, in __setitem__
          value = parser(value)
        File "/usr/lib/python3/dist-packages/setuptools/config.py", line 599, in _parse_version
          version = self._parse_attr(value, self.package_dir)
        File "/usr/lib/python3/dist-packages/setuptools/config.py", line 422, in _parse_attr
          module = importlib.import_module(module_name)
        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 "/tmp/pip-install-tbeypn21/sox_1a67d651811142adbe7698040c9e33e2/sox/__init__.py", line 21, in <module>
          from . import file_info
        File "/tmp/pip-install-tbeypn21/sox_1a67d651811142adbe7698040c9e33e2/sox/file_info.py", line 9, in <module>
          from .core import VALID_FORMATS
        File "/tmp/pip-install-tbeypn21/sox_1a67d651811142adbe7698040c9e33e2/sox/core.py", line 8, in <module>
          import numpy as np
      ModuleNotFoundError: No module named 'numpy'
      [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.`
transcriptionstream commented 6 months ago

Curious if anyone else is having/has seen this issue. I was able to resolve with using pip to install

typing_extensions numpy

before running the whisper-diarization install