bklynhlth / openwillis

Python library for digital measurement of health
Other
16 stars 8 forks source link

Could not build wheels when installing openwillis #115

Closed joshwongg closed 2 months ago

joshwongg commented 3 months ago

Hi, I'm having trouble installing Openwillis through pip when using pip install openwillis I'm using miniconda3. Below is the output from when I run pip install openwillis. Any help is greatly appreciated! Thanks!

Building wheel for pysptk (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [25 lines of output]
      fatal: not a git repository (or any of the parent directories): .git
      <string>:58: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
      running bdist_wheel
      running build
      running build_py
      -- Building version 0.2.2
      creating build
      creating build\lib.win-amd64-cpython-310
      creating build\lib.win-amd64-cpython-310\pysptk
      copying pysptk\conversion.py -> build\lib.win-amd64-cpython-310\pysptk
      copying pysptk\sptk.py -> build\lib.win-amd64-cpython-310\pysptk
      copying pysptk\synthesis.py -> build\lib.win-amd64-cpython-310\pysptk
      copying pysptk\util.py -> build\lib.win-amd64-cpython-310\pysptk
      copying pysptk\version.py -> build\lib.win-amd64-cpython-310\pysptk
      copying pysptk\__init__.py -> build\lib.win-amd64-cpython-310\pysptk
      creating build\lib.win-amd64-cpython-310\pysptk\example_audio_data
      copying pysptk\example_audio_data\arctic_a0007.wav -> build\lib.win-amd64-cpython-310\pysptk\example_audio_data
      copying pysptk\example_audio_data\COPYING -> build\lib.win-amd64-cpython-310\pysptk\example_audio_data
      running build_ext
      C:\Users\jjsw972\AppData\Local\Temp\1\pip-build-env-lp8mut55\overlay\Lib\site-packages\Cython\Compiler\Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: C:\Users\jjsw972\AppData\Local\Temp\1\pip-install-mj7j2apa\pysptk_204ada5c272e479eb25fd1b44d2c47ff\pysptk\_sptk.pxd
        tree = Parsing.p_module(s, pxd, full_module_name)
      Compiling pysptk\_sptk.pyx because it changed.
      [1/1] Cythonizing pysptk\_sptk.pyx
      building 'pysptk._sptk' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  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
GeorgeEfstathiadis commented 3 months ago

Hello,

The issue seems to be with your system requiring Microsoft Visual C++ 14.0 or greater, which is required for compiling the pysptk library. You can download it here and then try to rerun the installation.

Let me know if that works and also your system specs if another issue occurs (i.e. are you running on Mac, Windows or somewhere else?).

joshwongg commented 2 months ago

Awesome, thanks so much for your help!