erew123 / alltalk_tts

AllTalk is based on the Coqui TTS engine, similar to the Coqui_tts extension for Text generation webUI, however supports a variety of advanced features, such as a settings page, low VRAM support, DeepSpeed, narrator, model finetuning, custom models, wav file maintenance. It can also be used with 3rd Party software via JSON calls.
GNU Affero General Public License v3.0
864 stars 98 forks source link

Torch error on text-generation-webui 'Apply requirements' while running at_setup.bat #313

Closed Nelmynce closed 1 month ago

Nelmynce commented 1 month ago

Off the top, my apologies if this is something really basic and I'm just not understanding it but I've checked everything I can think of and I'm not sure why I'm getting the following error.

I'm trying to install alltalk as an extension in text-generation-webui. Installing the former package went off without a hitch. Once that was done I started up the environment by running cmd_windows.bat in the text-generation webui folder via the command console:

image

When I run at_setup.bat from within extensions/alltalk_tts with the environment running, it runs just fine. I pick the first option to Apply/re-apply the requirements for text-generation-webui and then I get the following error:

ERROR: Invalid requirement: 'torch>=2.1.0+cu118': Local version label can only be used with == or != operators torch>=2.1.0+cu118



![image](https://github.com/user-attachments/assets/9e059a44-7350-438a-9bc7-525f8017e250)

I generated a diagnostics report from within at_setup which tells me I'm running torch 2.2.2+cu121 which should satisfy this requirement; however if I'm understanding the error correctly it actually looks like it's spitting out some sort of syntax error and that it won't accept a '>=' operator.  Looking into the requirements_texgen.txt file there are several lines before this one that use that same operator and it's not throwing an error, so I'm stumped.

Here's the log file I generated:
[diagnostics.log](https://github.com/user-attachments/files/16620417/diagnostics.log)

I ran an update on all the requirements for text-generation-webui as well as the repository itself even though it was a fresh install just to be sure, but that didn't make any difference.  Both text-generation-webui and alltalk were installed for the first time today; however I did try to install the standalone version of alltalk first before realizing that I wanted the webui, so maybe that caused some conflicts when I deleted the install.

Any help would be appreciated!
erew123 commented 1 month ago

Hi @Nelmynce

Annoyingly they have recently changed PIP (the Python package installer) and how it handles the version control. I've been knowing this day would come when TGWUI bumps to using the newer version of PIP.

Thankfully its been a pretty easy fix this time!

All you will need to do it go into the alltalk_tts folder and git pull to get the changes. After that, go through the install as you were doing and it should process through fine (I tested the whole process myself and had no issues).

Thanks