Skip to content

Unable to run webui-user.bat #1

@horribleCodes

Description

@horribleCodes

Describe the bug
I am currently unable to launch the repo. When running webui-user.bat, the following error appears:

venv "C:\source\repos\stable-diffusion-webui-1\venv\Scripts\Python.exe"
Traceback (most recent call last):
  File "C:\source\repos\stable-diffusion-webui-1\launch.py", line 12, in <module>
    from modules.StableDiffusion.SDJob_txt2img import SDJob_txt2img
  File "C:/source/repos/stable-diffusion-webui-1\modules\StableDiffusion\SDJob_txt2img.py", line 1, in <module>
    import numpy as np
ModuleNotFoundError: No module named 'numpy'
Press any key to continue . . . 

That is despite having run pip install -r requirements and pip install numpy both. It looks like running launch.py circumvents this particular problem, but there seem to be other modules you added that are creating errors.
I had to add k_diffusion manually, and despite also having installed ldm, I keep getting this error:

Exception has occurred: SyntaxError
Missing parentheses in call to 'print'. Did you mean print(...)? (ldm.py, line 20)
  File "C:\source\repos\stable-diffusion-webui-1\modules\StableDiffusion\StableDiffusionPlugin.py", line 17, in <module>
    from ldm.util import instantiate_from_config
  File "C:\source\repos\stable-diffusion-webui-1\launch.py", line 84, in <module>
    from StableDiffusionPlugin import StableDiffusionPlugin

To Reproduce
Steps to reproduce the behavior:
Maybe clone the repo anew, get a fresh virtual environment without modules and try launching it? I think there's a dependency problem.

Expected behavior
A first-time setup of all dependencies, followed by the launch of the server.

Desktop (please complete the following information):

  • OS Windows 11
  • Browser: Chrome
  • Commit revision: 8393cf3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions