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

ERROR: Failed building wheel for pysptk #26

Open
Dan-UOB opened this issue Jan 24, 2022 · 4 comments
Open

ERROR: Failed building wheel for pysptk #26

Dan-UOB opened this issue Jan 24, 2022 · 4 comments

Comments

@Dan-UOB
Copy link

Dan-UOB commented Jan 24, 2022

Hello, I have encounter an error when I was installing surfboard in Python 3.7.6 on Win 11. I am sure that I have the package 'wheel' installed and on the latest version. I tried to install 'pysptk' as well but I got the same error. I am wondering if there is anyway to fix this. Thanks!

----------------------------Error message-------------------------

ERROR: Command errored out with exit status 1:
   command: 'c:\users\daniel\anaconda3\python.exe' 'c:\users\daniel\anaconda3\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' build_wheel 'C:\Users\Daniel\AppData\Local\Temp\tmpp_hp7bte'
       cwd: C:\Users\Daniel\AppData\Local\Temp\pip-install-rlxuvnus\pysptk_4a89ebc7a21b44c0bf96c5c1dba15fb9
  Complete output (80 lines):
  fatal: not a git repository (or any of the parent directories): .git
  running bdist_wheel
  running build
  running build_py
  -- Building version 0.1.20
  creating build
  creating build\lib.win-amd64-3.8
  creating build\lib.win-amd64-3.8\pysptk
  copying pysptk\conversion.py -> build\lib.win-amd64-3.8\pysptk
  copying pysptk\sptk.py -> build\lib.win-amd64-3.8\pysptk
  copying pysptk\synthesis.py -> build\lib.win-amd64-3.8\pysptk
  copying pysptk\util.py -> build\lib.win-amd64-3.8\pysptk
  copying pysptk\version.py -> build\lib.win-amd64-3.8\pysptk
  copying pysptk\__init__.py -> build\lib.win-amd64-3.8\pysptk
  creating build\lib.win-amd64-3.8\pysptk\example_audio_data
  copying pysptk\example_audio_data\arctic_a0007.wav -> build\lib.win-amd64-3.8\pysptk\example_audio_data
  copying pysptk\example_audio_data\COPYING -> build\lib.win-amd64-3.8\pysptk\example_audio_data
  running build_ext
  setup.py:58: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    _CYTHON_INSTALLED = ver >= LooseVersion(min_cython_ver)
  Traceback (most recent call last):
    File "c:\users\daniel\anaconda3\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
      main()
    File "c:\users\daniel\anaconda3\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "c:\users\daniel\anaconda3\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 261, in build_wheel
      return _build_backend().build_wheel(wheel_directory, config_settings,
    File "C:\Users\Daniel\AppData\Local\Temp\pip-build-env-07or21iq\overlay\Lib\site-packages\setuptools\build_meta.py", line 230, in build_wheel
      return self._build_with_temp_dir(['bdist_wheel'], '.whl',
    File "C:\Users\Daniel\AppData\Local\Temp\pip-build-env-07or21iq\overlay\Lib\site-packages\setuptools\build_meta.py", line 215, in _build_with_temp_dir
      self.run_setup()
    File "C:\Users\Daniel\AppData\Local\Temp\pip-build-env-07or21iq\overlay\Lib\site-packages\setuptools\build_meta.py", line 267, in run_setup
      super(_BuildMetaLegacyBackend,
    File "C:\Users\Daniel\AppData\Local\Temp\pip-build-env-07or21iq\overlay\Lib\site-packages\setuptools\build_meta.py", line 158, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 136, in <module>
      setup(
    File "C:\Users\Daniel\AppData\Local\Temp\pip-build-env-07or21iq\overlay\Lib\site-packages\setuptools\__init__.py", line 155, in setup
      return distutils.core.setup(**attrs)
    File "C:\Users\Daniel\AppData\Local\Temp\pip-build-env-07or21iq\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 148, in setup
      return run_commands(dist)
    File "C:\Users\Daniel\AppData\Local\Temp\pip-build-env-07or21iq\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 163, in run_commands
      dist.run_commands()
    File "C:\Users\Daniel\AppData\Local\Temp\pip-build-env-07or21iq\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 967, in run_commands
      self.run_command(cmd)
    File "C:\Users\Daniel\AppData\Local\Temp\pip-build-env-07or21iq\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
      cmd_obj.run()
    File "C:\Users\Daniel\AppData\Local\Temp\pip-build-env-07or21iq\overlay\Lib\site-packages\wheel\bdist_wheel.py", line 299, in run
      self.run_command('build')
    File "C:\Users\Daniel\AppData\Local\Temp\pip-build-env-07or21iq\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "C:\Users\Daniel\AppData\Local\Temp\pip-build-env-07or21iq\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
      cmd_obj.run()
    File "C:\Users\Daniel\AppData\Local\Temp\pip-build-env-07or21iq\overlay\Lib\site-packages\setuptools\_distutils\command\build.py", line 135, in run
      self.run_command(cmd_name)
    File "C:\Users\Daniel\AppData\Local\Temp\pip-build-env-07or21iq\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "C:\Users\Daniel\AppData\Local\Temp\pip-build-env-07or21iq\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
      cmd_obj.run()
    File "C:\Users\Daniel\AppData\Local\Temp\pip-build-env-07or21iq\overlay\Lib\site-packages\Cython\Distutils\old_build_ext.py", line 186, in run
      _build_ext.build_ext.run(self)
    File "C:\Users\Daniel\AppData\Local\Temp\pip-build-env-07or21iq\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 339, in run
      self.build_extensions()
    File "C:\Users\Daniel\AppData\Local\Temp\pip-build-env-07or21iq\overlay\Lib\site-packages\Cython\Distutils\old_build_ext.py", line 195, in build_extensions
      _build_ext.build_ext.build_extensions(self)
    File "C:\Users\Daniel\AppData\Local\Temp\pip-build-env-07or21iq\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 448, in build_extensions
      self._build_extensions_serial()
    File "C:\Users\Daniel\AppData\Local\Temp\pip-build-env-07or21iq\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 473, in _build_extensions_serial
      self.build_extension(ext)
    File "C:\Users\Daniel\AppData\Local\Temp\pip-build-env-07or21iq\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 528, in build_extension
      objects = self.compiler.compile(sources,
    File "C:\Users\Daniel\AppData\Local\Temp\pip-build-env-07or21iq\overlay\Lib\site-packages\setuptools\_distutils\_msvccompiler.py", line 327, in compile
      self.initialize()
    File "C:\Users\Daniel\AppData\Local\Temp\pip-build-env-07or21iq\overlay\Lib\site-packages\setuptools\_distutils\_msvccompiler.py", line 224, in initialize
      vc_env = _get_vc_env(plat_spec)
    File "C:\Users\Daniel\AppData\Local\Temp\pip-build-env-07or21iq\overlay\Lib\site-packages\setuptools\msvc.py", line 316, in msvc14_get_vc_env
      return _msvc14_get_vc_env(plat_spec)
    File "C:\Users\Daniel\AppData\Local\Temp\pip-build-env-07or21iq\overlay\Lib\site-packages\setuptools\msvc.py", line 270, in _msvc14_get_vc_env
      raise distutils.errors.DistutilsPlatformError(
  setuptools._distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
  ----------------------------------------
  ERROR: Failed building wheel for pysptk
Failed to build pysptk
ERROR: Could not build wheels for pysptk, which is required to install pyproject.toml-based projects
@rlenain
Copy link
Contributor

rlenain commented Jan 25, 2022

Hi there, and thanks for using Surfboard! We have never tested Surfboard on Windows, but a quick glance at the pysptk documentation seems to hint at building it from source: https://pysptk.readthedocs.io/en/latest/introduction.html.

Let us know if that works!

@Dan-UOB
Copy link
Author

Dan-UOB commented Jan 26, 2022 via email

@Cybernorse
Copy link

Cybernorse commented Mar 17, 2022

hello there, i am having the same error while installing surfboard on ubuntu system. any solutions? i aldo tried installing pysptk from the source it also gives me the error

@Cybernorse
Copy link

For ubuntu (linux) users, this error sometimes occurs due to the absence of the package called gcc, you can solve it by installing gcc package with this command.

sudo apt-get install gcc

But make sure that you have a error like this in the error log
'error: command 'gcc' failed: No such file or directory'

thread source link here: https://stackoverflow.com/a/72303783

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