kohya-ss / sd-webui-additional-networks

GNU Affero General Public License v3.0
1.78k stars 296 forks source link

Error loading script: additional_networks.py #80

Open imacopypaster opened 1 year ago

imacopypaster commented 1 year ago
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 commented 1 year ago

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

imacopypaster commented 1 year ago

Thanks, wrathgoddess

CoolSave commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

Still got this issue as well, any fixes yet?

AlizerUncaged commented 1 year ago

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.