glonlas / Stable-Diffusion-Apple-Silicon-M1-Install

Stable Diffusion Install script with GPU support for Apple Silicon M1/M2
48 stars 5 forks source link

After fresh install, python3 error: can't open dream.py #7

Open cplr opened 2 years ago

cplr commented 2 years ago

I just attempted a fresh install using the script, and trying to run either the browser or terminal versions gives an error:

+-----------------------------------------+
|                                         |
|     Stable Diffusion Apple Silicon      |
|             Install script              |
|                                         |
+-----------------------------------------+
Script Version: 0.1.2
Source of the script: https://github.com/glonlas/Stable-Diffusion-Apple-Silicon-M1-Install

What do you want to do?
   1) Install Stable Diffusion
   2) Run Stable Diffusion in Browser
   3) Run Stable Diffusion in Terminal
   4) Upscale a picture with Real-ESRGAN upscaler
   5) Uninstall Stable Diffusion
   6) Exit
Select an option [1-6]: 2
Starting Stable Diffusion Web UI
Reload your browser page once the command below will be showing 'Started Stable Diffusion dream server!'
python3: can't open file ~/stable-diffusion/stable-diffusion/scripts/dream.py': [Errno 2] No such file or directory
glonlas commented 2 years ago

The issue come that the Stable Diffusion github project has been renamed. I will fix this.

glonlas commented 2 years ago

@cplr Could you try with the latest main branch? It should have been fixed.

cplr commented 2 years ago

I have a different error now:

Select an option [1-6]: 2
Starting Stable Diffusion Web UI
Reload your browser page once the command below will be showing 'Started Stable Diffusion dream server!'
Traceback (most recent call last):
  File "~/stable-diffusion/InvokeAI/scripts/dream.py", line 12, in <module>
    import ldm.dream.readline
ModuleNotFoundError: No module named 'ldm'
glonlas commented 2 years ago

Seems the installation of the packages/dependency did not work properly. I need to find a way to reproduce it.