Error loading script: main.py #8585
Replies: 4 comments 4 replies
-
In openpose-editor\scripts\main.py, line 77 has a bug. Original (the bug one): Fixed: Yes. I add a ')' to fix it. |
Beta Was this translation helpful? Give feedback.
-
The extra ) fixes the issue. Disregard the following. Turns out Chrome needed a restart so that the (image) upload click worked. Wasn't only the PoseEditor, also img2img didn't want to take image ... For me the three buttons "Load from JSON", "Detect from image" and "Add Background image" no longer have any function. Latest A1111, ubuntu. No errors. Otherwise things do work. And continue to be awesome. Thank you for this extension. It is really wonderful. |
Beta Was this translation helpful? Give feedback.
-
*** Error loading script: main.py File "D:\SD\SD01\stable-diffusion-webui\modules\scripts.py", line 382, in load_scripts |
Beta Was this translation helpful? Give feedback.
-
Warning: caught exception 'Torch not compiled with CUDA enabled', memory monitor disabled Help me guys, openvino accelerator scripts is not showed up in the scripts due to this error... |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm pretty new at all this, and I'm seeing this error.
Error loading script: main.py
Traceback (most recent call last):
File "C:\Users\xxxx\Desktop\Super SD 2.0\stable-diffusion-webui\modules\scripts.py", line 229, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "C:\Users\xxxx\Desktop\Super SD 2.0\stable-diffusion-webui\modules\script_loading.py", line 11, in load_module
module_spec.loader.exec_module(module)
File "", line 879, in exec_module
File "", line 1017, in get_code
File "", line 947, in source_to_code
File "", line 241, in _call_with_frames_removed
File "C:\Users\xxxx\Desktop\Super SD 2.0\stable-diffusion-webui\extensions\openpose-editor\scripts\main.py", line 77
if (hasattr(opts, 'control_net_max_models_num'):
^
SyntaxError: invalid syntax
I did have some trouble installing Control Net/Compostable Lora and had to try a couple of times before it installed. Looking at the last line maybe this has something to do with it (or openpose editior?).
Do you have any advice or suggestions for me to try to get over this?
Thanks
Rob
Beta Was this translation helpful? Give feedback.
All reactions