Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Error: Failed to activate Conda environment: xtts #43

Open
3 tasks done
elouannd opened this issue Apr 3, 2024 · 3 comments
Open
3 tasks done

[BUG] Error: Failed to activate Conda environment: xtts #43

elouannd opened this issue Apr 3, 2024 · 3 comments
Labels
🐛Bug [ISSUE] Ticket describing something that isn't working 🍎 Mac

Comments

@elouannd
Copy link

elouannd commented Apr 3, 2024

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

@elouannd elouannd added the 🐛Bug [ISSUE] Ticket describing something that isn't working label Apr 3, 2024
@djr255
Copy link

djr255 commented Apr 10, 2024

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

@Pixelycia
Copy link

Pixelycia commented 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.

@reydeljuego12345
Copy link

reydeljuego12345 commented 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛Bug [ISSUE] Ticket describing something that isn't working 🍎 Mac
Projects
None yet
Development

No branches or pull requests

4 participants