oobabooga / text-generation-webui

A Gradio web UI for Large Language Models.
GNU Affero General Public License v3.0
39.18k stars 5.17k forks source link

KeyError: 'CONDA_DEFAULT_ENV' #1989

Closed luphoria closed 1 year ago

luphoria commented 1 year ago

Describe the bug

Just tried to run oobabooga from the Linux setup script, using Arch Linux, ran into this error on python webui.py.

Is there an existing issue for this?

Reproduction

Screenshot

No response

Logs

~/llama/oobabooga_linux via  v3.11.3 took 10s  python webui.py
Traceback (most recent call last):
  File "/home/trent/llama/oobabooga_linux/webui.py", line 176, in <module>
    check_env()
  File "/home/trent/llama/oobabooga_linux/webui.py", line 45, in check_env
    if os.environ["CONDA_DEFAULT_ENV"] == "base":
       ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
  File "<frozen os>", line 679, in __getitem__
KeyError: 'CONDA_DEFAULT_ENV'

System Info

#####           trent@bread
       #######          -----------
       ##O#O##          OS: instantOS x86_64
       #######          Host: Jupiter 1
     ###########        Kernel: 6.1.27-1-lts
    #############       Uptime: 2 days, 19 hours, 49 mins
   ###############      Packages: 1238 (pacman)
   ################     Shell: zsh 5.9
  #################     Resolution: 1920x1080
#####################   DE: instantwm
#####################   WM: dwm
  #################     Theme: Qogir [GTK2/3]
                        Icons: Papirus [GTK2/3]
                        Terminal: tmux
                        CPU: AMD Custom APU 0405 (8) @ 2.800GHz
                        GPU: AMD ATI AMD Custom GPU 0405
                        Memory: 2575MiB / 14830MiB
cornpo commented 1 year ago

Install anaconda or monoconda. Create and activate a conda environment. Install the python requirements.

But, you don't have enough RAM probably.

luphoria commented 1 year ago

But, you don't have enough RAM probably.

I can run llama.cpp with no problems. Thank you though!

github-actions[bot] commented 1 year ago

This issue has been closed due to inactivity for 30 days. If you believe it is still relevant, please leave a comment below.