AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
142.44k stars 26.86k forks source link

Problem installing with python3 (python3.7) #781

Closed fire17 closed 2 years ago

fire17 commented 2 years ago

Hi there, I'm trying to install, passed a bunch of errors. now i'm at:

➜  stable-diffusion-webui git:(master) ✗ bash < webui.sh

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)                                                                                                
################################################################

################################################################
Running on magic user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Clone or update stable-diffusion-webui
################################################################
Already up to date.

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
Python 3.7.3 (default, Mar  9 2022, 03:38:16) 
[GCC 8.3.0]
Commit hash: 8d1d64f9a238272d7a166d21e25cf529c09b2ad5
Installing requirements for Web UI
Traceback (most recent call last):
  File "launch.py", line 116, in <module>
    run_pip(f"install -r {requirements_file}", "requirements for Web UI")
  File "launch.py", line 54, in run_pip
    return run(f'"{python}" -m pip {args} --prefer-binary', desc=f"Installing {desc}", errdesc=f"Couldn't install {desc}")
  File "launch.py", line 44, in run
    raise RuntimeError(message)
RuntimeError: Couldn't install requirements for Web UI.
Command: "/home/magic/wholesomegarden/stable-diffusion-webui/venv/bin/python3" -m pip install -r requirements_versions.txt --prefer-binary
Error code: 1
stdout: Collecting transformers==4.19.2
  Using cached transformers-4.19.2-py3-none-any.whl (4.2 MB)
Collecting diffusers==0.2.4
  Using cached diffusers-0.2.4-py3-none-any.whl (112 kB)
Collecting basicsr==1.3.5
  Using cached basicsr-1.3.5.tar.gz (161 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: gfpgan in ./venv/lib/python3.7/site-packages (from -r requirements_versions.txt (line 4)) (1.3.5)
Collecting gradio==3.3.1
  Using cached gradio-3.3.1-py3-none-any.whl (5.3 MB)

stderr: ERROR: Ignored the following versions that require a different python version: 1.22.0 Requires-Python >=3.8; 1.22.0rc1 Requires-Python >=3.8; 1.22.0rc2 Requires-Python >=3.8; 1.22.0rc3 Requires-Python >=3.8; 1.22.1 Requires-Python >=3.8; 1.22.2 Requires-Python >=3.8; 1.22.3 Requires-Python >=3.8; 1.22.4 Requires-Python >=3.8; 1.23.0 Requires-Python >=3.8; 1.23.0rc1 Requires-Python >=3.8; 1.23.0rc2 Requires-Python >=3.8; 1.23.0rc3 Requires-Python >=3.8; 1.23.1 Requires-Python >=3.8; 1.23.2 Requires-Python >=3.8; 1.23.3 Requires-Python >=3.8
ERROR: Could not find a version that satisfies the requirement numpy==1.23.3 (from versions: 1.3.0, 1.4.1, 1.5.0, 1.5.1, 1.6.0, 1.6.1, 1.6.2, 1.7.0, 1.7.1, 1.7.2, 1.8.0, 1.8.1, 1.8.2, 1.9.0, 1.9.1, 1.9.2, 1.9.3, 1.10.0.post2, 1.10.1, 1.10.2, 1.10.4, 1.11.0, 1.11.1, 1.11.2, 1.11.3, 1.12.0, 1.12.1, 1.13.0rc1, 1.13.0rc2, 1.13.0, 1.13.1, 1.13.3, 1.14.0rc1, 1.14.0, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.14.5, 1.14.6, 1.15.0rc1, 1.15.0rc2, 1.15.0, 1.15.1, 1.15.2, 1.15.3, 1.15.4, 1.16.0rc1, 1.16.0rc2, 1.16.0, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.16.6, 1.17.0rc1, 1.17.0rc2, 1.17.0, 1.17.1, 1.17.2, 1.17.3, 1.17.4, 1.17.5, 1.18.0rc1, 1.18.0, 1.18.1, 1.18.2, 1.18.3, 1.18.4, 1.18.5, 1.19.0rc1, 1.19.0rc2, 1.19.0, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.19.5, 1.20.0rc1, 1.20.0rc2, 1.20.0, 1.20.1, 1.20.2, 1.20.3, 1.21.0rc1, 1.21.0rc2, 1.21.0, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6)
ERROR: No matching distribution found for numpy==1.23.3
kiancn commented 2 years ago

Something tells me you have an outdated pip installation?

On Linux you can upgrade your pip-installation like this: pip install --upgrade pip

Maybe this helped 🤷

fire17 commented 2 years ago

Seems like this needs python3.8 or above, so ill try that in webui.sh changed python_cmd="python3" to python_cmd="python3.8"

overall things i had to edit to make this install (that were not mentioned in the installation guide)

+-----------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=============================================================================| | 0 N/A N/A 3537 G /usr/lib/xorg/Xorg 4MiB | +-----------------------------------------------------------------------------+


Now im faceing another error (w/ python3.8)

################################################################ Launching launch.py... ################################################################ Python 3.8.12 (default, Jun 9 2022, 12:18:24) [GCC 8.3.0] Commit hash: b5693699b8460008ca92544b42f6bc394078ee4d Installing k-diffusion Installing requirements for Web UI Traceback (most recent call last): File "launch.py", line 116, in run_pip(f"install -r {requirements_file}", "requirements for Web UI") File "launch.py", line 54, in run_pip return run(f'"{python}" -m pip {args} --prefer-binary --no-cache-dir', desc=f"Installing {desc}", errdesc=f"Couldn't install {desc}") File "launch.py", line 44, in run raise RuntimeError(message) RuntimeError: Couldn't install requirements for Web UI. Command: "/usr/local/bin/python3.8" -m pip install -r requirements_versions.txt --prefer-binary --no-cache-dir Error code: 1 stdout: Defaulting to user installation because normal site-packages is not writeable Collecting transformers==4.19.2 Downloading transformers-4.19.2-py3-none-any.whl (4.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.2/4.2 MB 2.6 MB/s eta 0:00:00 Collecting diffusers==0.2.4 Downloading diffusers-0.2.4-py3-none-any.whl (112 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 113.0/113.0 kB 2.4 MB/s eta 0:00:00 Collecting basicsr==1.3.5 Downloading basicsr-1.3.5.tar.gz (161 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 161.4/161.4 kB 3.4 MB/s eta 0:00:00 Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Requirement already satisfied: gfpgan in /home/magic/.local/lib/python3.8/site-packages (from -r requirements_versions.txt (line 4)) (1.3.5) Collecting gradio==3.3.1 Downloading gradio-3.3.1-py3-none-any.whl (5.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.3/5.3 MB 3.8 MB/s eta 0:00:00 Collecting numpy==1.23.3 Downloading numpy-1.23.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 17.1/17.1 MB 4.9 MB/s eta 0:00:00 Requirement already satisfied: Pillow==9.2.0 in /home/magic/.local/lib/python3.8/site-packages (from -r requirements_versions.txt (line 7)) (9.2.0) Collecting realesrgan==0.2.5.0 Downloading realesrgan-0.2.5.0-py3-none-any.whl (25 kB) Requirement already satisfied: torch in /home/magic/.local/lib/python3.8/site-packages (from -r requirements_versions.txt (line 9)) (1.12.1+cu113) Collecting omegaconf==2.1.1 Downloading omegaconf-2.1.1-py3-none-any.whl (74 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 74.7/74.7 kB 809.6 kB/s eta 0:00:00 Collecting pytorch_lightning==1.7.2 Downloading pytorch_lightning-1.7.2-py3-none-any.whl (705 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 705.6/705.6 kB 4.2 MB/s eta 0:00:00 Collecting scikit-image==0.19.2 Downloading scikit_image-0.19.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (14.0 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 14.0/14.0 MB 4.6 MB/s eta 0:00:00 Collecting fonts Downloading fonts-0.0.3-py3-none-any.whl (4.2 kB) Collecting font-roboto Downloading font-roboto-0.0.1.tar.gz (2.4 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.4/2.4 MB 3.3 MB/s eta 0:00:00 Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Collecting timm==0.4.12 Downloading timm-0.4.12-py3-none-any.whl (376 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 377.0/377.0 kB 2.4 MB/s eta 0:00:00 Collecting fairscale==0.4.4 Downloading fairscale-0.4.4.tar.gz (235 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 235.4/235.4 kB 2.5 MB/s eta 0:00:00 Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Installing backend dependencies: started Installing backend dependencies: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Collecting piexif==1.1.3 Downloading piexif-1.1.3-py2.py3-none-any.whl (20 kB) Collecting tokenizers!=0.11.3,<0.13,>=0.11.1 Downloading tokenizers-0.12.1-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (6.6 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.6/6.6 MB 4.5 MB/s eta 0:00:00 Requirement already satisfied: pyyaml>=5.1 in /home/magic/.local/lib/python3.8/site-packages (from transformers==4.19.2->-r requirements_versions.txt (line 1)) (6.0) Requirement already satisfied: regex!=2019.12.17 in /home/magic/.local/lib/python3.8/site-packages (from transformers==4.19.2->-r requirements_versions.txt (line 1)) (2022.9.13) Requirement already satisfied: packaging>=20.0 in /home/magic/.local/lib/python3.8/site-packages (from transformers==4.19.2->-r requirements_versions.txt (line 1)) (21.3) Requirement already satisfied: filelock in /home/magic/.local/lib/python3.8/site-packages (from transformers==4.19.2->-r requirements_versions.txt (line 1)) (3.8.0) Requirement already satisfied: requests in /home/magic/.local/lib/python3.8/site-packages (from transformers==4.19.2->-r requirements_versions.txt (line 1)) (2.25.1) Requirement already satisfied: tqdm>=4.27 in /home/magic/.local/lib/python3.8/site-packages (from transformers==4.19.2->-r requirements_versions.txt (line 1)) (4.64.1) Collecting huggingface-hub<1.0,>=0.1.0 Downloading huggingface_hub-0.9.1-py3-none-any.whl (120 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 120.7/120.7 kB 2.3 MB/s eta 0:00:00 Requirement already satisfied: importlib-metadata in /home/magic/.local/lib/python3.8/site-packages (from diffusers==0.2.4->-r requirements_versions.txt (line 2)) (4.11.4) Requirement already satisfied: addict in /home/magic/.local/lib/python3.8/site-packages (from basicsr==1.3.5->-r requirements_versions.txt (line 3)) (2.4.0) Requirement already satisfied: future in /home/magic/.local/lib/python3.8/site-packages (from basicsr==1.3.5->-r requirements_versions.txt (line 3)) (0.18.2) Requirement already satisfied: lmdb in /home/magic/.local/lib/python3.8/site-packages (from basicsr==1.3.5->-r requirements_versions.txt (line 3)) (1.3.0) Requirement already satisfied: opencv-python in /home/magic/.local/lib/python3.8/site-packages (from basicsr==1.3.5->-r requirements_versions.txt (line 3)) (4.6.0.66) Requirement already satisfied: scipy in /home/magic/.local/lib/python3.8/site-packages (from basicsr==1.3.5->-r requirements_versions.txt (line 3)) (1.9.1) Requirement already satisfied: tb-nightly in /home/magic/.local/lib/python3.8/site-packages (from basicsr==1.3.5->-r requirements_versions.txt (line 3)) (2.11.0a20220920) Requirement already satisfied: torchvision in /home/magic/.local/lib/python3.8/site-packages (from basicsr==1.3.5->-r requirements_versions.txt (line 3)) (0.13.1) Requirement already satisfied: yapf in /home/magic/.local/lib/python3.8/site-packages (from basicsr==1.3.5->-r requirements_versions.txt (line 3)) (0.32.0) Collecting uvicorn Downloading uvicorn-0.18.3-py3-none-any.whl (57 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 57.4/57.4 kB 2.2 MB/s eta 0:00:00 Collecting fastapi Downloading fastapi-0.85.0-py3-none-any.whl (55 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 55.3/55.3 kB 2.1 MB/s eta 0:00:00 Collecting pydantic Downloading pydantic-1.10.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.6 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.6/13.6 MB 3.3 MB/s eta 0:00:00 Collecting ffmpy Downloading ffmpy-0.3.0.tar.gz (4.8 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Requirement already satisfied: matplotlib in /home/magic/.local/lib/python3.8/site-packages (from gradio==3.3.1->-r requirements_versions.txt (line 5)) (3.6.0) Collecting markdown-it-py[linkify,plugins] Downloading markdown_it_py-2.1.0-py3-none-any.whl (84 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 84.5/84.5 kB 18.6 MB/s eta 0:00:00 Collecting h11<0.13,>=0.11 Downloading h11-0.12.0-py3-none-any.whl (54 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.9/54.9 kB 6.4 MB/s eta 0:00:00 Collecting orjson Downloading orjson-3.8.0-cp38-cp38-manylinux_2_28_x86_64.whl (145 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 145.9/145.9 kB 4.9 MB/s eta 0:00:00 Collecting paramiko Downloading paramiko-2.11.0-py2.py3-none-any.whl (212 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 212.9/212.9 kB 3.8 MB/s eta 0:00:00 Collecting aiohttp Downloading aiohttp-3.8.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.0/1.0 MB 5.5 MB/s eta 0:00:00 Collecting pandas Downloading pandas-1.5.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.2/12.2 MB 4.2 MB/s eta 0:00:00 Collecting websockets Downloading websockets-10.3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (111 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 111.3/111.3 kB 2.4 MB/s eta 0:00:00 Collecting fsspec Downloading fsspec-2022.8.2-py3-none-any.whl (140 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 140.8/140.8 kB 1.7 MB/s eta 0:00:00 Collecting analytics-python Downloading analytics_python-1.4.0-py2.py3-none-any.whl (15 kB) Collecting python-multipart Downloading python_multipart-0.0.4-py3-none-any.whl (31 kB) Collecting pydub Downloading pydub-0.25.1-py2.py3-none-any.whl (32 kB) Collecting pycryptodome Downloading pycryptodome-3.15.0-cp35-abi3-manylinux2010_x86_64.whl (2.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.3/2.3 MB 4.4 MB/s eta 0:00:00 Collecting httpx Downloading httpx-0.23.0-py3-none-any.whl (84 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 84.8/84.8 kB 2.7 MB/s eta 0:00:00 Requirement already satisfied: jinja2 in /home/magic/.local/lib/python3.8/site-packages (from gradio==3.3.1->-r requirements_versions.txt (line 5)) (3.1.2) Requirement already satisfied: facexlib>=0.2.0.3 in /home/magic/.local/lib/python3.8/site-packages (from realesrgan==0.2.5.0->-r requirements_versions.txt (line 8)) (0.2.5) Collecting antlr4-python3-runtime==4.8 Downloading antlr4-python3-runtime-4.8.tar.gz (112 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 112.4/112.4 kB 4.8 MB/s eta 0:00:00 Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Collecting tensorboard>=2.9.1 Downloading tensorboard-2.10.0-py3-none-any.whl (5.9 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.9/5.9 MB 4.7 MB/s eta 0:00:00 Requirement already satisfied: typing-extensions>=4.0.0 in /home/magic/.local/lib/python3.8/site-packages (from pytorch_lightning==1.7.2->-r requirements_versions.txt (line 12)) (4.3.0) Collecting pyDeprecate>=0.3.1 Downloading pyDeprecate-0.3.2-py3-none-any.whl (10 kB) Collecting torchmetrics>=0.7.0 Downloading torchmetrics-0.9.3-py3-none-any.whl (419 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 419.6/419.6 kB 3.2 MB/s eta 0:00:00 Requirement already satisfied: PyWavelets>=1.1.1 in /home/magic/.local/lib/python3.8/site-packages (from scikit-image==0.19.2->-r requirements_versions.txt (line 13)) (1.4.1) Requirement already satisfied: networkx>=2.2 in /home/magic/.local/lib/python3.8/site-packages (from scikit-image==0.19.2->-r requirements_versions.txt (line 13)) (2.8.6) Requirement already satisfied: tifffile>=2019.7.26 in /home/magic/.local/lib/python3.8/site-packages (from scikit-image==0.19.2->-r requirements_versions.txt (line 13)) (2022.8.12) Requirement already satisfied: imageio>=2.4.1 in /home/magic/.local/lib/python3.8/site-packages (from scikit-image==0.19.2->-r requirements_versions.txt (line 13)) (2.22.0) Collecting gfpgan Downloading gfpgan-1.3.8-py3-none-any.whl (52 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 52.2/52.2 kB 2.5 MB/s eta 0:00:00 Downloading gfpgan-1.3.7-py3-none-any.whl (58 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.5/58.5 kB 227.9 MB/s eta 0:00:00 Downloading gfpgan-1.3.6-py3-none-any.whl (62 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.0/62.0 kB 1.8 MB/s eta 0:00:00 Downloading gfpgan-1.3.4-py3-none-any.whl (47 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 47.5/47.5 kB 1.3 MB/s eta 0:00:00 Downloading gfpgan-1.3.2-py3-none-any.whl (47 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 47.5/47.5 kB 2.4 MB/s eta 0:00:00 Downloading gfpgan-1.3.1-py3-none-any.whl (47 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 47.4/47.4 kB 4.9 MB/s eta 0:00:00 Downloading gfpgan-1.3.0-py3-none-any.whl (42 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 42.7/42.7 kB 2.2 MB/s eta 0:00:00 Downloading gfpgan-0.2.4-py3-none-any.whl (38 kB) Downloading gfpgan-0.2.3-py3-none-any.whl (36 kB) Downloading gfpgan-0.2.1.tar.gz (35 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'error'

stderr: error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [33 lines of output] Traceback (most recent call last): File "/tmp/pip-install-27nydb3q/gfpgan_a24489daa3d34544a6bd9e5575d58398/setup.py", line 48, in get_hash from facexlib.version import version File "/home/magic/.local/lib/python3.8/site-packages/facexlib/init.py", line 3, in from .detection import File "/home/magic/.local/lib/python3.8/site-packages/facexlib/detection/init.py", line 5, in from .retinaface import RetinaFace File "/home/magic/.local/lib/python3.8/site-packages/facexlib/detection/retinaface.py", line 7, in from torchvision.models._utils import IntermediateLayerGetter as IntermediateLayerGetter File "/home/magic/.local/lib/python3.8/site-packages/torchvision/init.py", line 5, in from torchvision import datasets File "/home/magic/.local/lib/python3.8/site-packages/torchvision/datasets/init.py", line 1, in from ._optical_flow import KittiFlow, Sintel, FlyingChairs, FlyingThings3D, HD1K File "/home/magic/.local/lib/python3.8/site-packages/torchvision/datasets/_optical_flow.py", line 13, in from .utils import verify_str_arg File "/home/magic/.local/lib/python3.8/site-packages/torchvision/datasets/utils.py", line 6, in import lzma File "/usr/local/lib/python3.8/lzma.py", line 27, in from _lzma import ModuleNotFoundError: No module named '_lzma'

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "/tmp/pip-install-27nydb3q/gfpgan_a24489daa3d34544a6bd9e5575d58398/setup.py", line 89, in <module>
      write_version_py()
    File "/tmp/pip-install-27nydb3q/gfpgan_a24489daa3d34544a6bd9e5575d58398/setup.py", line 65, in write_version_py
      sha = get_hash()
    File "/tmp/pip-install-27nydb3q/gfpgan_a24489daa3d34544a6bd9e5575d58398/setup.py", line 51, in get_hash
      raise ImportError('Unable to get git version')
  ImportError: Unable to get git version
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details.



*Please help* :pray: 
fire17 commented 2 years ago

I managed to get further with sudo apt install liblzma-dev re(moved) venv mv venv xvenv updated correct python ~/stable-diffusion-webui/venv/bin/python3.8 -m pip install pip setuptools --upgrade now running bash < webui.sh again

fire17 commented 2 years ago

i see that i can import lzma in python3.7 so i'll try that again

Must have installed torch 10 times the past 2 days (on hotspot :sob:) :stuck_out_tongue_closed_eyes: FML

fire17 commented 2 years ago

ran this again: ~/stable-diffusion-webui/venv/bin/python3.7 -m pip install pip setuptools --upgrade then

➜  stable-diffusion-webui git:(master) ✗ "/home/magic/wholesomegarden/stable-diffusion-webui/venv/bin/python3.7" -m pip install gradio==3.3.1 --no-cache-dir --upgrade

I seem to be getting further, currently i have a fonts related error


################################################################
Launching launch.py...
################################################################
Python 3.7.3 (default, Mar  9 2022, 03:38:16) 
[GCC 8.3.0]
Commit hash: 4b26b50df0b417216ff4c12ce115394a828cdd05
Installing requirements for Web UI
Launching Web UI with arguments: 
Traceback (most recent call last):
  File "launch.py", line 127, in <module>
    start_webui()
  File "launch.py", line 123, in start_webui
    import webui
  File "/home/magic/wholesomegarden/stable-diffusion-webui/webui.py", line 10, in <module>
    import modules.ui
  File "/home/magic/wholesomegarden/stable-diffusion-webui/modules/ui.py", line 25, in <module>
    import modules.realesrgan_model as realesrgan
  File "/home/magic/wholesomegarden/stable-diffusion-webui/modules/realesrgan_model.py", line 7, in <module>
    import modules.images
  File "/home/magic/wholesomegarden/stable-diffusion-webui/modules/images.py", line 11, in <module>
    from fonts.ttf import Roboto
ImportError: cannot import name 'Roboto' from 'fonts.ttf' (/home/magic/wholesomegarden/stable-diffusion-webui/venv/lib/python3.7/site-packages/fonts/ttf/__init__.py)

found someone with same problem (https://pullanswer.com/questions/importerror-cannot-import-name-roboto-from-fonts-ttf-appdata-stable-diffusion-stable-diffusion-webui-venv-lib-python3-10-site-packages-fonts-ttf-__init__-py) Their suggested solution Just delete the venv folder and run it again. Solved

now I'm getting Error setting up GFPGAN:

################################################################
Launching launch.py...
################################################################
Python 3.7.3 (default, Mar  9 2022, 03:38:16) 
[GCC 8.3.0]
Commit hash: 4b26b50df0b417216ff4c12ce115394a828cdd05
Installing torch
Installing k-diffusion
Installing gfpgan
Installing requirements for CodeFormer
Installing requirements for Web UI
Launching Web UI with arguments: 
Error setting up GFPGAN:
Traceback (most recent call last):
  File "/home/magic/wholesomegarden/stable-diffusion-webui/modules/gfpgan_model.py", line 66, in setup_gfpgan
    from gfpgan import GFPGANer
  File "/home/magic/wholesomegarden/stable-diffusion-webui/venv/lib/python3.7/site-packages/gfpgan/__init__.py", line 4, in <module>
    from .models import *
  File "/home/magic/wholesomegarden/stable-diffusion-webui/venv/lib/python3.7/site-packages/gfpgan/models/__init__.py", line 10, in <module>
    _model_modules = [importlib.import_module(f'gfpgan.models.{file_name}') for file_name in model_filenames]
  File "/home/magic/wholesomegarden/stable-diffusion-webui/venv/lib/python3.7/site-packages/gfpgan/models/__init__.py", line 10, in <listcomp>
    _model_modules = [importlib.import_module(f'gfpgan.models.{file_name}') for file_name in model_filenames]
  File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/home/magic/wholesomegarden/stable-diffusion-webui/venv/lib/python3.7/site-packages/gfpgan/models/gfpgan_model.py", line 6, in <module>
    from basicsr.losses.gan_loss import r1_penalty
ModuleNotFoundError: No module named 'basicsr.losses.gan_loss'

No checkpoints found. When searching for checkpoints, looked at:
 - file /home/magic/wholesomegarden/stable-diffusion-webui/model.ckpt
 - directory /home/magic/wholesomegarden/stable-diffusion-webui/models
Can't run without a checkpoint. Find and place a .ckpt file into any of those locations. The program will exit.
fire17 commented 2 years ago

tried installing basicsr /stable-diffusion-webui/venv/bin/python3.7 -m pip install basicsr --no-cache-dir --upgrade same..

followed this: https://github.com/XPixelGroup/BasicSR/blob/master/docs/INSTALL.md#install-from-a-local-clone

WHICH MIGHT HAVE DONE THE TRICK NOW I'm Getting: which seems like good progress :crossed_fingers: :+1:


################################################################
Launching launch.py...
################################################################
Python 3.7.3 (default, Mar  9 2022, 03:38:16) 
[GCC 8.3.0]
Commit hash: 4b26b50df0b417216ff4c12ce115394a828cdd05
Installing requirements for Web UI
Launching Web UI with arguments: 
No checkpoints found. When searching for checkpoints, looked at:
 - file /home/magic/wholesomegarden/stable-diffusion-webui/model.ckpt
 - directory /home/magic/wholesomegarden/stable-diffusion-webui/models
Can't run without a checkpoint. Find and place a .ckpt file into any of those locations. The program will exit.
fire17 commented 2 years ago

just to help get back here: changed numpy==1.23.3 to just numpy in requirements_versions.txt to avoid the ERROR: No matching distribution found for numpy==1.23.3 error

fire17 commented 2 years ago

just to help get back here: changed numpy==1.23.3 to just numpy in requirements_versions.txt to avoid the ERROR: No matching distribution found for numpy==1.23.3 error

This solved my issue. please do some check to which python version is used and thereby have proper versions :pray: @AUTOMATIC1111 THX :yellow_heart:

fire17 commented 2 years ago

For anyone else who is also looking for solutions

OS: Deepin 20.7 (Based on Debian sid (unstable)) CUDA: 11.6 Driver: 510 Python3.7.3

this is really helpful: https://www.if-not-true-then-false.com/2021/install-nvidia-cuda-toolkit-on-ubuntu-debian-linux-mint/

Also, here are things i gathered during my attempts that were not obvious to me from the normal install guide, hope it helps someone what I had to do to install successfully:

image image

Thank you so much for everyone working on this you guys are amazing!!! :love_you_gesture: :yellow_heart: