Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error loading script: additional_networks.py #80

Open
imacopypaster opened this issue Jan 30, 2023 · 12 comments
Open

Error loading script: additional_networks.py #80

imacopypaster opened this issue Jan 30, 2023 · 12 comments

Comments

@imacopypaster
Copy link

Error loading script: additional_networks.py
Traceback (most recent call last):
  File "/content/stable-diffusion-webui/modules/scripts.py", line 229, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "/content/stable-diffusion-webui/modules/script_loading.py", line 11, in load_module
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 848, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/content/stable-diffusion-webui/extensions/sd-webui-additional-networks/scripts/additional_networks.py", line 159, in <module>
    def split_path_list(path_list: str) -> list[str]:
TypeError: 'type' object is not subscriptable

image

(on actual version A1111)

@wrathgoddess
Copy link

use the dev2 branch https://github.com/kohya-ss/sd-webui-additional-networks/tree/dev2. new update don't work for us

@imacopypaster
Copy link
Author

Thanks, wrathgoddess

@CoolSave
Copy link

Hi, how i can clone the dev2 version in colab ? I put the link https://github.com/kohya-ss/sd-webui-additional-networks/tree/dev2 but it says "not found", what im doing wrong ?.

@kohya-ss
Copy link
Owner

Thank you for the workaround. The latest version might be working on Python 3.8, and dev2 branch will be removed in near future.

@Shaiktit
Copy link

Hi, how i can clone the dev2 version in colab ? I put the link https://github.com/kohya-ss/sd-webui-additional-networks/tree/dev2 but it says "not found", what im doing wrong ?.

same im getting the not found error as well. i tried zipping it and pasting its still not working for me

@imacopypaster
Copy link
Author

Hi, how i can clone the dev2 version in colab ? I put the link https://github.com/kohya-ss/sd-webui-additional-networks/tree/dev2 but it says "not found", what im doing wrong ?.

!wget -q https://github.com/kohya-ss/sd-webui-additional-networks/archive/refs/heads/dev2.zip
!unzip -n -q dev2.zip -d /content/stable-diffusion-webui/extensions && rm dev2.zip

@Shaiktit
Copy link

Shaiktit commented Feb 1, 2023

Hi, how i can clone the dev2 version in colab ? I put the link https://github.com/kohya-ss/sd-webui-additional-networks/tree/dev2 but it says "not found", what im doing wrong ?.

!wget -q https://github.com/kohya-ss/sd-webui-additional-networks/archive/refs/heads/dev2.zip
!unzip -n -q dev2.zip -d /content/stable-diffusion-webui/extensions && rm dev2.zip

still doesnt work for me.

@imacopypaster
Copy link
Author

still doesnt work for me.

Make sure that the archive is unpacked to the right path.
It all depends on what kind of colab you use, of course.
For example TheLastBen's colab use non-standard paths to folders, so adjust the path to suit your colab.
image

@wrathgoddess
Copy link

Thank you for the workaround. The latest version might be working on Python 3.8, and dev2 branch will be removed in near future.

im on 3.10.6 is that the reason the update not compatible?

@ExiaCyn
Copy link

ExiaCyn commented Feb 6, 2023

Exact same problem, all the fixes suggested have also failed to fix the issue. I'm using python 3.10.8 and ensured it was a clean install. Script also fails to load.
I installed it on runpod and they seem to be running 3.10.9 so it seems unlikely it's the python version. Must be something else to do with either windows or the build.

@AlizerUncaged
Copy link

Still got this issue as well, any fixes yet?

@AlizerUncaged
Copy link

Alright so it works for me now I decided to come back to this thread hopefully I can help someone. Basically I went to the stable diffusion folder (the same folder where a folder named ".git" exists too), I opened up cmd and ran a git pull, not git fetch, just a git pull, that's when I realized my WebUI was very out of date, the UI looked so different from the old one I had which hasn't been update since November 2022.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants