openpose-editor icon indicating copy to clipboard operation
openpose-editor copied to clipboard

New Install Not working Even after editing line 77 of main.py

Open AnsuzJeran opened this issue 1 year ago • 3 comments

Describe the bug Installing the extension for the first time doenst work even after edit fix

To Reproduce Fresh install get first error of Line 77 Edit Line 77 Extension not working at all

Expected behavior Extension working on AUTOMATIC111

Environment

  • OS: W10
  • Mozilla 110.0.1

Additional context I did the fix of editing line 77 of main.py Using Fix:

Original (the bug one): if (hasattr(opts, 'control_net_max_models_num'): Fixed: if (hasattr(opts, 'control_net_max_models_num')):

New Error Appears:

Error loading script: main.py Traceback (most recent call last): File "F:\stable-diffusion-webui\modules\scripts.py", line 248, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "F:\stable-diffusion-webui\modules\script_loading.py", line 11, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "F:\stable-diffusion-webui\extensions\openpose-editor\scripts\main.py", line 14, in from scripts.openpose.body import Body ModuleNotFoundError: No module named 'scripts.openpose'

AnsuzJeran avatar Mar 13 '23 22:03 AnsuzJeran

I just fixed it. Please update and check

fkunn1326 avatar Mar 13 '23 23:03 fkunn1326

Thanks for the fix

AnsuzJeran avatar Mar 13 '23 23:03 AnsuzJeran

and today... \extensions\openpose-editor\scripts\main.py", line 89 SyntaxError: invalid syntax

Bodzijun avatar Mar 14 '23 10:03 Bodzijun