Sygil-Dev / stable-diffusion

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ModuleNotFoundError: No module named 'frontend' after running docker-compose up

timpal0l opened this issue · comments

sd                  | ModuleNotFoundError: No module named 'frontend'
sd                  | entrypoint.sh: Process is ending. Relaunching in 0.5s...
sd                  | entrypoint.sh: Launching...
sd                  | Relaunch count: 183
sd                  | Traceback (most recent call last):
sd                  |   File "scripts/webui.py", line 3, in <module>
sd                  |     from frontend.frontend import draw_gradio_ui
sd                  | ModuleNotFoundError: No module named 'frontend'
sd                  | entrypoint.sh: Process is ending. Relaunching in 0.5s...

after running the docker-compose up command I get stuck in a loop about it not being able to find the frontend module. How can I resolve this?

commented

Possibly related #168 #169 #163 and fixed, just rerun and environment will update properly
Or it could be installation/docker issue, try pulling changes and reopen if you still have issues

@hlky i have a fresh pull of the repo, and the latest docker on ubuntu 22. I have only run the the docker-compose up, is there anything else that is required?

commented

Docker related issue then I believe, someone else provided the Dockerfile, I guess I should re do it or just figure out what the issue is so I'll have to install Docker

Can you try this

Shouldn't be required and if that fixes it then it must be an issue with the docker setup

I just reinstalled everything one more time, now everything works! Thanks :)

I am also having this issue with both the docker script and the linux install script as in #129. I have the No module named frontend, and once I do the sys.path hack (usually this is a symptom of the repo itself not being installed properly as an editable install with pip install -e .) I get ModuleNotFoundError: No module named gradio

I also have this error with the linux install script.