sd-webui-infinite-image-browsing icon indicating copy to clipboard operation
sd-webui-infinite-image-browsing copied to clipboard

iib just stoped working today on Forge

Open ali0une opened this issue 1 year ago • 4 comments

Hi there.

iib just stoped working today on Forge.

Here is the error :

*** Error loading script: iib_setup.py
    Traceback (most recent call last):
      File "/whatever/stable-diffusion-webui-forge/modules/scripts.py", line 525, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "/whatever/stable-diffusion-webui-forge/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 "/whatever/stable-diffusion-webui-forge/extensions/sd-webui-infinite-image-browsing/scripts/iib_setup.py", line 1, in <module>
        from scripts.iib.api import infinite_image_browsing_api, send_img_path
    ModuleNotFoundError: No module named 'scripts.iib'

ali0une avatar Aug 15 '24 09:08 ali0une

Since I have the same issue, feel like I should weigh in. There was another extension that had similar problem, the tag autocompletion. That one got fixed by just putting empty __init__.py in the folder that was refusing to load. For this extension though, that doesn't seem to help, and it still refuses to load the iib folder here.

UmbralMoth avatar Aug 15 '24 10:08 UmbralMoth

Turns out it is fixed by uninstalling the gguf package, if it was installed in Forge, as mentioned in lllyasviel/stable-diffusion-webui-forge#1134.

UmbralMoth avatar Aug 15 '24 12:08 UmbralMoth

That said, after removing gguf, this extension stubbornly refuses to load it still. Which is weird in general.

UmbralMoth avatar Aug 15 '24 12:08 UmbralMoth

You can temporarily use the standalone version and the desktop version instead. I will look into how to address this issue later.

zanllp avatar Aug 15 '24 12:08 zanllp

As it's a Forge related issue that is now fixed i think we can close this one.

ali0une avatar Aug 16 '24 07:08 ali0une

Been waiting to see if this'd get fixed on Forge's side of things, but while everything else got fixed, this extension still seems to have this issue. And I don't want to open up another issue, so felt like commenting about it here. @zanllp

UmbralMoth avatar Aug 18 '24 22:08 UmbralMoth

I had to git pull Forge and delete venv to get everything work again.

ali0une avatar Aug 19 '24 07:08 ali0une

Nah, it is in fact still broken. I double checked and reinstalling the whole venv did not help. So the missing library error is still there for this extension.

UmbralMoth avatar Aug 19 '24 15:08 UmbralMoth

is the gguf python package still in your requirements_versions.txt file in Forge root folder?

ali0une avatar Aug 19 '24 15:08 ali0une

Nah, it is in fact still broken. I double checked and reinstalling the whole venv did not help. So the missing library error is still there for this extension.

I have no issues using IIB in the latest version of the Forge environment. Try updating it.

zanllp avatar Aug 19 '24 17:08 zanllp

I have no issues using IIB in the latest version of the Forge environment. Try updating it.

That's the thing, I did, Forge is latest and I deleted venv to get it to reinstall, for some reason it keeps throwing me that error.

UmbralMoth avatar Aug 20 '24 15:08 UmbralMoth

I have no issues using IIB in the latest version of the Forge environment. Try updating it.

That's the thing, I did, Forge is latest and I deleted venv to get it to reinstall, for some reason it keeps throwing me that error.

You can first make sure there is no guff under your [venv] ls -R venv | grep 'guff'

zanllp avatar Aug 20 '24 17:08 zanllp

You can first make sure there is no guff under your [venv] ls -R venv | grep 'guff'

Yep, nothing. Granted I'm on Windows, so I had to use the Windows equivalent of that command, dir -R venv | FINDSTR 'guff'. So I dunno why, but it just consistently fails to import the iib module. And I've already tried reinstalling the entire venv and the extension itself.

EDIT: Actually, I think I know the issue. I run Forge through Stability Matrix, which uses its own prepackaged Python. I am pretty certain that the issue arises from that.

UmbralMoth avatar Aug 21 '24 14:08 UmbralMoth