[GH-ISSUE #43] [BUG] Error: Failed to activate Conda environment: xtts #17

Open
opened 2026-10-15 18:06:13 +00:00 by bsakaguchi · 4 comments
Owner

Originally created by @elouannd on GitHub (Apr 3, 2024).
Original GitHub issue: https://github.com/SillyTavern/SillyTavern-Launcher/issues/43

Environment

🍎 Mac

System

Sonoma 14.3.1 (23D60)

Describe the problem

When installing ST+Extra+XTTS I'm hit by an error when the script want to activate the conda env for xtts. I've reinstalled Miniconda, Anaconda. Script work great when just installing ST or Extra.
Heres the entire terminal output.



/ Installer
-------------------------------------
What would you like to do?
1. Install SillyTavern + Extras + XTTS
2. Install SillyTavern
3. Install Extras
4. Install XTTS
5. Support
0. Exit
Choose Your Destiny (default is 1): 1














/ Installer / SillyTavern + Extras + XTTS
---------------------------------------------------------------
What is your GPU?
1. NVIDIA
2. AMD
3. None (CPU-only mode)
0. Cancel install
./install.sh: line 310: lspci: command not found

╔════ GPU INFO ═════════════════════════════════════════════════════════════╗
║                                                                           ║
║*                                                                          ║
║                                                                           ║
╚═══════════════════════════════════════════════════════════════════════════╝

Enter number corresponding to your GPU: 3
[10:05:11] [INFO] Using CPU-only mode
[10:05:11] [INFO] Installing SillyTavern + Extras + XTTS
This may take a while. Please be patient.
[10:05:11] [INFO] Installing SillyTavern...
fatal: destination path 'SillyTavern' already exists and is not an empty directory.
[10:05:11] [INFO] SillyTavern installed successfully.
[10:05:11] [INFO] Installing Extras...
[10:05:11] [INFO] Cloning SillyTavern-extras repository...
fatal: destination path 'SillyTavern-extras' already exists and is not an empty directory.
[10:05:11] [INFO] Installing XTTS...
[10:05:11] [INFO] Activating Miniconda environment...
./install.sh: line 381: /bin/activate: No such file or directory
[10:05:11] [INFO] Creating Conda environment: xtts
Channels:
 - defaults
Platform: osx-arm64
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /opt/homebrew/Caskroom/miniconda/base/envs/xtts

  added / updated specs:
    - git
    - python=3.10


The following NEW packages will be INSTALLED:

  bzip2              pkgs/main/osx-arm64::bzip2-1.0.8-h80987f9_5 
  c-ares             pkgs/main/osx-arm64::c-ares-1.19.1-h80987f9_0 
  ca-certificates    pkgs/main/osx-arm64::ca-certificates-2024.3.11-hca03da5_0 
  curl               pkgs/main/osx-arm64::curl-8.5.0-h02f6b3c_0 
  expat              pkgs/main/osx-arm64::expat-2.5.0-h313beb8_0 
  gdbm               pkgs/main/osx-arm64::gdbm-1.18-h8fe7016_4 
  gettext            pkgs/main/osx-arm64::gettext-0.21.0-h13f89a0_1 
  git                pkgs/main/osx-arm64::git-2.40.1-pl5340h6cf2078_1 
  icu                pkgs/main/osx-arm64::icu-73.1-h313beb8_0 
  krb5               pkgs/main/osx-arm64::krb5-1.20.1-hf3e1bf2_1 
  libcurl            pkgs/main/osx-arm64::libcurl-8.5.0-h3e2b118_0 
  libcxx             pkgs/main/osx-arm64::libcxx-14.0.6-h848a8c0_0 
  libedit            pkgs/main/osx-arm64::libedit-3.1.20230828-h80987f9_0 
  libev              pkgs/main/osx-arm64::libev-4.33-h1a28f6b_1 
  libffi             pkgs/main/osx-arm64::libffi-3.4.4-hca03da5_0 
  libiconv           pkgs/main/osx-arm64::libiconv-1.16-h1a28f6b_2 
  libnghttp2         pkgs/main/osx-arm64::libnghttp2-1.57.0-h62f6fdd_0 
  libssh2            pkgs/main/osx-arm64::libssh2-1.10.0-h02f6b3c_2 
  libxml2            pkgs/main/osx-arm64::libxml2-2.10.4-h0dcf63f_1 
  llvm-openmp        pkgs/main/osx-arm64::llvm-openmp-14.0.6-hc6e5704_0 
  ncurses            pkgs/main/osx-arm64::ncurses-6.4-h313beb8_0 
  openssl            pkgs/main/osx-arm64::openssl-3.0.13-h1a28f6b_0 
  pcre2              pkgs/main/osx-arm64::pcre2-10.42-hb066dcc_0 
  perl               pkgs/main/osx-arm64::perl-5.34.0-h1a28f6b_2 
  pip                pkgs/main/osx-arm64::pip-23.3.1-py310hca03da5_0 
  python             pkgs/main/osx-arm64::python-3.10.14-hb885b13_0 
  readline           pkgs/main/osx-arm64::readline-8.2-h1a28f6b_0 
  setuptools         pkgs/main/osx-arm64::setuptools-68.2.2-py310hca03da5_0 
  sqlite             pkgs/main/osx-arm64::sqlite-3.41.2-h80987f9_0 
  tk                 pkgs/main/osx-arm64::tk-8.6.12-hb8d0fd4_0 
  tzdata             pkgs/main/noarch::tzdata-2024a-h04d1e81_0 
  wheel              pkgs/main/osx-arm64::wheel-0.41.2-py310hca03da5_0 
  xz                 pkgs/main/osx-arm64::xz-5.4.6-h80987f9_0 
  zlib               pkgs/main/osx-arm64::zlib-1.2.13-h5a0b063_0 



Downloading and Extracting Packages:

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
#     $ conda activate xtts
#
# To deactivate an active environment, use
#
#     $ conda deactivate

[10:05:21] [INFO] Activating Conda environment: xtts
./install.sh: line 389: activate: No such file or directory
[10:05:21] [ERROR] Failed to activate Conda environment: xtts
[10:05:21] [INFO] Press Enter to try again otherwise close the installer and restart.
Press Enter to try again...

Additional info

No response

Please tick the boxes

Originally created by @elouannd on GitHub (Apr 3, 2024). Original GitHub issue: https://github.com/SillyTavern/SillyTavern-Launcher/issues/43 ### Environment 🍎 Mac ### System Sonoma 14.3.1 (23D60) ### Describe the problem When installing ST+Extra+XTTS I'm hit by an error when the script want to activate the conda env for xtts. I've reinstalled Miniconda, Anaconda. Script work great when just installing ST or Extra. Heres the entire terminal output. ``` / Installer ------------------------------------- What would you like to do? 1. Install SillyTavern + Extras + XTTS 2. Install SillyTavern 3. Install Extras 4. Install XTTS 5. Support 0. Exit Choose Your Destiny (default is 1): 1 / Installer / SillyTavern + Extras + XTTS --------------------------------------------------------------- What is your GPU? 1. NVIDIA 2. AMD 3. None (CPU-only mode) 0. Cancel install ./install.sh: line 310: lspci: command not found ╔════ GPU INFO ═════════════════════════════════════════════════════════════╗ ║ ║ ║* ║ ║ ║ ╚═══════════════════════════════════════════════════════════════════════════╝ Enter number corresponding to your GPU: 3 [10:05:11] [INFO] Using CPU-only mode [10:05:11] [INFO] Installing SillyTavern + Extras + XTTS This may take a while. Please be patient. [10:05:11] [INFO] Installing SillyTavern... fatal: destination path 'SillyTavern' already exists and is not an empty directory. [10:05:11] [INFO] SillyTavern installed successfully. [10:05:11] [INFO] Installing Extras... [10:05:11] [INFO] Cloning SillyTavern-extras repository... fatal: destination path 'SillyTavern-extras' already exists and is not an empty directory. [10:05:11] [INFO] Installing XTTS... [10:05:11] [INFO] Activating Miniconda environment... ./install.sh: line 381: /bin/activate: No such file or directory [10:05:11] [INFO] Creating Conda environment: xtts Channels: - defaults Platform: osx-arm64 Collecting package metadata (repodata.json): done Solving environment: done ## Package Plan ## environment location: /opt/homebrew/Caskroom/miniconda/base/envs/xtts added / updated specs: - git - python=3.10 The following NEW packages will be INSTALLED: bzip2 pkgs/main/osx-arm64::bzip2-1.0.8-h80987f9_5 c-ares pkgs/main/osx-arm64::c-ares-1.19.1-h80987f9_0 ca-certificates pkgs/main/osx-arm64::ca-certificates-2024.3.11-hca03da5_0 curl pkgs/main/osx-arm64::curl-8.5.0-h02f6b3c_0 expat pkgs/main/osx-arm64::expat-2.5.0-h313beb8_0 gdbm pkgs/main/osx-arm64::gdbm-1.18-h8fe7016_4 gettext pkgs/main/osx-arm64::gettext-0.21.0-h13f89a0_1 git pkgs/main/osx-arm64::git-2.40.1-pl5340h6cf2078_1 icu pkgs/main/osx-arm64::icu-73.1-h313beb8_0 krb5 pkgs/main/osx-arm64::krb5-1.20.1-hf3e1bf2_1 libcurl pkgs/main/osx-arm64::libcurl-8.5.0-h3e2b118_0 libcxx pkgs/main/osx-arm64::libcxx-14.0.6-h848a8c0_0 libedit pkgs/main/osx-arm64::libedit-3.1.20230828-h80987f9_0 libev pkgs/main/osx-arm64::libev-4.33-h1a28f6b_1 libffi pkgs/main/osx-arm64::libffi-3.4.4-hca03da5_0 libiconv pkgs/main/osx-arm64::libiconv-1.16-h1a28f6b_2 libnghttp2 pkgs/main/osx-arm64::libnghttp2-1.57.0-h62f6fdd_0 libssh2 pkgs/main/osx-arm64::libssh2-1.10.0-h02f6b3c_2 libxml2 pkgs/main/osx-arm64::libxml2-2.10.4-h0dcf63f_1 llvm-openmp pkgs/main/osx-arm64::llvm-openmp-14.0.6-hc6e5704_0 ncurses pkgs/main/osx-arm64::ncurses-6.4-h313beb8_0 openssl pkgs/main/osx-arm64::openssl-3.0.13-h1a28f6b_0 pcre2 pkgs/main/osx-arm64::pcre2-10.42-hb066dcc_0 perl pkgs/main/osx-arm64::perl-5.34.0-h1a28f6b_2 pip pkgs/main/osx-arm64::pip-23.3.1-py310hca03da5_0 python pkgs/main/osx-arm64::python-3.10.14-hb885b13_0 readline pkgs/main/osx-arm64::readline-8.2-h1a28f6b_0 setuptools pkgs/main/osx-arm64::setuptools-68.2.2-py310hca03da5_0 sqlite pkgs/main/osx-arm64::sqlite-3.41.2-h80987f9_0 tk pkgs/main/osx-arm64::tk-8.6.12-hb8d0fd4_0 tzdata pkgs/main/noarch::tzdata-2024a-h04d1e81_0 wheel pkgs/main/osx-arm64::wheel-0.41.2-py310hca03da5_0 xz pkgs/main/osx-arm64::xz-5.4.6-h80987f9_0 zlib pkgs/main/osx-arm64::zlib-1.2.13-h5a0b063_0 Downloading and Extracting Packages: Preparing transaction: done Verifying transaction: done Executing transaction: done # # To activate this environment, use # # $ conda activate xtts # # To deactivate an active environment, use # # $ conda deactivate [10:05:21] [INFO] Activating Conda environment: xtts ./install.sh: line 389: activate: No such file or directory [10:05:21] [ERROR] Failed to activate Conda environment: xtts [10:05:21] [INFO] Press Enter to try again otherwise close the installer and restart. Press Enter to try again... ``` ### Additional info _No response_ ### Please tick the boxes - [X] I have explained the issue clearly, and I included all relevant info - [X] I have checked that this [issue hasn't already been raised](https://github.com/SillyTavern/SillyTavern/issues?q=is%3Aissue) - [X] I have checked the [docs](https://docs.sillytavern.app/) ![important](https://img.shields.io/badge/Important!-F6094E)
Author
Owner

@djr255 commented on GitHub (Apr 10, 2024):

I have the same issue. 2019 Macbook Pro. Intel CPU, AMD GPU.

<!-- gh-comment-id:2047742832 --> @djr255 commented on GitHub (Apr 10, 2024): I have the same issue. 2019 Macbook Pro. Intel CPU, AMD GPU.
Author
Owner

@Pixelycia commented on GitHub (Apr 20, 2024):

I managed to fix it by updating install.sh file. First of all I have miniconda installed at the path ~/miniconda3. Then:

  1. chmod +x ~/miniconda3/etc/profile.d/conda.sh
  2. Replace in file install.sh starting with line around 379
# Activate the Miniconda installation
log_message "INFO" "Activating Miniconda environment..."
source "$miniconda_path/bin/activate"

# Create a Conda environment named xtts
log_message "INFO" "Creating Conda environment: xtts"
conda create -n xtts python=3.10 git -y

# Activate the xtts environment
log_message "INFO" "Activating Conda environment: xtts"
source activate xtts

with

# Activate the Miniconda installation
log_message "INFO" "Activating Miniconda environment..."
source ~/miniconda3/etc/profile.d/conda.sh

# Create a Conda environment named xtts
log_message "INFO" "Creating Conda environment: xtts"
conda create -n xtts python=3.10 git -y

# Activate the xtts environment
log_message "INFO" "Activating Conda environment: xtts"
conda activate xtts

Run as usual.

<!-- gh-comment-id:2067813600 --> @Pixelycia commented on GitHub (Apr 20, 2024): I managed to fix it by updating `install.sh` file. First of all I have miniconda installed at the path `~/miniconda3`. Then: 1. `chmod +x ~/miniconda3/etc/profile.d/conda.sh` 2. Replace in file `install.sh` starting with line around 379 ``` # Activate the Miniconda installation log_message "INFO" "Activating Miniconda environment..." source "$miniconda_path/bin/activate" # Create a Conda environment named xtts log_message "INFO" "Creating Conda environment: xtts" conda create -n xtts python=3.10 git -y # Activate the xtts environment log_message "INFO" "Activating Conda environment: xtts" source activate xtts ``` with ``` # Activate the Miniconda installation log_message "INFO" "Activating Miniconda environment..." source ~/miniconda3/etc/profile.d/conda.sh # Create a Conda environment named xtts log_message "INFO" "Creating Conda environment: xtts" conda create -n xtts python=3.10 git -y # Activate the xtts environment log_message "INFO" "Activating Conda environment: xtts" conda activate xtts ``` Run as usual.
Author
Owner

@reydeljuego12345 commented on GitHub (Oct 16, 2024):

For arch linux user that have this problem, follow this guide, but setting the path of conda, if you installed with AUR, in /opt/miniconda3/bin/activate

I managed to fix it by updating install.sh file. First of all I have miniconda installed at the path ~/miniconda3. Then:

1. `chmod +x ~/miniconda3/etc/profile.d/conda.sh`

2. Replace in file `install.sh` starting with line around 379
# Activate the Miniconda installation
log_message "INFO" "Activating Miniconda environment..."
source "$miniconda_path/bin/activate"

# Create a Conda environment named xtts
log_message "INFO" "Creating Conda environment: xtts"
conda create -n xtts python=3.10 git -y

# Activate the xtts environment
log_message "INFO" "Activating Conda environment: xtts"
source activate xtts

with

# Activate the Miniconda installation
log_message "INFO" "Activating Miniconda environment..."
source ~/miniconda3/etc/profile.d/conda.sh

# Create a Conda environment named xtts
log_message "INFO" "Creating Conda environment: xtts"
conda create -n xtts python=3.10 git -y

# Activate the xtts environment
log_message "INFO" "Activating Conda environment: xtts"
conda activate xtts

Run as usual.

<!-- gh-comment-id:2417223004 --> @reydeljuego12345 commented on GitHub (Oct 16, 2024): For arch linux user that have this problem, follow this guide, but setting the path of conda, if you installed with AUR, in /opt/miniconda3/bin/activate > I managed to fix it by updating `install.sh` file. First of all I have miniconda installed at the path `~/miniconda3`. Then: > > 1. `chmod +x ~/miniconda3/etc/profile.d/conda.sh` > > 2. Replace in file `install.sh` starting with line around 379 > > > ``` > # Activate the Miniconda installation > log_message "INFO" "Activating Miniconda environment..." > source "$miniconda_path/bin/activate" > > # Create a Conda environment named xtts > log_message "INFO" "Creating Conda environment: xtts" > conda create -n xtts python=3.10 git -y > > # Activate the xtts environment > log_message "INFO" "Activating Conda environment: xtts" > source activate xtts > ``` > > with > > ``` > # Activate the Miniconda installation > log_message "INFO" "Activating Miniconda environment..." > source ~/miniconda3/etc/profile.d/conda.sh > > # Create a Conda environment named xtts > log_message "INFO" "Creating Conda environment: xtts" > conda create -n xtts python=3.10 git -y > > # Activate the xtts environment > log_message "INFO" "Activating Conda environment: xtts" > conda activate xtts > ``` > > Run as usual.
Author
Owner

@drivencompassion commented on GitHub (Jan 30, 2025):

/ Installer / SillyTavern + Extras + XTTS

What is your GPU?

  1. None (CPU-only mode)

MacOS M4 MAX has a custom GPU, not AMD or NVIDIA

[INFO] Press Enter to try again otherwise close the installer and restart.
Press Enter to try again...
[19:18:05] [INFO] Installing SillyTavern + Extras + XTTS
This may take a while. Please be patient.
[19:18:05] [INFO] Installing SillyTavern...
fatal: destination path 'SillyTavern' already exists and is not an empty directory.
[19:18:05] [INFO] SillyTavern installed successfully.
[19:18:05] [INFO] Installing Extras...
[19:18:05] [INFO] Cloning SillyTavern-extras repository...
fatal: destination path 'SillyTavern-extras' already exists and is not an empty directory.
[19:18:05] [INFO] Installing XTTS...
[19:18:05] [INFO] Activating Miniconda environment...
./install.sh: line 409: /bin/activate: No such file or directory
[19:18:05] [INFO] Creating Conda environment: xtts
./install.sh: line 413: conda: command not found
[19:18:05] [INFO] Activating Conda environment: xtts
./install.sh: line 417: activate: No such file or directory
[19:18:05] [ERROR] Failed to activate Conda environment: xtts

<!-- gh-comment-id:2623240025 --> @drivencompassion commented on GitHub (Jan 30, 2025): / Installer / SillyTavern + Extras + XTTS --------------------------------------------------------------- What is your GPU? 3. None (CPU-only mode) MacOS M4 MAX has a custom GPU, not AMD or NVIDIA [INFO] Press Enter to try again otherwise close the installer and restart. Press Enter to try again... [19:18:05] [INFO] Installing SillyTavern + Extras + XTTS This may take a while. Please be patient. [19:18:05] [INFO] Installing SillyTavern... fatal: destination path 'SillyTavern' already exists and is not an empty directory. [19:18:05] [INFO] SillyTavern installed successfully. [19:18:05] [INFO] Installing Extras... [19:18:05] [INFO] Cloning SillyTavern-extras repository... fatal: destination path 'SillyTavern-extras' already exists and is not an empty directory. [19:18:05] [INFO] Installing XTTS... [19:18:05] [INFO] Activating Miniconda environment... ./install.sh: line 409: /bin/activate: No such file or directory [19:18:05] [INFO] Creating Conda environment: xtts ./install.sh: line 413: conda: command not found [19:18:05] [INFO] Activating Conda environment: xtts ./install.sh: line 417: activate: No such file or directory [19:18:05] [ERROR] Failed to activate Conda environment: xtts
Sign in to join this conversation.
No description provided.