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

Not able to install simple-whisper #3

Open
lgonzalezsa opened this issue Nov 5, 2024 · 2 comments
Open

Not able to install simple-whisper #3

lgonzalezsa opened this issue Nov 5, 2024 · 2 comments

Comments

@lgonzalezsa
Copy link

pip install simpler-whisper
ERROR: Could not find a version that satisfies the requirement simpler-whisper (from versions: none)
ERROR: No matching distribution found for simpler-whisper

Trying from source:
Logs

Click here /home/gonluisr/github/note-taker/.pixi/envs/default/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py:251: _IncompatibleBdistWheel: wheel.bdist_wheel is deprecated, please import it from setuptools !!
          ********************************************************************************
          Ensure that any custom bdist_wheel implementation is a subclass of
          setuptools.command.bdist_wheel.bdist_wheel.
  
          By 2025-Oct-15, you need to update your project and remove deprecated calls
          or your builds will no longer be supported.
  
          See https://github.com/pypa/wheel/pull/631 for details.
          ********************************************************************************
  
  !!
    return _build_backend().build_wheel(wheel_directory, config_settings,
  running bdist_wheel
  running build
  running build_py
  copying simpler_whisper/__init__.py -> build/lib.linux-x86_64-cpython-311/simpler_whisper
  copying simpler_whisper/whisper.py -> build/lib.linux-x86_64-cpython-311/simpler_whisper
  running egg_info
  writing simpler_whisper.egg-info/PKG-INFO
  writing dependency_links to simpler_whisper.egg-info/dependency_links.txt
  writing requirements to simpler_whisper.egg-info/requires.txt
  writing top-level names to simpler_whisper.egg-info/top_level.txt
  reading manifest file 'simpler_whisper.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  warning: no files found matching 'simpler_whisper/Release/*.dll'
  warning: no files found matching 'simpler_whisper/Release/*.pyd'
  warning: no files found matching '*.so' under directory 'simpler_whisper'
  warning: no files found matching '*.metal' under directory 'simpler_whisper'
  adding license file 'LICENSE'
  writing manifest file 'simpler_whisper.egg-info/SOURCES.txt'
  running build_ext
  -- pybind11 v2.13.6
  -- Found OpenMP_C: -fopenmp (found version "4.5")
  -- Found OpenMP_CXX: -fopenmp (found version "4.5")
  -- Found OpenMP_C: -fopenmp (found version "4.5")
  -- Found OpenMP_CXX: -fopenmp (found version "4.5")
  -- Configuring done (3.2s)
  -- Generating done (0.0s)
  -- Build files have been written to: /home/gonluisr/github/simpler-whisper/build/temp.linux-x86_64-cpython-311
  [ 10%] Creating directories for 'Whispercpp_Build'
  [ 20%] Performing download step (git clone) for 'Whispercpp_Build'
  Cloning into 'Whispercpp_Build'...
  HEAD is now at ebca09a release : v1.7.1
  [ 30%] Performing update step for 'Whispercpp_Build'
  -- Already at requested tag: v1.7.1
  [ 40%] No patch step for 'Whispercpp_Build'
  [ 50%] Performing configure step for 'Whispercpp_Build'
  -- OpenMP found
  -- Warning: ccache not found - consider installing it for faster compilation or disable this warning with GGML_CCACHE=OFF
  -- CMAKE_SYSTEM_PROCESSOR: x86_64
  -- x86 detected
  -- Configuring done (0.1s)
  -- Generating done (0.0s)
  -- Build files have been written to: /home/gonluisr/github/simpler-whisper/build/temp.linux-x86_64-cpython-311/Whispercpp_Build-prefix/src/Whispercpp_Build-build
  [ 60%] Performing build step for 'Whispercpp_Build'
  gmake[3]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
  [ 12%] Building C object ggml/src/CMakeFiles/ggml.dir/ggml.c.o
  [ 25%] Building C object ggml/src/CMakeFiles/ggml.dir/ggml-alloc.c.o
  [ 37%] Building CXX object ggml/src/CMakeFiles/ggml.dir/ggml-backend.cpp.o
  [ 50%] Building C object ggml/src/CMakeFiles/ggml.dir/ggml-quants.c.o
  [ 62%] Building C object ggml/src/CMakeFiles/ggml.dir/ggml-aarch64.c.o
  [ 75%] Linking CXX static library libggml.a
  [ 75%] Built target ggml
  [ 87%] Building CXX object src/CMakeFiles/whisper.dir/whisper.cpp.o
  [100%] Linking CXX static library libwhisper.a
  [100%] Built target whisper
  [ 70%] Performing install step for 'Whispercpp_Build'
  -- Installing: /home/gonluisr/github/simpler-whisper/build/temp.linux-x86_64-cpython-311/Whispercpp_Build-prefix/lib64/libwhisper.a
  -- Installing: /home/gonluisr/github/simpler-whisper/build/temp.linux-x86_64-cpython-311/Whispercpp_Build-prefix/include/whisper.h
  -- Up-to-date: /home/gonluisr/github/simpler-whisper/build/temp.linux-x86_64-cpython-311/Whispercpp_Build-prefix/lib64/cmake/whisper/whisper-config.cmake
  -- Up-to-date: /home/gonluisr/github/simpler-whisper/build/temp.linux-x86_64-cpython-311/Whispercpp_Build-prefix/lib64/cmake/whisper/whisper-version.cmake
  -- Up-to-date: /home/gonluisr/github/simpler-whisper/build/temp.linux-x86_64-cpython-311/Whispercpp_Build-prefix/lib/pkgconfig/whisper.pc
  -- Installing: /home/gonluisr/github/simpler-whisper/build/temp.linux-x86_64-cpython-311/Whispercpp_Build-prefix/lib64/libggml.a
  -- Installing: /home/gonluisr/github/simpler-whisper/build/temp.linux-x86_64-cpython-311/Whispercpp_Build-prefix/include/ggml.h
  -- Installing: /home/gonluisr/github/simpler-whisper/build/temp.linux-x86_64-cpython-311/Whispercpp_Build-prefix/include/ggml-alloc.h
  -- Installing: /home/gonluisr/github/simpler-whisper/build/temp.linux-x86_64-cpython-311/Whispercpp_Build-prefix/include/ggml-backend.h
  -- Installing: /home/gonluisr/github/simpler-whisper/build/temp.linux-x86_64-cpython-311/Whispercpp_Build-prefix/include/ggml-blas.h
  -- Installing: /home/gonluisr/github/simpler-whisper/build/temp.linux-x86_64-cpython-311/Whispercpp_Build-prefix/include/ggml-cann.h
  -- Installing: /home/gonluisr/github/simpler-whisper/build/temp.linux-x86_64-cpython-311/Whispercpp_Build-prefix/include/ggml-cuda.h
  -- Installing: /home/gonluisr/github/simpler-whisper/build/temp.linux-x86_64-cpython-311/Whispercpp_Build-prefix/include/ggml.h
  -- Installing: /home/gonluisr/github/simpler-whisper/build/temp.linux-x86_64-cpython-311/Whispercpp_Build-prefix/include/ggml-kompute.h
  -- Installing: /home/gonluisr/github/simpler-whisper/build/temp.linux-x86_64-cpython-311/Whispercpp_Build-prefix/include/ggml-metal.h
  -- Installing: /home/gonluisr/github/simpler-whisper/build/temp.linux-x86_64-cpython-311/Whispercpp_Build-prefix/include/ggml-rpc.h
  -- Installing: /home/gonluisr/github/simpler-whisper/build/temp.linux-x86_64-cpython-311/Whispercpp_Build-prefix/include/ggml-sycl.h
  -- Installing: /home/gonluisr/github/simpler-whisper/build/temp.linux-x86_64-cpython-311/Whispercpp_Build-prefix/include/ggml-vulkan.h
  [ 80%] Completed 'Whispercpp_Build'
  [ 80%] Built target Whispercpp_Build
  gmake[2]: *** No rule to make target 'Whispercpp_Build-prefix/lib/libwhisper.a', needed by '/home/gonluisr/github/simpler-whisper/simpler_whisper/_whisper_cpp.cpython-311-x86_64-linux-gnu.so'.  Stop.
  gmake[2]: *** Waiting for unfinished jobs....
  [ 90%] Building CXX object CMakeFiles/_whisper_cpp.dir/src/whisper_wrapper.cpp.o
  gmake[1]: *** [CMakeFiles/Makefile2:128: CMakeFiles/_whisper_cpp.dir/all] Error 2
  gmake: *** [Makefile:91: all] Error 2
  CMake args: ['-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/gonluisr/github/simpler-whisper/build/lib.linux-x86_64-cpython-311/simpler_whisper', '-DPYTHON_EXTENSION_SUFFIX=.cpython-311-x86_64-linux-gnu.so', '-DACCELERATION=cpu', '-DPYTHON_VERSION=3.11', '-DCMAKE_BUILD_TYPE=Release']
  Build args: ['--config', 'Release', '--', '-j2']
  Extension will be built in: /home/gonluisr/github/simpler-whisper/build/lib.linux-x86_64-cpython-311/simpler_whisper
  Building for Python 3.11 on cuda with acceleration: cpu
  Traceback (most recent call last):
    File "/tmp/pip-build-env-koaqhezf/overlay/lib/python3.11/site-packages/setuptools/_distutils/fancy_getopt.py", line 245, in getopt
      opts, args = getopt.getopt(args, short_opts, self.long_opts)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/gonluisr/github/note-taker/.pixi/envs/default/lib/python3.11/getopt.py", line 93, in getopt
      opts, args = do_longs(opts, args[0][2:], longopts, args[1:])
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/gonluisr/github/note-taker/.pixi/envs/default/lib/python3.11/getopt.py", line 157, in do_longs
      has_arg, opt = long_has_args(opt, longopts)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/gonluisr/github/note-taker/.pixi/envs/default/lib/python3.11/getopt.py", line 174, in long_has_args
      raise GetoptError(_('option --%s not recognized') % opt, opt)
  getopt.GetoptError: option --dist-info-dir not recognized
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "/tmp/pip-build-env-koaqhezf/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 170, in setup
      ok = dist.parse_command_line()
           ^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/tmp/pip-build-env-koaqhezf/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 472, in parse_command_line
      args = self._parse_command_opts(parser, args)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/tmp/pip-build-env-koaqhezf/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 901, in _parse_command_opts
      nargs = _Distribution._parse_command_opts(self, parser, args)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/tmp/pip-build-env-koaqhezf/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 576, in _parse_command_opts
      (args, opts) = parser.getopt(args[1:])
                     ^^^^^^^^^^^^^^^^^^^^^^^
    File "/tmp/pip-build-env-koaqhezf/overlay/lib/python3.11/site-packages/setuptools/_distutils/fancy_getopt.py", line 247, in getopt
      raise DistutilsArgError(msg)
  distutils.errors.DistutilsArgError: option --dist-info-dir not recognized
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "/tmp/pip-build-env-koaqhezf/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 437, in build_wheel
      return _build(['bdist_wheel', '--dist-info-dir', str(metadata_directory)])
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/tmp/pip-build-env-koaqhezf/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 425, in _build
      return self._build_with_temp_dir(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/tmp/pip-build-env-koaqhezf/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 406, in _build_with_temp_dir
      self.run_setup()
    File "/tmp/pip-build-env-koaqhezf/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 319, in run_setup
      exec(code, locals())
    File "<string>", line 115, in <module>
    File "/tmp/pip-build-env-koaqhezf/overlay/lib/python3.11/site-packages/setuptools/__init__.py", line 117, in setup
      return distutils.core.setup(**attrs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/tmp/pip-build-env-koaqhezf/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 172, in setup
      raise SystemExit(gen_usage(dist.script_name) + f"\nerror: {msg}")
  SystemExit: usage: _in_process.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: _in_process.py --help [cmd1 cmd2 ...]
     or: _in_process.py --help-commands
     or: _in_process.py cmd --help
  
  error: option --dist-info-dir not recognized
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "/home/gonluisr/github/note-taker/.pixi/envs/default/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
      main()
    File "/home/gonluisr/github/note-taker/.pixi/envs/default/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/home/gonluisr/github/note-taker/.pixi/envs/default/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
      return _build_backend().build_wheel(wheel_directory, config_settings,
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/tmp/pip-build-env-koaqhezf/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 443, in build_wheel
      return _build(['bdist_wheel'])
             ^^^^^^^^^^^^^^^^^^^^^^^
    File "/tmp/pip-build-env-koaqhezf/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 425, in _build
      return self._build_with_temp_dir(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/tmp/pip-build-env-koaqhezf/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 406, in _build_with_temp_dir
      self.run_setup()
    File "/tmp/pip-build-env-koaqhezf/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 319, in run_setup
      exec(code, locals())
    File "<string>", line 115, in <module>
    File "/tmp/pip-build-env-koaqhezf/overlay/lib/python3.11/site-packages/setuptools/__init__.py", line 117, in setup
      return distutils.core.setup(**attrs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/tmp/pip-build-env-koaqhezf/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 183, in setup
      return run_commands(dist)
             ^^^^^^^^^^^^^^^^^^
    File "/tmp/pip-build-env-koaqhezf/overlay/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 199, in run_commands
      dist.run_commands()
    File "/tmp/pip-build-env-koaqhezf/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 954, in run_commands
      self.run_command(cmd)
    File "/tmp/pip-build-env-koaqhezf/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 999, in run_command
      super().run_command(command)
    File "/tmp/pip-build-env-koaqhezf/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
      cmd_obj.run()
    File "/tmp/pip-build-env-koaqhezf/overlay/lib/python3.11/site-packages/wheel/_bdist_wheel.py", line 378, in run
      self.run_command("build")
    File "/tmp/pip-build-env-koaqhezf/overlay/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
      self.distribution.run_command(command)
    File "/tmp/pip-build-env-koaqhezf/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 999, in run_command
      super().run_command(command)
    File "/tmp/pip-build-env-koaqhezf/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
      cmd_obj.run()
    File "/tmp/pip-build-env-koaqhezf/overlay/lib/python3.11/site-packages/setuptools/_distutils/command/build.py", line 135, in run
      self.run_command(cmd_name)
    File "/tmp/pip-build-env-koaqhezf/overlay/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
      self.distribution.run_command(command)
    File "/tmp/pip-build-env-koaqhezf/overlay/lib/python3.11/site-packages/setuptools/dist.py", line 999, in run_command
      super().run_command(command)
    File "/tmp/pip-build-env-koaqhezf/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
      cmd_obj.run()
    File "<string>", line 28, in run
    File "<string>", line 98, in build_extension
    File "/home/gonluisr/github/note-taker/.pixi/envs/default/lib/python3.11/subprocess.py", line 413, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '-j2']' returned non-zero exit status 2.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for simpler-whisper
Failed to build simpler-whisper
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (simpler-whisper)

@tristan-mcinnis
Copy link

Same problem

@royshil
Copy link
Contributor

royshil commented Nov 7, 2024

I haven't yet submitted the PyPi pakcage registration, working on it...

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

3 participants