Skip to content
This repository has been archived by the owner on Dec 10, 2023. It is now read-only.

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

Open
AnsuzJeran opened this issue Mar 13, 2023 · 3 comments
Open

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

AnsuzJeran opened this issue Mar 13, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@AnsuzJeran
Copy link

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 AnsuzJeran added the bug Something isn't working label Mar 13, 2023
@fkunn1326
Copy link
Owner

I just fixed it. Please update and check

@AnsuzJeran
Copy link
Author

Thanks for the fix

@Bodzijun
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants