Closed fire17 closed 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 🤷
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)
sudo service lightdm stop
then install the driver ./cuda_11*.run
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 510.73.08 Driver Version: 510.73.08 CUDA Version: 11.6 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... On | 00000000:01:00.0 Off | N/A |
| N/A 52C P8 18W / N/A | 5MiB / 8192MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+ | 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
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
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:
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
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
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.
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.
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
just to help get back here: changed
numpy==1.23.3
to justnumpy
inrequirements_versions.txt
to avoid theERROR: 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:
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:
sudo service lightdm stop
then install the driver ./cuda_11*.run
(remember to chmod +x)
numpy==1.23.3
to numpy
so python3.7 works (in requirements_versions.txt)
Thank you so much for everyone working on this you guys are amazing!!! :love_you_gesture: :yellow_heart:
Hi there, I'm trying to install, passed a bunch of errors. now i'm at: