gitmylo / audio-webui

A webui for different audio related Neural Networks
MIT License
1.01k stars 94 forks source link

[BUG REPORT] Unable to install audio-webui on macOS Ventura 13.5 #103

Closed danielraffel closed 1 year ago

danielraffel commented 1 year ago

Unable to install audio-webui on macOS Ventura 13.5. tried in a conda container. Also, tried with Pinokio. Both yield the same results. Any ideas how to fix this?

Is this maybe a miss match between Python versions 3.10.10 and Python 3.9? Looks like the audio-webui installer finds Python 3.10.10 whereas the required python packages for the installer might be installed in python3.9/site-packages.

sh run.sh
Checking installs and venv + autodebug checks
Python version:  3.10.10 (v3.10.10:aad5f6a891, Feb  7 2023, 08:47:40) [Clang 13.0.0 (clang-1300.0.29.30)]
Webui version: 2de304b857db6ffba07ef66b1b7595b2adc35d53 - Thu Aug 3 11:41:05 2023 +0200
Found extensions:
activating venv
Checking installs and venv + autodebug checks
Python version:  3.10.10 (v3.10.10:aad5f6a891, Feb  7 2023, 08:47:40) [Clang 13.0.0 (clang-1300.0.29.30)]
Webui version: 2de304b857db6ffba07ef66b1b7595b2adc35d53 - Thu Aug 3 11:41:05 2023 +0200
Found extensions:
Failed to install pyworld. Check AutoDebug output.

    ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
    █░▄▄▀██░██░█▄▄░▄▄██░▄▄▄░██░▄▄▀██░▄▄▄██░▄▄▀██░██░██░▄▄░██
    █░▀▀░██░██░███░████░███░██░██░██░▄▄▄██░▄▄▀██░██░██░█▀▀██
    █░██░██▄▀▀▄███░████░▀▀▀░██░▀▀░██░▀▀▀██░▀▀░██▄▀▀▄██░▀▀▄██
    ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Install failed!
STDOUT:
Collecting pyworld>=0.3.2
  Using cached pyworld-0.3.4.tar.gz (251 kB)
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'error'

STDERR:
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [14 lines of output]
      running dist_info
      creating /private/var/folders/88/0z67phc10rd1lq65t9g6n2kh0000gn/T/pip-modern-metadata-opj9_xh5/pyworld.egg-info
      writing /private/var/folders/88/0z67phc10rd1lq65t9g6n2kh0000gn/T/pip-modern-metadata-opj9_xh5/pyworld.egg-info/PKG-INFO
      writing dependency_links to /private/var/folders/88/0z67phc10rd1lq65t9g6n2kh0000gn/T/pip-modern-metadata-opj9_xh5/pyworld.egg-info/dependency_links.txt
      writing requirements to /private/var/folders/88/0z67phc10rd1lq65t9g6n2kh0000gn/T/pip-modern-metadata-opj9_xh5/pyworld.egg-info/requires.txt
      writing top-level names to /private/var/folders/88/0z67phc10rd1lq65t9g6n2kh0000gn/T/pip-modern-metadata-opj9_xh5/pyworld.egg-info/top_level.txt
      writing manifest file '/private/var/folders/88/0z67phc10rd1lq65t9g6n2kh0000gn/T/pip-modern-metadata-opj9_xh5/pyworld.egg-info/SOURCES.txt'
      reading manifest file '/private/var/folders/88/0z67phc10rd1lq65t9g6n2kh0000gn/T/pip-modern-metadata-opj9_xh5/pyworld.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no files found matching '*.pxd' under directory 'pyworld'
      adding license file 'LICENSE'
      writing manifest file '/private/var/folders/88/0z67phc10rd1lq65t9g6n2kh0000gn/T/pip-modern-metadata-opj9_xh5/pyworld.egg-info/SOURCES.txt'
      creating '/private/var/folders/88/0z67phc10rd1lq65t9g6n2kh0000gn/T/pip-modern-metadata-opj9_xh5/pyworld-0.3.4.dist-info'
      error: invalid command 'bdist_wheel'
      [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.

[notice] A new release of pip available: 22.3.1 -> 23.2.1
[notice] To update, run: pip install --upgrade pip

Please read the error above carefully.
If you are unsure, please create an issue at https://github.com/gitmylo/audio-webui/issues.
When creating an issue, please include your full autodebug message.
Exit code: 1

Press any key to exit... %                                                   

pip is up-to-date

pip install pyworld
Requirement already satisfied: pyworld in /Users/username/.conda/envs/audiocraft/lib/python3.9/site-packages (0.3.4)
Requirement already satisfied: numpy in /Users/username/.conda/envs/audiocraft/lib/python3.9/site-packages (from pyworld) (1.24.3)
Requirement already satisfied: cython>=0.24 in /Users/username/.conda/envs/audiocraft/lib/python3.9/site-packages (from pyworld) (0.29.35)

pyworld is up-to-date

pip install pyworld
Requirement already satisfied: pyworld in /Users/username/.conda/envs/audiocraft/lib/python3.9/site-packages (0.3.4)
Requirement already satisfied: numpy in /Users/username/.conda/envs/audiocraft/lib/python3.9/site-packages (from pyworld) (1.24.3)
Requirement already satisfied: cython>=0.24 in /Users/username/.conda/envs/audiocraft/lib/python3.9/site-packages (from pyworld) (0.29.35)

wheel is up-to-date

pip install --upgrade setuptools wheel
Requirement already satisfied: setuptools in /Users/username/.conda/envs/audiocraft/lib/python3.9/site-packages (68.0.0)
Requirement already satisfied: wheel in /Users/username/.conda/envs/audiocraft/lib/python3.9/site-packages (0.41.1)
gitmylo commented 1 year ago

Have you tried it without a virtual environment? (aka venv, which it automatically enables)

danielraffel commented 1 year ago

good call, just tried, didn't change the outcome - still getting the same error

sh run.sh
Checking installs and venv + autodebug checks
Python version:  3.10.10 | packaged by conda-forge | (main, Mar 24 2023, 20:12:31) [Clang 14.0.6 ]
Webui version: 2de304b857db6ffba07ef66b1b7595b2adc35d53 - Thu Aug 3 11:41:05 2023 +0200
Found extensions:
activating venv
Checking installs and venv + autodebug checks
Python version:  3.10.10 (v3.10.10:aad5f6a891, Feb  7 2023, 08:47:40) [Clang 13.0.0 (clang-1300.0.29.30)]
Webui version: 2de304b857db6ffba07ef66b1b7595b2adc35d53 - Thu Aug 3 11:41:05 2023 +0200
Found extensions:
Failed to install pyworld. Check AutoDebug output.

    ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
    █░▄▄▀██░██░█▄▄░▄▄██░▄▄▄░██░▄▄▀██░▄▄▄██░▄▄▀██░██░██░▄▄░██
    █░▀▀░██░██░███░████░███░██░██░██░▄▄▄██░▄▄▀██░██░██░█▀▀██
    █░██░██▄▀▀▄███░████░▀▀▀░██░▀▀░██░▀▀▀██░▀▀░██▄▀▀▄██░▀▀▄██
    ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Install failed!
STDOUT:
Collecting pyworld>=0.3.2
  Using cached pyworld-0.3.4.tar.gz (251 kB)
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'error'

STDERR:
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [14 lines of output]
      running dist_info
      creating /private/var/folders/88/0z67phc10rd1lq65t9g6n2kh0000gn/T/pip-modern-metadata-7q7j5otk/pyworld.egg-info
      writing /private/var/folders/88/0z67phc10rd1lq65t9g6n2kh0000gn/T/pip-modern-metadata-7q7j5otk/pyworld.egg-info/PKG-INFO
      writing dependency_links to /private/var/folders/88/0z67phc10rd1lq65t9g6n2kh0000gn/T/pip-modern-metadata-7q7j5otk/pyworld.egg-info/dependency_links.txt
      writing requirements to /private/var/folders/88/0z67phc10rd1lq65t9g6n2kh0000gn/T/pip-modern-metadata-7q7j5otk/pyworld.egg-info/requires.txt
      writing top-level names to /private/var/folders/88/0z67phc10rd1lq65t9g6n2kh0000gn/T/pip-modern-metadata-7q7j5otk/pyworld.egg-info/top_level.txt
      writing manifest file '/private/var/folders/88/0z67phc10rd1lq65t9g6n2kh0000gn/T/pip-modern-metadata-7q7j5otk/pyworld.egg-info/SOURCES.txt'
      reading manifest file '/private/var/folders/88/0z67phc10rd1lq65t9g6n2kh0000gn/T/pip-modern-metadata-7q7j5otk/pyworld.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no files found matching '*.pxd' under directory 'pyworld'
      adding license file 'LICENSE'
      writing manifest file '/private/var/folders/88/0z67phc10rd1lq65t9g6n2kh0000gn/T/pip-modern-metadata-7q7j5otk/pyworld.egg-info/SOURCES.txt'
      creating '/private/var/folders/88/0z67phc10rd1lq65t9g6n2kh0000gn/T/pip-modern-metadata-7q7j5otk/pyworld-0.3.4.dist-info'
      error: invalid command 'bdist_wheel'
      [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.

[notice] A new release of pip available: 22.3.1 -> 23.2.1
[notice] To update, run: pip install --upgrade pip

Please read the error above carefully.
If you are unsure, please create an issue at https://github.com/gitmylo/audio-webui/issues.
When creating an issue, please include your full autodebug message.
Exit code: 1
gitmylo commented 1 year ago

Looking up the error error: invalid command 'bdist_wheel' shows that you might not have the wheel package installed, which is needed to install the package.

Try activating your venv (source venv/bin/activate on bash) and then installing wheel, by running pip install wheel

https://stackoverflow.com/questions/65273035/how-to-fix-error-invalid-command-bdist-wheel

danielraffel commented 1 year ago

thanks for all the suggestions. that tip to activate venv and install within it was the pro-move. thanks! here's what ended up working for me:

tried all these things but they didn't work:

gitmylo commented 1 year ago

Great