rsxdalv / tts-generation-webui

TTS Generation Web UI (Bark, MusicGen + AudioGen, Tortoise, RVC, Vocos, Demucs, SeamlessM4T, MAGNet, StyleTTS2, MMS)
https://rsxdalv.github.io/tts-generation-webui/
MIT License
1.68k stars 180 forks source link

I Can’t Install It at All #383

Open Rodoxdexts opened 3 days ago

Rodoxdexts commented 3 days ago

In one-click-installers-tts-6.0, when I start start_windows.bat, the cmd opens and closes abruptly. I tested it with the ai fix:

`@echo off

cd /D "%~dp0"

echo "%CD%"| findstr /C:" " >nul && echo This script relies on Miniconda which cannot be silently installed under a path with spaces. && goto end

set PATH=%PATH%;%SystemRoot%\system32

@rem config set INSTALL_DIR=%cd%\installer_files set CONDA_ROOT_PREFIX=%cd%\installer_files\conda set INSTALL_ENV_DIR=%cd%\installer_files\env set MINICONDA_DOWNLOAD_URL=https://repo.anaconda.com/miniconda/Miniconda3-py310_23.1.0-1-Windows-x86_64.exe set conda_exists=F

@rem figure out whether git and conda need to be installed call "%CONDA_ROOT_PREFIX%\condabin\conda.bat" --version >nul 2>&1 if "%ERRORLEVEL%" EQU 0 set conda_exists=T

@rem (if necessary) install git and conda into a contained environment @rem download conda if "%conda_exists%" == "F" ( echo Downloading Miniconda from %MINICONDA_DOWNLOAD_URL% to %INSTALL_DIR%\miniconda_installer.exe

mkdir "%INSTALL_DIR%"
call curl -Lk "%MINICONDA_DOWNLOAD_URL%" -o "%INSTALL_DIR%\miniconda_installer.exe" || ( echo. && echo Miniconda failed to download. && goto end )

echo Installing Miniconda to %CONDA_ROOT_PREFIX%
start /wait "" "%INSTALL_DIR%\miniconda_installer.exe" /InstallationType=JustMe /NoShortcuts=1 /AddToPath=0 /RegisterPython=0 /NoRegistry=1 /S /D=%CONDA_ROOT_PREFIX%

@rem test the conda binary
echo Miniconda version:
call "%CONDA_ROOT_PREFIX%\condabin\conda.bat" --version || ( echo. && echo Miniconda not found. && goto end )

)

@rem create the installer env if not exist "%INSTALL_ENV_DIR%" ( echo Packages to install: %PACKAGES_TO_INSTALL% call "%CONDA_ROOT_PREFIX%\condabin\conda.bat" create --no-shortcuts -y -k --prefix "%INSTALL_ENV_DIR%" python=3.10 || ( echo. && echo Conda environment creation failed. && goto end ) )

@rem check if conda environment was actually created if not exist "%INSTALL_ENV_DIR%\python.exe" ( echo. && echo Conda environment is empty. && goto end )

@rem activate installer env call "%CONDA_ROOT_PREFIX%\condabin\conda.bat" activate "%INSTALL_ENV_DIR%" || ( echo. && echo Miniconda hook not found. && goto end )

@rem setup installer env call python webui.py

echo. echo Done!

:end pause ` but it didn't work.

Rodoxdexts commented 3 days ago

I'm not a senior programmer btw sussy baka.

rsxdalv commented 3 days ago

Hi the new one click installers are within the repository as "start_tts_webui.bat". I removed the old installers but people still keep finding them. I will try to add warnings that they are out of date.

On Thu, Sep 26, 2024, 10:10 PM Rodoxdexts @.***> wrote:

I'm not a senior programmer btw sussy baka.

— Reply to this email directly, view it on GitHub https://github.com/rsxdalv/tts-generation-webui/issues/383#issuecomment-2377728659, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTRXI6BUAURVFHFZDFH5RLZYRLVXAVCNFSM6AAAAABO5U7LOOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZXG4ZDQNRVHE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Rodoxdexts commented 3 days ago

Now it ran, but there was 1 error, I ran start_tts_webui.bat as administrator and it showed me this in cmd:

Transcription started, output file is
C:\Users\(User)\Downloads\tts-generation-webui-main\tts-generation-webui-main\installer_scripts\output. log
"Checking if the Micromamba/Conda environment is already installed."
"Micromamba/Conda environment already installed in C:\WINDOWS\system32\installer_files\env, skipping installation"

Starting init app (version: 0.0.6)...

Checking conda installation...
>conda --version
conda 24.7.1
Pulling updates from tts-generation-webui
There was a problem while pulling updates. Aborting...
ENOENT: no such file or directory, open 'C:\WINDOWS\system32\.git\refs\heads\main'
Failed to init the app, exiting...
Press any key to continue. . .

ajmrl6gf

rsxdalv commented 3 days ago

Try without admin, it changes the directory. Did it not work without admin?

On Fri, Sep 27, 2024, 1:09 AM Rodoxdexts @.***> wrote:

Now it ran, but there was 1 error, I ran start_tts_webui.bat as administrator and it showed me this in cmd:

Transcription started, output file is C:\Users(User)\Downloads\tts-generation-webui-main\tts-generation-webui-main\installer_scripts\output. log "Checking if the Micromamba/Conda environment is already installed." "Micromamba/Conda environment already installed in C:\WINDOWS\system32\installer_files\env, skipping installation"

Starting init app (version: 0.0.6)...

Checking conda installation...

conda --version conda 24.7.1 Pulling updates from tts-generation-webui There was a problem while pulling updates. Aborting... ENOENT: no such file or directory, open 'C:\WINDOWS\system32.git\refs\heads\main' Failed to init the app, exiting... Press any key to continue. . .

image.8.png (view on web) https://github.com/user-attachments/assets/7aa04bf4-b8a5-47e2-bf7f-b49b679ed9b8

— Reply to this email directly, view it on GitHub https://github.com/rsxdalv/tts-generation-webui/issues/383#issuecomment-2378023324, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTRXIYIT7LIFHWDQSPQDF3ZYSA3HAVCNFSM6AAAAABO5U7LOOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZYGAZDGMZSGQ . You are receiving this because you commented.Message ID: @.***>

Rodoxdexts commented 3 days ago

no, just a message saying it can't run on my computer like this Capture-13-515x285 and this error:

Transcription started, output file is C:\Users\(User)\Downloads\tts-generation-webui-main\tts-generation-webui-main\installer_scripts\output.log
"Downloading micromamba from https://github.com/easydiffusion/easydiffusion/releases/download/v1.1/micromamba.exe to C:\Users\(User)\Downloads\tts-generation-webui-main\tts-generation-webui-main\installer_files\mamba\micromamba.exe"
A subfolder or file C:\Users\(User)\Downloads\tts-generation-webui-main\tts-generation-webui-main\installer_files\mamba already exists.
'curl' is not recognized as an internal or external command, operable program or batch file.
"There was a problem downloading micromamba. Cannot continue."
Press any key to continue. . .
The system cannot find the path specified.
'node' is not recognized as an internal or external command, operable program or batch file.
Failed to init the app, exiting...
Press any key to continue. . .

My english is not perfect sorry.

Rodoxdexts commented 3 days ago

When I run it with admin, it stops at this section of the installer_scripts -> root.ps1 ->

& "$PSScriptRoot\init_app.bat"
if ($LASTEXITCODE -ne 0) {
    Write-Host "Failed to init the app, exiting..."
    exit 1
}

cmd:

"Checking if the Micromamba/Conda environment is already installed."
"Micromamba/Conda environment already installed in C:\WINDOWS\system32\installer_files\env, skipping installation"

Starting init app (version: 0.0.6)...

Checking conda installation...
>conda --version
conda 24.7.1
Pulling updates from tts-generation-webui
There was a problem while pulling updates. Aborting...
ENOENT: no such file or directory, open 'C:\WINDOWS\system32\.git\refs\heads\main'
Failed to init the app, exiting...
Press any key to continue. . .
Rodoxdexts commented 3 days ago

I created the 'main' folder that ENOENT: no such file or directory, open 'C:\WINDOWS\system32\.git\refs\heads\main' was asking, and this appeared:

Transcription started, output file is C:\Users\(User)\Downloads\tts-generation-webui-main\tts-generation-webui-main\installer_scripts\output.log
"Checking if the Micromamba/Conda environment is already installed."
"Micromamba/Conda environment already installed in C:\WINDOWS\system32\installer_files\env, skipping installation"

Starting init app (version: 0.0.6)...

Checking conda installation...
>conda --version
conda 24.7.1
Pulling updates from tts-generation-webui
There was a problem while pulling updates. Aborting...
EISDIR: illegal operation on a directory, read
Failed to init the app, exiting...
Press any key to continue. . .
rsxdalv commented 3 days ago

Thanks for all of the info! I'm encountering this for the first time. What kind of windows is this? And if I understand correctly, when it says "can't run this app on your PC" it also gives the errors, right?

The core issue appears to be that there's no "curl" command, which should have been available.

On Fri, Sep 27, 2024, 2:15 AM Rodoxdexts @.***> wrote:

I created the main folder that ENOENT: no such file or directory, open 'C:\WINDOWS\system32.git\refs\heads\main' was asking, and this appeared:

Transcription started, output file is C:\Users(User)\Downloads\tts-generation-webui-main\tts-generation-webui-main\installer_scripts\output.log "Checking if the Micromamba/Conda environment is already installed." "Micromamba/Conda environment already installed in C:\WINDOWS\system32\installer_files\env, skipping installation"

Starting init app (version: 0.0.6)...

Checking conda installation...

conda --version conda 24.7.1 Pulling updates from tts-generation-webui There was a problem while pulling updates. Aborting... EISDIR: illegal operation on a directory, read Failed to init the app, exiting... Press any key to continue. . .

— Reply to this email directly, view it on GitHub https://github.com/rsxdalv/tts-generation-webui/issues/383#issuecomment-2378103430, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTRXI7HKR4HEZJW7RSBTZTZYSIPNAVCNFSM6AAAAABO5U7LOOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZYGEYDGNBTGA . You are receiving this because you commented.Message ID: @.***>

Rodoxdexts commented 2 days ago

It's Windows 10 pro in portuguese😅

I read the start_tts_webui.bat file to see where the error was leading (and also because I'm paranoid about viruses), and it took me to installer_scripts -> root.ps1, and I edited it with the Windows Powershell editor image (9) and compared it with the cmd errors.

Yeah, it gives errors

Transcription started, output file is C:\Users\(User)\Downloads\tts-generation-webui-main\tts-generation-webui-main\installer_scripts\output.log "Downloading micromamba from https://github.com/easydiffusion/ easydiffusion/releases/download/v1.1/micromamba.exe to C:\Users\(User)\Downloads\tts-generation-webui-main\tts-generation-webui-main\installer_files\mamba\micromamba.exe" There is already a subfolder or a file C:\Users\(User)\Downloads\tts-generation-webui-main\tts-generation-webui-main\installer_files\mamba.
'curl' is not recognized as an internal or external command, an operable program, or a batch file.
"There was a problem downloading micromamba. Cannot continue."
Press any key to continue. . .
The system cannot find the path specified.
'node' is not recognized as an internal or external command, operable program or batch file.
Failed to init the app, exiting...
Press any key to continue...

Good Job!

rsxdalv commented 2 days ago

It's Windows 10 pro in portuguese😅

I read the start_tts_webui.bat file to see where the error was leading (and also because I'm paranoid about viruses), and it took me to installer_scripts -> root.ps1, and I edited it with the Windows Powershell editor image (9) and compared it with the cmd errors.

Yeah, it gives errors

Transcription started, output file is C:\Users\(User)\Downloads\tts-generation-webui-main\tts-generation-webui-main\installer_scripts\output.log "Downloading micromamba from https://github.com/easydiffusion/ easydiffusion/releases/download/v1.1/micromamba.exe to C:\Users\(User)\Downloads\tts-generation-webui-main\tts-generation-webui-main\installer_files\mamba\micromamba.exe" There is already a subfolder or a file C:\Users\(User)\Downloads\tts-generation-webui-main\tts-generation-webui-main\installer_files\mamba.
'curl' is not recognized as an internal or external command, an operable program, or a batch file.
"There was a problem downloading micromamba. Cannot continue."
Press any key to continue. . .
The system cannot find the path specified.
'node' is not recognized as an internal or external command, operable program or batch file.
Failed to init the app, exiting...
Press any key to continue...

Good Job!

By the way, if you are interested in AI projects and you want to feel safer, you can try out Docker options. You'll need to learn a little about docker, but you'll have a 'VM' that greatly increases the separation between the app and your OS. I don't know what the performance difference would be, but not a huge one since most of the time is spent on the GPU not on the CPU.

As for installing this project the one-click-way: I see that you don't have 'curl', could you verify that with a simple powershell/cmd terminal to type curl --help and show what the output is? It's possible everyone installing the webui until this point had curl installed, so I assumed that it comes preinstalled with windows, but maybe I got it from git or wsl.

Also thanks for debugging this project, even if this does not give an immediate solution, maybe this will provide better stability 2-3 steps in the future.

Last, but not least, depending on your skill level/dedication you might do a manual install: https://github.com/rsxdalv/tts-generation-webui?tab=readme-ov-file#manual-installation-not-recommended All the project needs to run is python 3 (highly recommended 3.10.11) with the dependencies - pytorch, and requirements files. The more you install successfully the more will run. Virtual environments are highly encouraged and not using a venv might break your webui at some point. Automatic updates won't happen though.

Rodoxdexts commented 2 days ago

I did curl --help and it gave:

PS C:\Users\(User)> curl --help
curl : The remote name could not be resolved: '--help'
On line:1 char:1
+ curl --help
+ ~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
   eption
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
rsxdalv commented 2 days ago

I did curl --help and it gave:

PS C:\Users\(User)> curl --help
curl : The remote name could not be resolved: '--help'
On line:1 char:1
+ curl --help
+ ~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
   eption
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

Thanks, this means that powershell does have the curl alias for Invoke-WebRequest. In that case - please do cmd.exe to open the classic terminal and once again curl --help (for example powershell > cmd.exe > curl --help)

rsxdalv commented 2 days ago

Also, assuming, just assuming that curl is the only problem that will happen, you can also just download manually the micromamba.exe and save like this:

tts-generation-webui-main\installer_files\mamba\micromamba.exe

You can probably use any recent micromamba version, but this is the micromamba.exe that the webui uses: https://github.com/easydiffusion/easydiffusion/releases/download/v1.1/micromamba.exe

edit: micromamba releases can be found here https://github.com/mamba-org/micromamba-releases/releases (they lack the .exe extension and need to be renamed manually, i.e. micromamba-win-64 -> micromamba.exe),

Rodoxdexts commented 1 day ago

I did curl --help and it gave:

PS C:\Users\(User)> curl --help
curl : The remote name could not be resolved: '--help'
On line:1 char:1
+ curl --help
+ ~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
   eption
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

Thanks, this means that powershell does have the curl alias for Invoke-WebRequest. In that case - please do cmd.exe to open the classic terminal and once again curl --help (for example powershell > cmd.exe > curl --help)

He gives me this:

PS C:\Users\(User)> C:\WINDOWS\system32\cmd.exe
Microsoft Windows [version 10.0.19045.4894]
(c) Microsoft Corporation. All rights reserved.

C:\Users\(User)>curl --help
'curl' is not recognized as an internal or external command, operable program or batch file.
Rodoxdexts commented 1 day ago

these links give different files: image (10) image (11) These links give different files. Are they different versions for each dev's purposes? Edit: I'm running it to see if it will install correctly

Rodoxdexts commented 1 day ago

Also, assuming, just assuming that curl is the only problem that will happen, you can also just download manually the micromamba.exe and save like this:

tts-generation-webui-main\installer_files\mamba\micromamba.exe

You can probably use any recent micromamba version, but this is the micromamba.exe that the webui uses: https://github.com/easydiffusion/easydiffusion/releases/download/v1.1/micromamba.exe

edit: micromamba releases can be found here https://github.com/mamba-org/micromamba-releases/releases (they lack the .exe extension and need to be renamed manually, i.e. micromamba-win-64 -> micromamba.exe),

now it says:

Start-Transcript : Transcription cannot be started.
No C:\Users\(User)\Downloads\tts-generation-webui-main\tts-generation-webui-main\installer_scripts\root.ps1:2
caractere:1
+ Start-Transcript -Path $logFile
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Start-Transcript], PSInvalidOperationException
    + FullyQualifiedErrorId : CannotStartTranscription,Microsoft.PowerShell.Commands.StartTranscriptCommand

"Checking if the Micromamba/Conda environment is already installed."
"Micromamba/Conda environment already installed in C:\Users\Matheus\Downloads\tts-generation-webui-main\tts-generation-webui-main\installer_files\env, skipping installation"
'DOSKEY' is not recognized as an internal command or external, an operable program or a batch file.

Starting init app (version: 0.0.6)...

Checking conda installation...
>conda --version
conda 24.7.1
Pulling updates from tts-generation-webui
>git pull
Already up to date.
No updates found, skipping...
'DOSKEY' não é reconhecido como um comando interno
ou externo, um programa operável ou um arquivo em lotes.
Traceback (most recent call last):
  File "C:\Users\(User)\Downloads\tts-generation-webui-main\tts-generation-webui-main\server.py", line 11, in <module>
    import gradio as gr
  File "C:\Users\(User)\Downloads\tts-generation-webui-main\tts-generation-webui-main\installer_files\env\lib\site-packages\gradio\__init__.py", line 3, in <module>
    import gradio._simple_templates
  File "C:\Users\(User)\Downloads\tts-generation-webui-main\tts-generation-webui-main\installer_files\env\lib\site-packages\gradio\_simple_templates\__init__.py", line 1, in <module>
    from .simpledropdown import SimpleDropdown
  File "C:\Users\(User)\Downloads\tts-generation-webui-main\tts-generation-webui-main\installer_files\env\lib\site-packages\gradio\_simple_templates\simpledropdown.py", line 6, in <module>
    from gradio.components.base import Component, FormComponent
  File "C:\Users\(User)\Downloads\tts-generation-webui-main\tts-generation-webui-main\installer_files\env\lib\site-packages\gradio\components\__init__.py", line 1, in <module>
    from gradio.components.annotated_image import AnnotatedImage
  File "C:\Users\(User)\Downloads\tts-generation-webui-main\tts-generation-webui-main\installer_files\env\lib\site-packages\gradio\components\annotated_image.py", line 9, in <module>
    import PIL.Image
  File "C:\Users\(User)\Downloads\tts-generation-webui-main\tts-generation-webui-main\installer_files\env\lib\site-packages\PIL\Image.py", line 100, in <module>
    from . import _imaging as core
ImportError: DLL load failed while importing _imaging: Não foi possível encontrar o módulo especificado.
""
""
App exitted or crashed.
Starting command prompt for user to run commands in case of failure...
""
cmd' is not recognized as an internal or external command, operable program or batch file.
Press any key to continue. . .
rsxdalv commented 1 day ago

This part baffles me - 'DOSKEY' is not recognized as an internal command or external, an operable program or a batch file. It really seems like there's something unorthodox about this Windows system that does not have many tools.

This error should not happen, the installer is made to prevent it from happening. ImportError: DLL load failed while importing _imaging: Não foi possível encontrar o módulo especificado.

Specifically, the installer installs pillow==10.3.0 to prevent it from happening.

I'm leaning towards recommending Docker.

Rodoxdexts commented 1 day ago

This part baffles me - 'DOSKEY' is not recognized as an internal command or external, an operable program or a batch file. It really seems like there's something unorthodox about this Windows system that does not have many tools.

This error should not happen, the installer is made to prevent it from happening. ImportError: DLL load failed while importing _imaging: Não foi possível encontrar o módulo especificado.

Specifically, the installer installs pillow==10.3.0 to prevent it from happening.

Estou inclinado a recomendar o Docker.

I'll test docker and get back to you later, thanks for the tip