deffcolony / ai-toolbox

AI-Toolbox provides a collection of automation scripts and tools to streamline your AI workflows.
GNU Affero General Public License v3.0
48 stars 4 forks source link

[BUG] SillyTavern - extras does not work or reinstall properly #6

Open cyberkoala opened 12 months ago

cyberkoala commented 12 months ago

Environment

Windows

Describe the problem

So i've gone down this path three times, behavior was identical each time. It probably is something off in my environment, but the effect is pretty annoying as these things go, as it ultimately wipes my entire install.

Install sillytavern plus extras via the bat. Goes through the apparent install, There's a couple errors i see but it looks like it installs everything it has winget errors for. I understand the numpy issue, but figure that if i'm not using TTS it should still at least launch the extras server for anything else.

Failed in attempting to update the source: winget
Failed when searching source: winget
An unexpected error occurred while executing the command:
0x8a15000f : Data required by the source is missing
[ 9:10:58.48] [INFO] Installing Microsoft.VCRedist.2015+.x86...
Failed in attempting to update the source: winget
Failed when searching source: winget
An unexpected error occurred while executing the command:
0x8a15000f : Data required by the source is missing

No packages were found among the working sources.
[ 9:11:02.11] [INFO] Installing vs_BuildTools...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 3860k  100 3860k    0     0  3423k      0  0:00:01  0:00:01 --:--:-- 3423k
[ 9:11:03.45] [INFO] Installing Miniconda...
Failed in attempting to update the source: winget
Failed when searching source: winget
An unexpected error occurred while executing the command:
0x8a15000f : Data required by the source is missing

[ 9:11:07.24] [INFO] Activating Conda environment extras...
'conda' is not recognized as an internal or external command,
operable program or batch file.
[ 9:11:07.25] [ERROR] Failed to activate Conda environment extras.

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
tts 0.21.3 requires numpy==1.22.0; python_version <= "3.10", but you have numpy 1.26.2 which is incompatible.

[ 9:19:40.48] [ERROR] Failed to activate Conda environment extras.

[ 9:19:40.48] [ERROR] Failed to activate Conda environment extras.
'stall' is not recognized as an internal or external command,
operable program or batch file.
'ate.bat"' is not recognized as an internal or external command,
operable program or batch file.
'XTTS' is not recognized as an internal or external command,
operable program or batch file.
'e_bgtimeresetblue_fg_strongreset' is not recognized as an internal or external command,
operable program or batch file.
'.bat"' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the batch label specified - install_st_extras
'-------' is not recognized as an internal or external command,
operable program or batch file.
'' is not recognized as an internal or external command,
operable program or batch file.
'fg_strongresetgreen_fg_strongreset' is not recognized as an internal or external command,
operable program or batch file.
'loning' is not recognized as an internal or external command,
operable program or batch file.
'id' is not recognized as an internal or external command,
operable program or batch file.
'blue_fg_strongreset' is not recognized as an internal or external command,
operable program or batch file.
'e' is not recognized as an internal or external command,
operable program or batch file.
'p' is not recognized as an internal or external command,
operable program or batch file.
'timeresetblue_fg_strongreset' is not recognized as an internal or external command,
operable program or batch file.
'xtras' is not recognized as an internal or external command,
operable program or batch file.
[ 9:19:40.57] [ERROR] Failed to activate Conda environment extras.
'stall' is not recognized as an internal or external command,
operable program or batch file.
'ate.bat"' is not recognized as an internal or external command,
operable program or batch file.
'XTTS' is not recognized as an internal or external command,
operable program or batch file.
'e_bgtimeresetblue_fg_strongreset' is not recognized as an internal or external command,
operable program or batch file.
'.bat"' is not recognized as an internal or external command,
operable program or batch file.

ArgumentError: activate does not accept more than one argument:
['the', 'xtts', 'environment']

Launch ST+ extras. three command windows launch, ST is useable. the extras API is not. In it's cmd window, it's giving me the following error: in the st window

EnvironmentNameNotFound: Could not find conda environment: extras You can list all discoverable environments with conda info --envs. and in the extra's CMD window: Traceback (most recent call last): File "C:\Users\corey\Downloads\sillytavern\SillyTavern-extras\server.py", line 2, in from flask import ( ModuleNotFoundError: No module named 'flask'

So this doesn't seem related to any of the error messages in the install log Not really sure what else i can do to correct the error, i go back to the st-launch toolbox, and there's an option to just 'reinstall extras'. I select that. It runs, but encounters an error- and apparently removes the entire sillytavern install, not just the extras, and then crashes.


-------------------------------------
What would you like to do?
1. Install 7-Zip
2. Install FFmpeg
3. Install Node.js
4. Edit Environment
5. Edit Extras Modules
6. Reinstall SillyTavern
7. Reinstall Extras
8. Uninstall SillyTavern + Extras
9. Back to Home
Choose Your Destiny: 7
'ata' is not recognized as an internal or external command,
operable program or batch file.
'/N]' is not recognized as an internal or external command,
operable program or batch file.
'SillyTavern-extras.git' is not recognized as an internal or external command,
operable program or batch file.
[ 9:31:22.27] [INFO] Installing Extras...
'ease' is not recognized as an internal or external command,
operable program or batch file.
'--add' is not recognized as an internal or external command,
operable program or batch file.
'Miniconda' is not recognized as an internal or external command,
operable program or batch file.
'ment' is not recognized as an internal or external command,
operable program or batch file.
'e' is not recognized as an internal or external command,
operable program or batch file.
'from' is not recognized as an internal or external command,
operable program or batch file.
'quirements' is not recognized as an internal or external command,
operable program or batch file.
'te' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the path specified.
's' is not recognized as an internal or external command,
operable program or batch file.
'api-server' is not recognized as an internal or external command,
operable program or batch file.
'g_strongreset' is not recognized as an internal or external command,
operable program or batch file.
'a' is not recognized as an internal or external command,
operable program or batch file.
'before' is not recognized as an internal or external command,
operable program or batch file.
'XTTS' is not recognized as an internal or external command,
operable program or batch file.
'═══════════════════════════════════════════════════════════════════════════╝' is not recognized as an internal or external command,
operable program or batch file.

Expected behavior: if a conflict or missing package keep extras from installing, provide more clear feedback to the user at the end of the process. If this is due to the numpy package, maybe a break there saying 'before you move forward, please downgrade to'

If needing to reinstall just the extras package- it should not delete the entire directory, or should at least warn users that these options are destructive to existing data/installs.

Additional info

No response

Please tick the boxes

AlexVeeBee commented 12 months ago

What windows version are you running on? and what command line window are you using? using the CMD or the Terminal App

cyberkoala commented 12 months ago

Sorry about that. Windows 10, build 19045. Using CMD.

AlexVeeBee commented 12 months ago

can you try using the latest terminal app? https://apps.microsoft.com/detail/9N0DX20HK701?hl=en-US&gl=US and get the latest launcher update from this repo

cyberkoala commented 12 months ago

Wasn't aware there was a terminal app out there, learn something new every day.

However, the behavior seems the same. Generates the same errors, reinstall for extra wipes both ST and extras and then crashes.

deffcolony commented 12 months ago

@cyberkoala It's unusual that you get this behavior. For instance, when I installed this brand-new on a Windows 11 machine, there was no issue. Do you have a discord account where we can reach you more easy? so you can share screenshots and progress more directly or join at

https://discord.gg/sillytavern

cyberkoala commented 12 months ago

I played with this some more- i ended up walking through the manual ST iinstall process, and I think it's a permissions issue. Lost the terminal output, but running through the install requirements by hand, when trying to install flask and it's prerequists, there's a script file it errored out at, something it appeared to be trying to do in python's install folder. Launching Conda with admin privilege's allowed flask to install. Not sure how we ended up there, my understanding is the whole point of the conda env is to keep from requiring permissions/package conflicts.

This explains why it doesn't install from the script, but not sure why the reinstall bugged out the way it does. Will hit you up in discord when I have more time

deffcolony commented 10 months ago

@cyberkoala Since the launcher has received several updates in recent months, please inform me if you are still experiencing this issue. Otherwise, I will consider it resolved. Please update the launcher to the latest version and let me know if the installation progress for extras goes well now.