oobabooga / text-generation-webui

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

Cannot install from scratch: oneclick script always considers that initialization is done. #6366

Open joo0ne opened 1 month ago

joo0ne commented 1 month ago

Describe the bug

During a fresh installation, the initialization step is skipped and the server is launched immediately. There is no request for the video card type and no dependencies are installed. At the same time, errors appear due to missing packages: first yaml, then rich, etc.

To bypass this error, it is enough to replace the condition in the script with True the first time: file one_click.py line 472

if True: #not is_installed():

After that, the installation will proceed normally and you can return the old condition.

It seems to me that the error is that the installation stage is determined by the presence of the environment directory.

Is there an existing issue for this?

Reproduction

clone and run start_linux.sh

Screenshot

No response

Logs

ModuleNotFoundError: No module named 'yaml'

System Info

Linux home 6.10.6-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.10.6-1 (2024-08-19) x86_64 GNU/Linux
PyroChiliarch commented 5 days ago

I had this same issue, looks like it was caused by python errors when installing modules. I was able to fix it by running running the update script multiple times until everything installed

2024-10-13_22-36