mirror of
https://github.com/SillyTavern/SillyTavern-Launcher.git
synced 2026-11-05 00:27:39 +00:00
[GH-ISSUE #28] Variable CONDA_PATH is uninitialized #4
Labels
No labels
🚏 Awaiting User Response
🐛Bug
🐛Bug
🐛Bug
🦄 Feature Request
✅ Fixed
✅ Fixed
👩💻 Good First Issue
‼️ High Priority
🧑💻 In Progress
🐧 Linux
🐧 Linux
💤 Low Priority
🍎 Mac
❕ Medium Priority
pull-request
🪟 Windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
SillyTavern/SillyTavern-Launcher#4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ostr00000 on GitHub (Dec 28, 2023).
Original GitHub issue: https://github.com/SillyTavern/SillyTavern-Launcher/issues/28
Originally assigned to: @Frityet on GitHub.
OS: Linux (Ubuntu 23.10)
If variable
CONDA_PATHis set, then it is checked if path is (correct)[github.com/SillyTavern/SillyTavern-Launcher@8ec79f0783/install.sh (L82)].But if the variable is not set, then there is an error when installing conda. The first error comes from miniconda installer. The error complain about missing argument for
-p.As a workaround, I changed code to this:
I think that another bad thing is not aborting when something goes wrong. For example, an error when installing
condadoes not stop further processing, which results in another errors. I propose settingset -eflag. Or at least manually check errors. This is important especially when a console is cleaned, because then no error is seen by the user. WARNING: there will be more errors from command likegit(for already cloned repos),mkdir(xttsfolder is created at two places), etc.After successful
condainstallation, the next error isminiconda_path. Probably this should be changed toCONDA_PATH. Maybe this is related tolauncher.sh, but the docs say thatinstall.shscript should be run first.Also, as far as I know
gitremember executable flag, so maybe these permissions should be added to git instead of explicitly in the run command (readme:chmod +x install.sh && ./install.sh). Actually,install.shscript has already this permission, butlauncher.shis missing that.@Frityet commented on GitHub (Jan 1, 2024):
Thanks for the info! I will debug
@deffcolony commented on GitHub (Mar 28, 2024):
@ostr00000 Please let me know if you are still encountering any issues with the install.sh script. There have been several updates to the script in recent months, including fixes for the installation process of Miniconda, among other improvements.
@ostr00000 commented on GitHub (Mar 28, 2024):
installation
I installed a new, clean environment using commands in README - the installation works perfectly, successfully finished. 🎉
post installation
I have one simple error:
When installation is finished, there is a question:
Start the launcher now? [Y/n]. I answeredyand surprisingly nothing happened. The installator clears the screen, so no error is available, but I have some "magic" script, that redirect all terminal output to a log file, so I searched there for this error. The error is:chmod: cannot access 'launcher.sh': No such file or directory(line in code).I believe
"$0"is./lanucher.sh, so"$(dirname "$0")"is.and executingcdchanges nothing.The current path at this point of program execution is invalid, because at https://github.com/SillyTavern/SillyTavern-Launcher/blob/main/install.sh#L467 we changed the current path.
I suggest using a global variable
script_path(declaration line).Also, please note that if user do not chose
Start the launcher now, there are still missing executive permissions forlauncher.sh(so the 4th point from this issue is not solved).launching
After fixing permissions and running launcher, I selected
1. Start SillyTavern, I got blink of terminal window - there is an error, but terminal is closing immediately, so it is hard to debug.I got
npmerror:npm ERR! Invalid comparator: npm:dry-uninstall-Updating npm to a newer version solved this problem.
I have a question: python and its dependencies are managed by conda, but what about
npm? Do I need to install it manually on the system? Is there a requirement for a specific version? I cannot find any info about it in docs.@deffcolony commented on GitHub (Mar 30, 2025):
@ostr00000 Okay once again please let me know if you are still encountering any issues with the install.sh script. Recently there was a massive update for the launcher that should have fixed the errors you experienced
@ostr00000 commented on GitHub (Mar 31, 2025):
I tested installation using commands from
README.md. There is no error -> ✅.Also, please note that I change my operating system to Fedora 41, so I am not able to reproduce original issue.