Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Error loading script: main.py #16759

Open
1 of 6 tasks
bailliecaptainofgypsies opened this issue Dec 28, 2024 · 2 comments
Open
1 of 6 tasks

[Bug]: Error loading script: main.py #16759

bailliecaptainofgypsies opened this issue Dec 28, 2024 · 2 comments
Labels
not-an-issue This issue is not with the repo itself.

Comments

@bailliecaptainofgypsies

Checklist

  • The issue exists after disabling all extensions
  • The issue exists on a clean installation of webui
  • The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • The issue exists in the current version of the webui
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

when started webui-user.bat, I got this error message:

*** Error loading script: main.py
Traceback (most recent call last):
File "C:\Users\netwo\stable-diffusion-webui\modules\scripts.py", line 515, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "C:\Users\netwo\stable-diffusion-webui\modules\script_loading.py", line 13, in load_module
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "C:\Users\netwo\stable-diffusion-webui\extensions\openpose-editor\scripts\main.py", line 14, in
from basicsr.utils.download_util import load_file_from_url
ModuleNotFoundError: No module named 'basicsr'

When I try to send to txt2img the openpose s pose , nothing happened, when I manually set up the pose pictures, the picture isnt posed with the pose I setup....

Sorry I am a bit lost, If someone can help me I would be gratefull

Steps to reproduce the problem

1.l auch webui-user.bat

  1. get the error:

Launching Web UI with arguments: --xformers
*** Error loading script: main.py
Traceback (most recent call last):
File "C:\Users\netwo\stable-diffusion-webui\modules\scripts.py", line 515, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "C:\Users\netwo\stable-diffusion-webui\modules\script_loading.py", line 13, in load_module
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "C:\Users\netwo\stable-diffusion-webui\extensions\openpose-editor\scripts\main.py", line 14, in
from basicsr.utils.download_util import load_file_from_url
ModuleNotFoundError: No module named 'basicsr'

  1. 3dopenpose doesnt want to send the pose and other controlnet such as depht for example to the txt2img or img2img.

  2. after setting up the pose pictuer into controlnet parameter and setting up the options. it doesnt follow the pose...

What should have happened?

  1. No error on startting webui-user.bat

  2. Openpose can send the picures to img2img or txt2img

  3. I got the result with a picture with the pose I set up

What browsers do you use to access the UI ?

Mozilla Firefox, Google Chrome

Sysinfo

sysinfo-2024-12-28-17-43.json

Console logs

off "C:\Users\netwo\AppData\Local\Programs\Python\Python310\python.exe

C:\Users\netwo\stable-diffusion-webui>set PYTHON=

C:\Users\netwo\stable-diffusion-webui>set GIT=

C:\Users\netwo\stable-diffusion-webui>set VENV_DIR=

C:\Users\netwo\stable-diffusion-webui>set COMMANDLINE_ARGS= "--xformers"

C:\Users\netwo\stable-diffusion-webui>call webui.bat
venv "C:\Users\netwo\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Version: v1.10.1
Commit hash: 82a973c04367123ae98bd9abdf80d9eda9b910e2
Launching Web UI with arguments: --xformers
*** Error loading script: main.py
    Traceback (most recent call last):
      File "C:\Users\netwo\stable-diffusion-webui\modules\scripts.py", line 515, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "C:\Users\netwo\stable-diffusion-webui\modules\script_loading.py", line 13, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "C:\Users\netwo\stable-diffusion-webui\extensions\openpose-editor\scripts\main.py", line 14, in <module>
        from basicsr.utils.download_util import load_file_from_url
    ModuleNotFoundError: No module named 'basicsr'

---
ControlNet preprocessor location: C:\Users\netwo\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\downloads
2024-12-28 18:45:35,296 - ControlNet - INFO - ControlNet v1.1.455
Loading weights [d803b444ed] from C:\Users\netwo\stable-diffusion-webui\models\Stable-diffusion\disneyrealcartoonmix_v10.safetensors
2024-12-28 18:45:36,849 - ControlNet - INFO - ControlNet UI callback registered.
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Creating model from config: C:\Users\netwo\stable-diffusion-webui\repositories\generative-models\configs\inference\sd_xl_base.yaml
Startup time: 21.3s (prepare environment: 9.4s, import torch: 4.1s, import gradio: 1.6s, setup paths: 0.8s, import ldm: 0.1s, initialize shared: 0.3s, other imports: 0.5s, load scripts: 3.2s, create ui: 0.7s, gradio launch: 0.6s).

Additional information

No response

@bailliecaptainofgypsies bailliecaptainofgypsies added the bug-report Report of a bug, yet to be confirmed label Dec 28, 2024
@w-e-w
Copy link
Collaborator

w-e-w commented Dec 29, 2024

@w-e-w w-e-w added not-an-issue This issue is not with the repo itself. and removed bug-report Report of a bug, yet to be confirmed labels Dec 29, 2024
@bailliecaptainofgypsies
Copy link
Author

Thaanks I fixed the issue by uploading ... install packages

but no I have no more message error, but 3dopenpose seems not working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not-an-issue This issue is not with the repo itself.
Projects
None yet
Development

No branches or pull requests

2 participants