My installation process:
setup_mac.sh: line 23: conda: command not found
I figured this was because Miniconda hadn't been installed, so I went ahead and tried to do that. What I got in return was this:
Your machine hardware does not appear to be arm64 (Apple M1), but you are trying to install an arm64 version of Miniconda3. Are sure you want to continue the installation? [yes|no]
Upon inspecting setup_mac.sh, I discovered that it was directing to a particular repository:
https://repo.anaconda.com/miniconda/
From this repository, I was able to find the correct package and write it into the file (essentially changing where it says "arm64" to say "x86_64" instead).
Once I got that dealt with, I encountered this issue:
bash: line 1: ~/setup_mac.sh: Permission denied
Making the file executable seemed to do the trick. It then wanted to install 17 new packages, which I accepted. After so much progress, though, I encountered the following error:
File "~/stable-diffusion-webui/repositories/k-diffusion/k_diffusion/augmentation.py", line 6, in <module>
from skimage import transform
ModuleNotFoundError: No module named 'skimage'
Solution:
$ pip install scikit-image
Next error:
=============================================
====================ERROR====================
=============================================
The check for the models & required repositories has failed.
Please check if the model is in place and the repos are cloned.
You can find the model in stable-diffusion-webui/models/Stable-diffusion/sd-v1-4.ckpt
You can find the repos in stable-diffusion-webui/repositories/
=============================================
====================ERROR====================
=============================================
I had already installed the models, but… fine, I'll do it again, because apparently THE ENTIRE WEBUI FOLDER DELETES ITSELF every time the script runs!
Once I got that back, I'm once again greeted with the ModuleNotFoundError for 'skimage'. My solution:
$ sudo -H conda install -n web-ui scikit-image
$ sudo -H conda install -n web-ui json-merge-patch
Is there an existing issue for this? I have searched the existing issues and checked the recent builds/commits What happened? Traceback (most recent call last): File "/Users/blendersushi/Documents/...
github.com
I see now what
@Bustycat is saying about
pip install -r requirements.txt
.
Newer commits since October 31 made the web UI
unable to run on macOS. Use
git checkout 9b384df
as a workaround.
Update: It seems
pip install -r requirements.txt
can solve the issue now.
Now the only remaining issue is this:
Failed to build opencv-python
ERROR: Could not build wheels for opencv-python, which is required to install pyproject.toml-based projects
File "webui.py", line 98
print(f"Invalid path to TLS certfile: '{cmd_opts.tls_certfile}'")
^
SyntaxError: invalid syntax
This is apparently because it defaults to an older version of Python, or it has something to do with being unable to run opencv-python.
$ python3 -m pip install --upgrade opencv-python
attempts to install the correct version, but because make is gmake and the $PATH is all messed up, I'm up the creek.
btw I'm here because this is the only place with instructions that don't require the M1 Mac where the result is supposed to work. (Because I refuse to upgrade from Mojave, I'm feeling quite close to the Hackintosh communities.)