gitmylo / audio-webui

A webui for different audio related Neural Networks
MIT License
1.03k stars 99 forks source link

Installation failed on Windows [BUG REPORT] #208

Open Himmelstiger opened 8 months ago

Himmelstiger commented 8 months ago

Describe the bug I had opened cmd.exe as Administrator and started install_windows.bat. After that I go to audio-webui directory (cd audio-webui) and started run.bat (I use Windows 11)

To Reproduce Steps to reproduce the behavior: Ad described above. Tried to run as Administrator and also as User.

Additional context 2024-01-28 13:14:31 | INFO | fairseq.tasks.text_to_speech | Please install tensorboardX: pip install tensorboardX 2024-01-28 13:14:31 | WARNING | xformers | WARNING[XFORMERS]: xFormers can't load C++/CUDA extensions. xFormers was built for: PyTorch 2.1.0+cu121 with CUDA 1201 (you have 2.1.0+cpu) Python 3.10.11 (you have 3.10.11) Please reinstall xformers (see https://github.com/facebookresearch/xformers#installing-xformers) Memory-efficient attention, SwiGLU, sparse and more won't be available. Set XFORMERS_MORE_DETAILS=1 for more details 2024-01-28 13:14:32 | WARNING | xformers | Triton is not available, some optimizations will not be enabled. This is just a warning: triton is not available Install finished, pywintypes missing, relaunching script. Checking installs and venv + autodebug checks Python version: 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)] Webui version: bcbba0774e0d9d701714bc3546046b922c331b84 - Sat Dec 16 14:16:53 2023 +0100 Found extensions: Failed to install PyTorch. Check AutoDebug output.

▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█░▄▄▀██░██░█▄▄░▄▄██░▄▄▄░██░▄▄▀██░▄▄▄██░▄▄▀██░██░██░▄▄░██
█░▀▀░██░██░███░████░███░██░██░██░▄▄▄██░▄▄▀██░██░██░█▀▀██
█░██░██▄▀▀▄███░████░▀▀▀░██░▀▀░██░▀▀▀██░▀▀░██▄▀▀▄██░▀▀▄██
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

Install failed! STDOUT: Looking in indexes: https://download.pytorch.org/whl/cu117 Requirement already satisfied: torch in f:\audio-webui\venv\lib\site-packages (2.1.0) Requirement already satisfied: torchvision in f:\audio-webui\venv\lib\site-packages (0.15.2+cu117) Requirement already satisfied: torchaudio in f:\audio-webui\venv\lib\site-packages (2.1.0) Requirement already satisfied: jinja2 in f:\audio-webui\venv\lib\site-packages (from torch) (3.1.2) Requirement already satisfied: networkx in f:\audio-webui\venv\lib\site-packages (from torch) (3.0) Requirement already satisfied: typing-extensions in f:\audio-webui\venv\lib\site-packages (from torch) (4.9.0) Requirement already satisfied: fsspec in f:\audio-webui\venv\lib\site-packages (from torch) (2023.12.2) Requirement already satisfied: filelock in f:\audio-webui\venv\lib\site-packages (from torch) (3.9.0) Requirement already satisfied: sympy in f:\audio-webui\venv\lib\site-packages (from torch) (1.12) Requirement already satisfied: requests in f:\audio-webui\venv\lib\site-packages (from torchvision) (2.28.1) Collecting torch Using cached https://download.pytorch.org/whl/cu117/torch-2.0.1%2Bcu117-cp310-cp310-win_amd64.whl (2343.6 MB) Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in f:\audio-webui\venv\lib\site-packages (from torchvision) (9.3.0) Requirement already satisfied: numpy in f:\audio-webui\venv\lib\site-packages (from torchvision) (1.23.5) Collecting torchaudio Using cached https://download.pytorch.org/whl/cu117/torchaudio-2.0.2%2Bcu117-cp310-cp310-win_amd64.whl (2.5 MB) Requirement already satisfied: MarkupSafe>=2.0 in f:\audio-webui\venv\lib\site-packages (from jinja2->torch) (2.1.3) Requirement already satisfied: certifi>=2017.4.17 in f:\audio-webui\venv\lib\site-packages (from requests->torchvision) (2022.12.7) Requirement already satisfied: charset-normalizer<3,>=2 in f:\audio-webui\venv\lib\site-packages (from requests->torchvision) (2.1.1) Requirement already satisfied: idna<4,>=2.5 in f:\audio-webui\venv\lib\site-packages (from requests->torchvision) (3.4) Requirement already satisfied: urllib3<1.27,>=1.21.1 in f:\audio-webui\venv\lib\site-packages (from requests->torchvision) (1.26.13) Requirement already satisfied: mpmath>=0.19 in f:\audio-webui\venv\lib\site-packages (from sympy->torch) (1.3.0) Installing collected packages: torch, torchaudio Attempting uninstall: torch Found existing installation: torch 2.1.0 Uninstalling torch-2.1.0: Successfully uninstalled torch-2.1.0

STDERR: ERROR: Could not install packages due to an OSError: [WinError 5] Zugriff verweigert: 'F:\audio-webui\venv\Lib\site-packages\~orch\lib\asmjit.dll' Check the permissions.

[notice] A new release of pip is available: 23.0.1 -> 23.3.2 [notice] To update, run: python.exe -m 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

Himmelstiger commented 8 months ago

Now I tried to uninstall torch using "pip uninstall torch" inside the venv envorinment. Then I reinstalled torch with "pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu121". After that I was able to open up the WebUI using the "run.bat" command. But inside the UI I'm not able to perform any task. So if I choose the model "suno/bark" in the "Text to speech" tab nothing happens. Also in "AudioLDM" or "AudioCraft" nothing happens when I type some text an press "Generate". The only thing happens is, that the Gradio-App generates its "time counter" counting high, but the PC did not do anything.pip

So I tried several times to uninstall torch with "pip uninstall torch torchvision torchaudio" und re-install it with "pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu121", "pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu118" and "pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu117". But all of these throwing errors and I was'nt able to launch the webui.run. After some more tryings I finally tried to install torch again with "pip install torch==2.1.2 torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu118" which leads into the result, that I was able to launch the webui, but with the same result reported first: nothing happens inside UI.

Cry0nicS commented 8 months ago

Running into the same issue. Haven't been able to find a workaround yet.

Found extensions:
Failed to install PyTorch. Check AutoDebug output.
Install failed!

....

Requirement already satisfied: mpmath>=0.19 in d:\soft\audio-webui\venv\lib\site-packages (from sympy->torch) (1.3.0)
Installing collected packages: torch, torchaudio
  Attempting uninstall: torch
    Found existing installation: torch 2.1.0
    Uninstalling torch-2.1.0:
      Successfully uninstalled torch-2.1.0

STDERR:
ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'C:\\audio-webui\\venv\\Lib\\site-packages\\~orch\\lib\\asmjit.dll'
Check the permissions.
SoftologyPro commented 7 months ago

Same errors here. It fails even earlier if you install in a directory/path with spaces. Here are the full logs for with and without spaces in the directory. Path with spaces.txt Path without spaces.txt