You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When installing the Infinite Image Browser extension, it fails to load due to Python's module import system not recognizing the scripts directory as a proper package.
Error Details:
*** Error loading script: iib_setup.py
Traceback (most recent call last):
File "[...]/modules/scripts.py", line 525, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
[...]
File "[...]/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'
Root Cause:
The scripts and scripts/iib folders are missing the required __init__.py files that Python needs to treat the directory as a package. This prevents the relative import 'from scripts.iib.api' from working correctly.
Solution:
1. Create an empty "__init__.py" file in the scripts folder
2. Create an empty "__init__.py" file in the scripts/iib folder
These files should be included in the repository by default to ensure proper Python package structure and prevent import errors during installation.
Environment:
Stable Diffusion WebUI Forge
Windows 10/11
Python 3.x
The text was updated successfully, but these errors were encountered:
When installing the Infinite Image Browser extension, it fails to load due to Python's module import system not recognizing the scripts directory as a proper package.
Error Details:
Root Cause:
Solution:
These files should be included in the repository by default to ensure proper Python package structure and prevent import errors during installation.
Environment:
The text was updated successfully, but these errors were encountered: