AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
136.18k stars 25.96k forks source link

[Bug]: Installing controlnet extension breaks WebUI #15551

Open DatachPlayer opened 3 months ago

DatachPlayer commented 3 months ago

Checklist

What happened?

After installing the extension "sd-webui-controlnet" this error comes up in cmd "ImportError: cannot import name 'Undefined' from 'pydantic.fields' (S:\AI\StableDiffusion\system\python\lib\site-packages\pydantic\fields.py)" and WebUI does not start at all. Deleting controlnet extension in extensions folder does not help. The only thing that helps is deleting the contents of system folder and installing it again via sd.webui.zip and run.bat

Steps to reproduce the problem

1) Go to Extensions tab in WebUI 2) Find the extension and press Install 3) Apply and restart WebUI

What should have happened?

WebUI should start normally

What browsers do you use to access the UI ?

Mozilla Firefox

Sysinfo

sysinfo-2024-04-17-15-37.json

Console logs

Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.9.0
Commit hash: adadb4e3c7382bf3e4f7519126cd6c70f4f8557b
Launching Web UI with arguments: --theme dark --xformers
Traceback (most recent call last):
  File "S:\AI\StableDiffusion\webui\launch.py", line 48, in <module>
    main()
  File "S:\AI\StableDiffusion\webui\launch.py", line 44, in main
    start()
  File "S:\AI\StableDiffusion\webui\modules\launch_utils.py", line 465, in start
    import webui
  File "S:\AI\StableDiffusion\webui\webui.py", line 13, in <module>
    initialize.imports()
  File "S:\AI\StableDiffusion\webui\modules\initialize.py", line 23, in imports
    import gradio  # noqa: F401
  File "S:\AI\StableDiffusion\system\python\lib\site-packages\gradio\__init__.py", line 3, in <module>
    import gradio.components as components
  File "S:\AI\StableDiffusion\system\python\lib\site-packages\gradio\components\__init__.py", line 1, in <module>
    from gradio.components.annotated_image import AnnotatedImage
  File "S:\AI\StableDiffusion\system\python\lib\site-packages\gradio\components\annotated_image.py", line 13, in <module>
    from gradio.components.base import IOComponent, _Keywords
  File "S:\AI\StableDiffusion\system\python\lib\site-packages\gradio\components\base.py", line 20, in <module>
    from fastapi import UploadFile
  File "S:\AI\StableDiffusion\system\python\lib\site-packages\fastapi\__init__.py", line 7, in <module>
    from .applications import FastAPI as FastAPI
  File "S:\AI\StableDiffusion\system\python\lib\site-packages\fastapi\applications.py", line 15, in <module>
    from fastapi import routing
  File "S:\AI\StableDiffusion\system\python\lib\site-packages\fastapi\routing.py", line 22, in <module>
    from fastapi import params
  File "S:\AI\StableDiffusion\system\python\lib\site-packages\fastapi\params.py", line 4, in <module>
    from pydantic.fields import FieldInfo, Undefined
ImportError: cannot import name 'Undefined' from 'pydantic.fields' (S:\AI\StableDiffusion\system\python\lib\site-packages\pydantic\fields.py)

Additional information

No response

sebaxakerhtc commented 3 months ago

Same for me, but for another extension sd-webui-facefusion from extensions tab

At time of installation was error

stderr: ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'E:\\AI\\stable-diffusion-webui\\venv\\Lib\\site-packages\\cv2\\cv2.pyd' Check the permissions.

I found the same issue at controlnet but from far ago

I don't know if it will help, but I have another installation of A1111 from 2 or 3 months, every day it started with git pull and --update-all-extensions and it works perfect with no errors. Looks like only new venv gives errors

simbiant commented 3 months ago

same issue, in 1.9.0-RC it works, but in 1.9.0 not

sebaxakerhtc commented 3 months ago

I found what gives error in both (controlnet and official facefusion) It's insightface Maybe I'm wrong and problem is from fastapi (looking at log)

D:\stable-diffusion-webui-1.8.0>venv\scripts\activate

(venv) D:\stable-diffusion-webui-1.8.0>pip install insightface
Collecting insightface
  Using cached insightface-0.7.3-cp310-cp310-win_amd64.whl
Collecting cython
  Using cached Cython-3.0.10-cp310-cp310-win_amd64.whl (2.8 MB)
Collecting scikit-learn
  Using cached scikit_learn-1.4.2-cp310-cp310-win_amd64.whl (10.6 MB)
Requirement already satisfied: tqdm in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from insightface) (4.66.2)
Collecting easydict
  Using cached easydict-1.13-py3-none-any.whl (6.8 kB)
Requirement already satisfied: requests in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from insightface) (2.31.0)
Requirement already satisfied: scikit-image in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from insightface) (0.21.0)
Collecting onnx
  Using cached onnx-1.16.0-cp310-cp310-win_amd64.whl (14.4 MB)
Collecting albumentations
  Using cached albumentations-1.4.4-py3-none-any.whl (150 kB)
Requirement already satisfied: numpy in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from insightface) (1.26.2)
Collecting prettytable
  Using cached prettytable-3.10.0-py3-none-any.whl (28 kB)
Requirement already satisfied: matplotlib in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from insightface) (3.8.4)
Requirement already satisfied: scipy in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from insightface) (1.13.0)
Requirement already satisfied: Pillow in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from insightface) (9.5.0)
Collecting pydantic>=2.6.4
  Using cached pydantic-2.7.0-py3-none-any.whl (407 kB)
Requirement already satisfied: PyYAML in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from albumentations->insightface) (6.0.1)
Requirement already satisfied: typing-extensions>=4.9.0 in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from albumentations->insightface) (4.11.0)
Collecting opencv-python-headless>=4.9.0
  Using cached opencv_python_headless-4.9.0.80-cp37-abi3-win_amd64.whl (38.5 MB)
Requirement already satisfied: lazy_loader>=0.2 in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from scikit-image->insightface) (0.4)
Requirement already satisfied: tifffile>=2022.8.12 in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from scikit-image->insightface) (2024.2.12)
Requirement already satisfied: imageio>=2.27 in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from scikit-image->insightface) (2.34.0)
Requirement already satisfied: packaging>=21 in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from scikit-image->insightface) (24.0)
Requirement already satisfied: PyWavelets>=1.1.1 in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from scikit-image->insightface) (1.6.0)
Requirement already satisfied: networkx>=2.8 in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from scikit-image->insightface) (3.3)
Collecting threadpoolctl>=2.0.0
  Using cached threadpoolctl-3.4.0-py3-none-any.whl (17 kB)
Collecting joblib>=1.2.0
  Using cached joblib-1.4.0-py3-none-any.whl (301 kB)
Requirement already satisfied: kiwisolver>=1.3.1 in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from matplotlib->insightface) (1.4.5)
Requirement already satisfied: python-dateutil>=2.7 in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from matplotlib->insightface) (2.9.0.post0)
Requirement already satisfied: cycler>=0.10 in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from matplotlib->insightface) (0.12.1)
Requirement already satisfied: pyparsing>=2.3.1 in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from matplotlib->insightface) (3.1.2)
Requirement already satisfied: fonttools>=4.22.0 in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from matplotlib->insightface) (4.51.0)
Requirement already satisfied: contourpy>=1.0.1 in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from matplotlib->insightface) (1.2.1)
Collecting protobuf>=3.20.2
  Using cached protobuf-5.26.1-cp310-abi3-win_amd64.whl (420 kB)
Requirement already satisfied: wcwidth in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from prettytable->insightface) (0.2.13)
Requirement already satisfied: charset-normalizer<4,>=2 in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from requests->insightface) (3.3.2)
Requirement already satisfied: certifi>=2017.4.17 in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from requests->insightface) (2024.2.2)
Requirement already satisfied: idna<4,>=2.5 in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from requests->insightface) (3.7)
Requirement already satisfied: urllib3<3,>=1.21.1 in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from requests->insightface) (2.2.1)
Requirement already satisfied: colorama in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from tqdm->insightface) (0.4.6)
Collecting annotated-types>=0.4.0
  Using cached annotated_types-0.6.0-py3-none-any.whl (12 kB)
Collecting pydantic-core==2.18.1
  Using cached pydantic_core-2.18.1-cp310-none-win_amd64.whl (1.9 MB)
Requirement already satisfied: six>=1.5 in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from python-dateutil>=2.7->matplotlib->insightface) (1.16.0)
Installing collected packages: easydict, threadpoolctl, pydantic-core, protobuf, prettytable, opencv-python-headless, joblib, cython, annotated-types, scikit-learn, pydantic, onnx, albumentations, insightface
  Attempting uninstall: protobuf
    Found existing installation: protobuf 3.20.0
    Uninstalling protobuf-3.20.0:
      Successfully uninstalled protobuf-3.20.0
  Attempting uninstall: pydantic
    Found existing installation: pydantic 1.10.15
    Uninstalling pydantic-1.10.15:
      Successfully uninstalled pydantic-1.10.15
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
open-clip-torch 2.20.0 requires protobuf<4, but you have protobuf 5.26.1 which is incompatible.
fastapi 0.94.0 requires pydantic!=1.7,!=1.7.1,!=1.7.2,!=1.7.3,!=1.8,!=1.8.1,<2.0.0,>=1.6.2, but you have pydantic 2.7.0 which is incompatible.
Successfully installed albumentations-1.4.4 annotated-types-0.6.0 cython-3.0.10 easydict-1.13 insightface-0.7.3 joblib-1.4.0 onnx-1.16.0 opencv-python-headless-4.9.0.80 prettytable-3.10.0 protobuf-5.26.1 pydantic-2.7.0 pydantic-core-2.18.1 scikit-learn-1.4.2 threadpoolctl-3.4.0

Installed only insightface on a clean A1111 manually and after this step A1111 doesn't work anymore with error

ImportError: cannot import name 'Undefined' from 'pydantic.fields' (D:\stable-diffusion-webui-1.8.0\venv\lib\site-packages\pydantic\fields.py)
simbiant commented 3 months ago

I found what gives error in both (controlnet and official facefusion) It's insightface Maybe I'm wrong and problem is from fastapi (looking at log)

D:\stable-diffusion-webui-1.8.0>venv\scripts\activate

(venv) D:\stable-diffusion-webui-1.8.0>pip install insightface
Collecting insightface
  Using cached insightface-0.7.3-cp310-cp310-win_amd64.whl
Collecting cython
  Using cached Cython-3.0.10-cp310-cp310-win_amd64.whl (2.8 MB)
Collecting scikit-learn
  Using cached scikit_learn-1.4.2-cp310-cp310-win_amd64.whl (10.6 MB)
Requirement already satisfied: tqdm in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from insightface) (4.66.2)
Collecting easydict
  Using cached easydict-1.13-py3-none-any.whl (6.8 kB)
Requirement already satisfied: requests in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from insightface) (2.31.0)
Requirement already satisfied: scikit-image in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from insightface) (0.21.0)
Collecting onnx
  Using cached onnx-1.16.0-cp310-cp310-win_amd64.whl (14.4 MB)
Collecting albumentations
  Using cached albumentations-1.4.4-py3-none-any.whl (150 kB)
Requirement already satisfied: numpy in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from insightface) (1.26.2)
Collecting prettytable
  Using cached prettytable-3.10.0-py3-none-any.whl (28 kB)
Requirement already satisfied: matplotlib in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from insightface) (3.8.4)
Requirement already satisfied: scipy in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from insightface) (1.13.0)
Requirement already satisfied: Pillow in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from insightface) (9.5.0)
Collecting pydantic>=2.6.4
  Using cached pydantic-2.7.0-py3-none-any.whl (407 kB)
Requirement already satisfied: PyYAML in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from albumentations->insightface) (6.0.1)
Requirement already satisfied: typing-extensions>=4.9.0 in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from albumentations->insightface) (4.11.0)
Collecting opencv-python-headless>=4.9.0
  Using cached opencv_python_headless-4.9.0.80-cp37-abi3-win_amd64.whl (38.5 MB)
Requirement already satisfied: lazy_loader>=0.2 in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from scikit-image->insightface) (0.4)
Requirement already satisfied: tifffile>=2022.8.12 in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from scikit-image->insightface) (2024.2.12)
Requirement already satisfied: imageio>=2.27 in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from scikit-image->insightface) (2.34.0)
Requirement already satisfied: packaging>=21 in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from scikit-image->insightface) (24.0)
Requirement already satisfied: PyWavelets>=1.1.1 in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from scikit-image->insightface) (1.6.0)
Requirement already satisfied: networkx>=2.8 in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from scikit-image->insightface) (3.3)
Collecting threadpoolctl>=2.0.0
  Using cached threadpoolctl-3.4.0-py3-none-any.whl (17 kB)
Collecting joblib>=1.2.0
  Using cached joblib-1.4.0-py3-none-any.whl (301 kB)
Requirement already satisfied: kiwisolver>=1.3.1 in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from matplotlib->insightface) (1.4.5)
Requirement already satisfied: python-dateutil>=2.7 in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from matplotlib->insightface) (2.9.0.post0)
Requirement already satisfied: cycler>=0.10 in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from matplotlib->insightface) (0.12.1)
Requirement already satisfied: pyparsing>=2.3.1 in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from matplotlib->insightface) (3.1.2)
Requirement already satisfied: fonttools>=4.22.0 in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from matplotlib->insightface) (4.51.0)
Requirement already satisfied: contourpy>=1.0.1 in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from matplotlib->insightface) (1.2.1)
Collecting protobuf>=3.20.2
  Using cached protobuf-5.26.1-cp310-abi3-win_amd64.whl (420 kB)
Requirement already satisfied: wcwidth in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from prettytable->insightface) (0.2.13)
Requirement already satisfied: charset-normalizer<4,>=2 in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from requests->insightface) (3.3.2)
Requirement already satisfied: certifi>=2017.4.17 in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from requests->insightface) (2024.2.2)
Requirement already satisfied: idna<4,>=2.5 in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from requests->insightface) (3.7)
Requirement already satisfied: urllib3<3,>=1.21.1 in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from requests->insightface) (2.2.1)
Requirement already satisfied: colorama in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from tqdm->insightface) (0.4.6)
Collecting annotated-types>=0.4.0
  Using cached annotated_types-0.6.0-py3-none-any.whl (12 kB)
Collecting pydantic-core==2.18.1
  Using cached pydantic_core-2.18.1-cp310-none-win_amd64.whl (1.9 MB)
Requirement already satisfied: six>=1.5 in d:\stable-diffusion-webui-1.8.0\venv\lib\site-packages (from python-dateutil>=2.7->matplotlib->insightface) (1.16.0)
Installing collected packages: easydict, threadpoolctl, pydantic-core, protobuf, prettytable, opencv-python-headless, joblib, cython, annotated-types, scikit-learn, pydantic, onnx, albumentations, insightface
  Attempting uninstall: protobuf
    Found existing installation: protobuf 3.20.0
    Uninstalling protobuf-3.20.0:
      Successfully uninstalled protobuf-3.20.0
  Attempting uninstall: pydantic
    Found existing installation: pydantic 1.10.15
    Uninstalling pydantic-1.10.15:
      Successfully uninstalled pydantic-1.10.15
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
open-clip-torch 2.20.0 requires protobuf<4, but you have protobuf 5.26.1 which is incompatible.
fastapi 0.94.0 requires pydantic!=1.7,!=1.7.1,!=1.7.2,!=1.7.3,!=1.8,!=1.8.1,<2.0.0,>=1.6.2, but you have pydantic 2.7.0 which is incompatible.
Successfully installed albumentations-1.4.4 annotated-types-0.6.0 cython-3.0.10 easydict-1.13 insightface-0.7.3 joblib-1.4.0 onnx-1.16.0 opencv-python-headless-4.9.0.80 prettytable-3.10.0 protobuf-5.26.1 pydantic-2.7.0 pydantic-core-2.18.1 scikit-learn-1.4.2 threadpoolctl-3.4.0

Installed only insightface on a clean A1111 manually and after this step A1111 doesn't work anymore with error

ImportError: cannot import name 'Undefined' from 'pydantic.fields' (D:\stable-diffusion-webui-1.8.0\venv\lib\site-packages\pydantic\fields.py)

I don't have insightface and don't remember installing it. Or do I? Screenshot right before reloading app which will break it image

Xenemros commented 3 months ago

Similar issue here, Fresh install into a new folder on different drive. Installer fails at this point:

Installing collected packages: xxhash, xatlas, vhacdx, trimesh, svg.path, shapely, rtree, protobuf, opencv-contrib-python, ml-dtypes, mapbox-earcut, embreex, colorlog, CFFI, absl-py, sounddevice, pycollada, jax, mediapipe, handrefinerportable
  Attempting uninstall: protobuf
    Found existing installation: protobuf 5.26.1
    Uninstalling protobuf-5.26.1:
      Successfully uninstalled protobuf-5.26.1

stderr: ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'C:\\AI\\system\\python\\Lib\\site-packages\\cv2\\cv2.pyd'
Consider using the `--user` option or check the permissions.

Warning: Failed to install handrefinerportable. Some processors will not work.
Installing sd-webui-controlnet requirement: depth_anything
Installing sd-webui-controlnet requirement: dsine
sebaxakerhtc commented 3 months ago

I don't have insightface and don't remember installing it. Or do I?

It's a pip package installed by extension

simbiant commented 3 months ago

image How does it work here in 1.9.0-RC. Can't understand. Now tried to downgrade to 1.8.0 and same issue. Commit in controlnet is the same

sebaxakerhtc commented 3 months ago

Now tried to downgrade to 1.8.0 and same issue. Commit in controlnet is the same

I tried it too - doesn't matter. Same error

sebaxakerhtc commented 3 months ago

I don't have insightface and don't remember installing it. Or do I?

Installing sd-webui-controlnet requirement: mediapipe
Installing sd-webui-controlnet requirement: insightface
Installing sd-webui-controlnet requirement: handrefinerportable
sebaxakerhtc commented 3 months ago

Guys, I found a TEMPORARY workaround for now! (I hope it will be solved in the future)

From now run A1111 and you can install controlnet Enjoy!

jackytop commented 3 months ago

Guys, I found a TEMPORARY workaround for now! (I hope it will be solved in the future)

  • After installing Webui - close it.
  • Go to A1111 folder
  • open cmd
  • type in venv\scripts\activate When you see (venv) X:\path-to-webui\stable-diffusion-webui>
  1. pip install insightface
  2. pip install --upgrade pydantic==1.10.14
  3. pip install --upgrade albumentations==1.4.2 Then deactivate venv by command venv\scripts\deactivate

From now run A1111 and you can install controlnet Enjoy!

will try thanks!

simbiant commented 3 months ago

Guys, I found a TEMPORARY workaround for now! (I hope it will be solved in the future)

  • After installing Webui - close it.
  • Go to A1111 folder
  • open cmd
  • type in venv\scripts\activate When you see (venv) X:\path-to-webui\stable-diffusion-webui>
  1. pip install insightface
  2. pip install --upgrade pydantic==1.10.14
  3. pip install --upgrade albumentations==1.4.2 Then deactivate venv by command venv\scripts\deactivate

From now run A1111 and you can install controlnet Enjoy!

F:\Upscale\stable-diffusion-webui-1.9.01>venv\scripts\activate

(venv) F:\Upscale\stable-diffusion-webui-1.9.01>pip install insightface
Collecting insightface
  Using cached insightface-0.7.3.tar.gz (439 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: Pillow in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from insightface) (9.5.0)
Collecting onnx
  Using cached onnx-1.16.0-cp310-cp310-win_amd64.whl (14.4 MB)
Collecting scikit-learn
  Using cached scikit_learn-1.4.2-cp310-cp310-win_amd64.whl (10.6 MB)
Requirement already satisfied: scipy in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from insightface) (1.13.0)
Requirement already satisfied: tqdm in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from insightface) (4.66.2)
Requirement already satisfied: matplotlib in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from insightface) (3.8.4)
Collecting easydict
  Using cached easydict-1.13-py3-none-any.whl (6.8 kB)
Requirement already satisfied: numpy in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from insightface) (1.26.2)
Collecting cython
  Using cached Cython-3.0.10-cp310-cp310-win_amd64.whl (2.8 MB)
Collecting albumentations
  Using cached albumentations-1.4.4-py3-none-any.whl (150 kB)
Collecting prettytable
  Using cached prettytable-3.10.0-py3-none-any.whl (28 kB)
Requirement already satisfied: requests in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from insightface) (2.31.0)
Requirement already satisfied: scikit-image in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from insightface) (0.21.0)
Collecting pydantic>=2.6.4
  Using cached pydantic-2.7.0-py3-none-any.whl (407 kB)
Requirement already satisfied: typing-extensions>=4.9.0 in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from albumentations->insightface) (4.11.0)
Collecting opencv-python-headless>=4.9.0
  Using cached opencv_python_headless-4.9.0.80-cp37-abi3-win_amd64.whl (38.5 MB)
Requirement already satisfied: PyYAML in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from albumentations->insightface) (6.0.1)
Requirement already satisfied: PyWavelets>=1.1.1 in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from scikit-image->insightface) (1.6.0)
Requirement already satisfied: imageio>=2.27 in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from scikit-image->insightface) (2.34.0)
Requirement already satisfied: tifffile>=2022.8.12 in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from scikit-image->insightface) (2024.2.12)
Requirement already satisfied: networkx>=2.8 in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from scikit-image->insightface) (3.3)
Requirement already satisfied: lazy_loader>=0.2 in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from scikit-image->insightface) (0.4)
Requirement already satisfied: packaging>=21 in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from scikit-image->insightface) (24.0)
Collecting joblib>=1.2.0
  Using cached joblib-1.4.0-py3-none-any.whl (301 kB)
Collecting threadpoolctl>=2.0.0
  Using cached threadpoolctl-3.4.0-py3-none-any.whl (17 kB)
Requirement already satisfied: kiwisolver>=1.3.1 in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from matplotlib->insightface) (1.4.5)
Requirement already satisfied: contourpy>=1.0.1 in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from matplotlib->insightface) (1.2.1)
Requirement already satisfied: cycler>=0.10 in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from matplotlib->insightface) (0.12.1)
Requirement already satisfied: python-dateutil>=2.7 in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from matplotlib->insightface) (2.9.0.post0)
Requirement already satisfied: pyparsing>=2.3.1 in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from matplotlib->insightface) (3.1.2)
Requirement already satisfied: fonttools>=4.22.0 in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from matplotlib->insightface) (4.51.0)
Collecting protobuf>=3.20.2
  Using cached protobuf-5.26.1-cp310-abi3-win_amd64.whl (420 kB)
Requirement already satisfied: wcwidth in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from prettytable->insightface) (0.2.13)
Requirement already satisfied: charset-normalizer<4,>=2 in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from requests->insightface) (3.3.2)
Requirement already satisfied: certifi>=2017.4.17 in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from requests->insightface) (2024.2.2)
Requirement already satisfied: idna<4,>=2.5 in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from requests->insightface) (3.7)
Requirement already satisfied: urllib3<3,>=1.21.1 in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from requests->insightface) (2.2.1)
Requirement already satisfied: colorama in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from tqdm->insightface) (0.4.6)
Collecting pydantic-core==2.18.1
  Using cached pydantic_core-2.18.1-cp310-none-win_amd64.whl (1.9 MB)
Collecting annotated-types>=0.4.0
  Using cached annotated_types-0.6.0-py3-none-any.whl (12 kB)
Requirement already satisfied: six>=1.5 in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from python-dateutil>=2.7->matplotlib->insightface) (1.16.0)
Building wheels for collected packages: insightface
  Building wheel for insightface (pyproject.toml) ... done
  Created wheel for insightface: filename=insightface-0.7.3-cp310-cp310-win_amd64.whl size=871179 sha256=aa4a48f71b15ee7fb72f7abf716c895c47b314fcd5875452a5bbbfc418f45a13
  Stored in directory: c:\users\simbiant\appdata\local\pip\cache\wheels\e3\d0\80\e3773fb8b6d1cca87ea1d33d9b1f20a223a6493c896da249b5
Successfully built insightface
Installing collected packages: easydict, threadpoolctl, pydantic-core, protobuf, prettytable, opencv-python-headless, joblib, cython, annotated-types, scikit-learn, pydantic, onnx, albumentations, insightface
  Attempting uninstall: protobuf
    Found existing installation: protobuf 3.20.0
    Uninstalling protobuf-3.20.0:
      Successfully uninstalled protobuf-3.20.0
  Attempting uninstall: pydantic
    Found existing installation: pydantic 1.10.15
    Uninstalling pydantic-1.10.15:
      Successfully uninstalled pydantic-1.10.15
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
open-clip-torch 2.20.0 requires protobuf<4, but you have protobuf 5.26.1 which is incompatible.
fastapi 0.94.0 requires pydantic!=1.7,!=1.7.1,!=1.7.2,!=1.7.3,!=1.8,!=1.8.1,<2.0.0,>=1.6.2, but you have pydantic 2.7.0 which is incompatible.
Successfully installed albumentations-1.4.4 annotated-types-0.6.0 cython-3.0.10 easydict-1.13 insightface-0.7.3 joblib-1.4.0 onnx-1.16.0 opencv-python-headless-4.9.0.80 prettytable-3.10.0 protobuf-5.26.1 pydantic-2.7.0 pydantic-core-2.18.1 scikit-learn-1.4.2 threadpoolctl-3.4.0

[notice] A new release of pip is available: 23.0.1 -> 24.0
[notice] To update, run: python.exe -m pip install --upgrade pip

(venv) F:\Upscale\stable-diffusion-webui-1.9.01>pip install --upgrade pydantic==1.10.14
Collecting pydantic==1.10.14
  Using cached pydantic-1.10.14-cp310-cp310-win_amd64.whl (2.1 MB)
Requirement already satisfied: typing-extensions>=4.2.0 in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from pydantic==1.10.14) (4.11.0)
Installing collected packages: pydantic
  Attempting uninstall: pydantic
    Found existing installation: pydantic 2.7.0
    Uninstalling pydantic-2.7.0:
      Successfully uninstalled pydantic-2.7.0
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
albumentations 1.4.4 requires pydantic>=2.6.4, but you have pydantic 1.10.14 which is incompatible.
Successfully installed pydantic-1.10.14

[notice] A new release of pip is available: 23.0.1 -> 24.0
[notice] To update, run: python.exe -m pip install --upgrade pip

(venv) F:\Upscale\stable-diffusion-webui-1.9.01>pip install --upgrade albumentations==1.4.2
Collecting albumentations==1.4.2
  Downloading albumentations-1.4.2-py3-none-any.whl (133 kB)
     ---------------------------------------- 133.9/133.9 kB 1.6 MB/s eta 0:00:00
Requirement already satisfied: opencv-python-headless>=4.9.0 in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from albumentations==1.4.2) (4.9.0.80)
Requirement already satisfied: scikit-image>=0.21.0 in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from albumentations==1.4.2) (0.21.0)
Requirement already satisfied: scikit-learn>=1.3.2 in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from albumentations==1.4.2) (1.4.2)
Requirement already satisfied: PyYAML in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from albumentations==1.4.2) (6.0.1)
Requirement already satisfied: numpy>=1.24.4 in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from albumentations==1.4.2) (1.26.2)
Requirement already satisfied: scipy>=1.10.0 in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from albumentations==1.4.2) (1.13.0)
Requirement already satisfied: typing-extensions>=4.9.0 in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from albumentations==1.4.2) (4.11.0)
Requirement already satisfied: imageio>=2.27 in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from scikit-image>=0.21.0->albumentations==1.4.2) (2.34.0)
Requirement already satisfied: pillow>=9.0.1 in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from scikit-image>=0.21.0->albumentations==1.4.2) (9.5.0)
Requirement already satisfied: packaging>=21 in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from scikit-image>=0.21.0->albumentations==1.4.2) (24.0)
Requirement already satisfied: PyWavelets>=1.1.1 in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from scikit-image>=0.21.0->albumentations==1.4.2) (1.6.0)
Requirement already satisfied: tifffile>=2022.8.12 in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from scikit-image>=0.21.0->albumentations==1.4.2) (2024.2.12)
Requirement already satisfied: lazy_loader>=0.2 in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from scikit-image>=0.21.0->albumentations==1.4.2) (0.4)
Requirement already satisfied: networkx>=2.8 in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from scikit-image>=0.21.0->albumentations==1.4.2) (3.3)
Requirement already satisfied: joblib>=1.2.0 in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from scikit-learn>=1.3.2->albumentations==1.4.2) (1.4.0)
Requirement already satisfied: threadpoolctl>=2.0.0 in f:\upscale\stable-diffusion-webui-1.9.01\venv\lib\site-packages (from scikit-learn>=1.3.2->albumentations==1.4.2) (3.4.0)
Installing collected packages: albumentations
  Attempting uninstall: albumentations
    Found existing installation: albumentations 1.4.4
    Uninstalling albumentations-1.4.4:
      Successfully uninstalled albumentations-1.4.4
Successfully installed albumentations-1.4.2

[notice] A new release of pip is available: 23.0.1 -> 24.0
[notice] To update, run: python.exe -m pip install --upgrade pip

Installation said compatible problems, but ui indeed launched. Need some more testing, but thanks image

sebaxakerhtc commented 3 months ago

Installation said compatible problems

We solved them by commands 2 and 3. No problems anymore

jackytop commented 3 months ago

insightface throw error while installing.

(venv) D:\sd\webui_copy_copy\venv\Scripts>pip install insightface Collecting insightface Using cached insightface-0.7.3.tar.gz (439 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: numpy in d:\sd\webui\venv\lib\site-packages (from insightface) (1.26.2) Collecting onnx (from insightface) Using cached onnx-1.16.0-cp310-cp310-win_amd64.whl.metadata (16 kB) Requirement already satisfied: tqdm in d:\sd\webui\venv\lib\site-packages (from insightface) (4.66.2) Requirement already satisfied: requests in d:\sd\webui\venv\lib\site-packages (from insightface) (2.31.0) Requirement already satisfied: matplotlib in d:\sd\webui\venv\lib\site-packages (from insightface) (3.8.4) Requirement already satisfied: Pillow in d:\sd\webui\venv\lib\site-packages (from insightface) (9.5.0) Requirement already satisfied: scipy in d:\sd\webui\venv\lib\site-packages (from insightface) (1.13.0) Requirement already satisfied: scikit-learn in d:\sd\webui\venv\lib\site-packages (from insightface) (1.4.2) Requirement already satisfied: scikit-image in d:\sd\webui\venv\lib\site-packages (from insightface) (0.21.0) Collecting easydict (from insightface) Using cached easydict-1.13-py3-none-any.whl.metadata (4.2 kB) Collecting cython (from insightface) Using cached Cython-3.0.10-cp310-cp310-win_amd64.whl.metadata (3.2 kB) Requirement already satisfied: albumentations in d:\sd\webui\venv\lib\site-packages (from insightface) (1.4.2) Collecting prettytable (from insightface) Using cached prettytable-3.10.0-py3-none-any.whl.metadata (30 kB) Requirement already satisfied: PyYAML in d:\sd\webui\venv\lib\site-packages (from albumentations->insightface) (6.0.1) Requirement already satisfied: typing-extensions>=4.9.0 in d:\sd\webui\venv\lib\site-packages (from albumentations->insightface) (4.11.0) Requirement already satisfied: opencv-python-headless>=4.9.0 in d:\sd\webui\venv\lib\site-packages (from albumentations->insightface) (4.9.0.80) Requirement already satisfied: networkx>=2.8 in d:\sd\webui\venv\lib\site-packages (from scikit-image->insightface) (3.3) Requirement already satisfied: imageio>=2.27 in d:\sd\webui\venv\lib\site-packages (from scikit-image->insightface) (2.34.0) Requirement already satisfied: tifffile>=2022.8.12 in d:\sd\webui\venv\lib\site-packages (from scikit-image->insightface) (2024.2.12) Requirement already satisfied: PyWavelets>=1.1.1 in d:\sd\webui\venv\lib\site-packages (from scikit-image->insightface) (1.6.0) Requirement already satisfied: packaging>=21 in d:\sd\webui\venv\lib\site-packages (from scikit-image->insightface) (24.0) Requirement already satisfied: lazy_loader>=0.2 in d:\sd\webui\venv\lib\site-packages (from scikit-image->insightface) (0.4) Requirement already satisfied: joblib>=1.2.0 in d:\sd\webui\venv\lib\site-packages (from scikit-learn->insightface) (1.4.0) Requirement already satisfied: threadpoolctl>=2.0.0 in d:\sd\webui\venv\lib\site-packages (from scikit-learn->insightface) (3.4.0) Requirement already satisfied: contourpy>=1.0.1 in d:\sd\webui\venv\lib\site-packages (from matplotlib->insightface) (1.2.1) Requirement already satisfied: cycler>=0.10 in d:\sd\webui\venv\lib\site-packages (from matplotlib->insightface) (0.12.1) Requirement already satisfied: fonttools>=4.22.0 in d:\sd\webui\venv\lib\site-packages (from matplotlib->insightface) (4.51.0) Requirement already satisfied: kiwisolver>=1.3.1 in d:\sd\webui\venv\lib\site-packages (from matplotlib->insightface) (1.4.5) Requirement already satisfied: pyparsing>=2.3.1 in d:\sd\webui\venv\lib\site-packages (from matplotlib->insightface) (3.1.2) Requirement already satisfied: python-dateutil>=2.7 in d:\sd\webui\venv\lib\site-packages (from matplotlib->insightface) (2.9.0.post0) Collecting protobuf>=3.20.2 (from onnx->insightface) Using cached protobuf-5.26.1-cp310-abi3-win_amd64.whl.metadata (592 bytes) Requirement already satisfied: wcwidth in d:\sd\webui\venv\lib\site-packages (from prettytable->insightface) (0.2.13) Requirement already satisfied: charset-normalizer<4,>=2 in d:\sd\webui\venv\lib\site-packages (from requests->insightface) (3.3.2) Requirement already satisfied: idna<4,>=2.5 in d:\sd\webui\venv\lib\site-packages (from requests->insightface) (3.7) Requirement already satisfied: urllib3<3,>=1.21.1 in d:\sd\webui\venv\lib\site-packages (from requests->insightface) (2.2.1) Requirement already satisfied: certifi>=2017.4.17 in d:\sd\webui\venv\lib\site-packages (from requests->insightface) (2024.2.2) Requirement already satisfied: colorama in d:\sd\webui\venv\lib\site-packages (from tqdm->insightface) (0.4.6) Requirement already satisfied: six>=1.5 in d:\sd\webui\venv\lib\site-packages (from python-dateutil>=2.7->matplotlib->insightface) (1.16.0) Using cached Cython-3.0.10-cp310-cp310-win_amd64.whl (2.8 MB) Using cached easydict-1.13-py3-none-any.whl (6.8 kB) Using cached onnx-1.16.0-cp310-cp310-win_amd64.whl (14.4 MB) Using cached prettytable-3.10.0-py3-none-any.whl (28 kB) Using cached protobuf-5.26.1-cp310-abi3-win_amd64.whl (420 kB) Building wheels for collected packages: insightface Building wheel for insightface (pyproject.toml) ... error error: subprocess-exited-with-error

× Building wheel for insightface (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [223 lines of output] WARNING: pandoc not enabled running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-310 creating build\lib.win-amd64-cpython-310\insightface copying insightface__init.py -> build\lib.win-amd64-cpython-310\insightface creating build\lib.win-amd64-cpython-310\insightface\app copying insightface\app\common.py -> build\lib.win-amd64-cpython-310\insightface\app copying insightface\app\face_analysis.py -> build\lib.win-amd64-cpython-310\insightface\app copying insightface\app\mask_renderer.py -> build\lib.win-amd64-cpython-310\insightface\app copying insightface\app__init.py -> build\lib.win-amd64-cpython-310\insightface\app creating build\lib.win-amd64-cpython-310\insightface\commands copying insightface\commands\insightface_cli.py -> build\lib.win-amd64-cpython-310\insightface\commands copying insightface\commands\model_download.py -> build\lib.win-amd64-cpython-310\insightface\commands copying insightface\commands\rec_add_mask_param.py -> build\lib.win-amd64-cpython-310\insightface\commands copying insightface\commands__init.py -> build\lib.win-amd64-cpython-310\insightface\commands creating build\lib.win-amd64-cpython-310\insightface\data copying insightface\data\image.py -> build\lib.win-amd64-cpython-310\insightface\data copying insightface\data\pickle_object.py -> build\lib.win-amd64-cpython-310\insightface\data copying insightface\data\rec_builder.py -> build\lib.win-amd64-cpython-310\insightface\data copying insightface\data__init__.py -> build\lib.win-amd64-cpython-310\insightface\data creating build\lib.win-amd64-cpython-310\insightface\model_zoo copying insightface\model_zoo\arcface_onnx.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo copying insightface\model_zoo\attribute.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo copying insightface\model_zoo\inswapper.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo copying insightface\model_zoo\landmark.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo copying insightface\model_zoo\model_store.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo copying insightface\model_zoo\model_zoo.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo copying insightface\model_zoo\retinaface.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo copying insightface\model_zoo\scrfd.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo copying insightface\model_zoo\init__.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo creating build\lib.win-amd64-cpython-310\insightface\thirdparty copying insightface\thirdparty\init__.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty creating build\lib.win-amd64-cpython-310\insightface\utils copying insightface\utils\constant.py -> build\lib.win-amd64-cpython-310\insightface\utils copying insightface\utils\download.py -> build\lib.win-amd64-cpython-310\insightface\utils copying insightface\utils\face_align.py -> build\lib.win-amd64-cpython-310\insightface\utils copying insightface\utils\filesystem.py -> build\lib.win-amd64-cpython-310\insightface\utils copying insightface\utils\storage.py -> build\lib.win-amd64-cpython-310\insightface\utils copying insightface\utils\transform.py -> build\lib.win-amd64-cpython-310\insightface\utils copying insightface\utils\init.py -> build\lib.win-amd64-cpython-310\insightface\utils creating build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d copying insightface\thirdparty\face3d\init.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d creating build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh copying insightface\thirdparty\face3d\mesh\io.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh copying insightface\thirdparty\face3d\mesh\light.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh copying insightface\thirdparty\face3d\mesh\render.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh copying insightface\thirdparty\face3d\mesh\transform.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh copying insightface\thirdparty\face3d\mesh\vis.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh copying insightface\thirdparty\face3d\mesh\init.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh creating build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy copying insightface\thirdparty\face3d\mesh_numpy\io.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy copying insightface\thirdparty\face3d\mesh_numpy\light.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy copying insightface\thirdparty\face3d\mesh_numpy\render.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy copying insightface\thirdparty\face3d\mesh_numpy\transform.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy copying insightface\thirdparty\face3d\mesh_numpy\vis.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy copying insightface\thirdparty\face3d\mesh_numpy\init.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy creating build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\morphable_model copying insightface\thirdparty\face3d\morphable_model\fit.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\morphable_model copying insightface\thirdparty\face3d\morphable_model\load.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\morphable_model copying insightface\thirdparty\face3d\morphable_model\morphabel_model.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\morphable_model copying insightface\thirdparty\face3d\morphable_model\init__.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\morphable_model running egg_info writing insightface.egg-info\PKG-INFO writing dependency_links to insightface.egg-info\dependency_links.txt writing entry points to insightface.egg-info\entry_points.txt writing requirements to insightface.egg-info\requires.txt writing top-level names to insightface.egg-info\top_level.txt reading manifest file 'insightface.egg-info\SOURCES.txt' writing manifest file 'insightface.egg-info\SOURCES.txt' C:\Users\ihoudini\AppData\Local\Temp\pip-build-env-fttzsuom\overlay\Lib\site-packages\setuptools\command\build_py.py:207: _Warning: Package 'insightface.thirdparty.face3d.mesh.cython' is absent from the packages configuration. !!

          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'insightface.thirdparty.face3d.mesh.cython' as an importable package[^1],
          but it is absent from setuptools' `packages` configuration.

          This leads to an ambiguous overall configuration. If you want to distribute this
          package, please make sure that 'insightface.thirdparty.face3d.mesh.cython' is explicitly added
          to the `packages` configuration field.

          Alternatively, you can also rely on setuptools' discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).

          You can read more about "package discovery" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

          If you don't want 'insightface.thirdparty.face3d.mesh.cython' to be distributed and are
          already explicitly excluding 'insightface.thirdparty.face3d.mesh.cython' via
          `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
          you can try to use `exclude_package_data`, or `include-package-data=False` in
          combination with a more fine grained `package-data` configuration.

          You can read more about "package data files" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/datafiles.html

          [^1]: For Python, any directory (with suitable naming) can be imported,
                even if it does not contain any `.py` files.
                On the other hand, currently there is no concept of package data
                directory, all directories are treated like packages.
          ********************************************************************************

  !!
    check.warn(importable)
  C:\Users\ihoudini\AppData\Local\Temp\pip-build-env-fttzsuom\overlay\Lib\site-packages\setuptools\command\build_py.py:207: _Warning: Package 'insightface.data.images' is absent from the `packages` configuration.
  !!

          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'insightface.data.images' as an importable package[^1],
          but it is absent from setuptools' `packages` configuration.

          This leads to an ambiguous overall configuration. If you want to distribute this
          package, please make sure that 'insightface.data.images' is explicitly added
          to the `packages` configuration field.

          Alternatively, you can also rely on setuptools' discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).

          You can read more about "package discovery" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

          If you don't want 'insightface.data.images' to be distributed and are
          already explicitly excluding 'insightface.data.images' via
          `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
          you can try to use `exclude_package_data`, or `include-package-data=False` in
          combination with a more fine grained `package-data` configuration.

          You can read more about "package data files" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/datafiles.html

          [^1]: For Python, any directory (with suitable naming) can be imported,
                even if it does not contain any `.py` files.
                On the other hand, currently there is no concept of package data
                directory, all directories are treated like packages.
          ********************************************************************************

  !!
    check.warn(importable)
  C:\Users\ihoudini\AppData\Local\Temp\pip-build-env-fttzsuom\overlay\Lib\site-packages\setuptools\command\build_py.py:207: _Warning: Package 'insightface.data.objects' is absent from the `packages` configuration.
  !!

          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'insightface.data.objects' as an importable package[^1],
          but it is absent from setuptools' `packages` configuration.

          This leads to an ambiguous overall configuration. If you want to distribute this
          package, please make sure that 'insightface.data.objects' is explicitly added
          to the `packages` configuration field.

          Alternatively, you can also rely on setuptools' discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).

          You can read more about "package discovery" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

          If you don't want 'insightface.data.objects' to be distributed and are
          already explicitly excluding 'insightface.data.objects' via
          `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
          you can try to use `exclude_package_data`, or `include-package-data=False` in
          combination with a more fine grained `package-data` configuration.

          You can read more about "package data files" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/datafiles.html

          [^1]: For Python, any directory (with suitable naming) can be imported,
                even if it does not contain any `.py` files.
                On the other hand, currently there is no concept of package data
                directory, all directories are treated like packages.
          ********************************************************************************

  !!
    check.warn(importable)
  creating build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh\cython
  copying insightface\thirdparty\face3d\mesh\cython\mesh_core.cpp -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh\cython
  copying insightface\thirdparty\face3d\mesh\cython\mesh_core.h -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh\cython
  copying insightface\thirdparty\face3d\mesh\cython\mesh_core_cython.cpp -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh\cython
  creating build\lib.win-amd64-cpython-310\insightface\data\images
  copying insightface\data\images\Tom_Hanks_54745.png -> build\lib.win-amd64-cpython-310\insightface\data\images
  copying insightface\data\images\mask_black.jpg -> build\lib.win-amd64-cpython-310\insightface\data\images
  copying insightface\data\images\mask_blue.jpg -> build\lib.win-amd64-cpython-310\insightface\data\images
  copying insightface\data\images\mask_green.jpg -> build\lib.win-amd64-cpython-310\insightface\data\images
  copying insightface\data\images\mask_white.jpg -> build\lib.win-amd64-cpython-310\insightface\data\images
  copying insightface\data\images\t1.jpg -> build\lib.win-amd64-cpython-310\insightface\data\images
  creating build\lib.win-amd64-cpython-310\insightface\data\objects
  copying insightface\data\objects\meanshape_68.pkl -> build\lib.win-amd64-cpython-310\insightface\data\objects
  copying insightface\thirdparty\face3d\mesh\cython\mesh_core_cython.c -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh\cython
  copying insightface\thirdparty\face3d\mesh\cython\mesh_core_cython.cpp -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh\cython
  copying insightface\thirdparty\face3d\mesh\cython\mesh_core_cython.pyx -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh\cython
  copying insightface\thirdparty\face3d\mesh\cython\setup.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh\cython
  running build_ext
  building 'insightface.thirdparty.face3d.mesh.cython.mesh_core_cython' extension
  creating build\temp.win-amd64-cpython-310
  creating build\temp.win-amd64-cpython-310\Release
  creating build\temp.win-amd64-cpython-310\Release\insightface
  creating build\temp.win-amd64-cpython-310\Release\insightface\thirdparty
  creating build\temp.win-amd64-cpython-310\Release\insightface\thirdparty\face3d
  creating build\temp.win-amd64-cpython-310\Release\insightface\thirdparty\face3d\mesh
  creating build\temp.win-amd64-cpython-310\Release\insightface\thirdparty\face3d\mesh\cython
  cl.exe /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Iinsightface/thirdparty/face3d/mesh/cython -IC:\Users\ihoudini\AppData\Local\Temp\pip-build-env-fttzsuom\overlay\Lib\site-packages\numpy\core\include -ID:\sd\webui\venv\include -IC:\Users\ihoudini\AppData\Local\Programs\Python\Python310\include -IC:\Users\ihoudini\AppData\Local\Programs\Python\Python310\Include /EHsc /Tpinsightface/thirdparty/face3d/mesh/cython/mesh_core.cpp /Fobuild\temp.win-amd64-cpython-310\Release\insightface/thirdparty/face3d/mesh/cython/mesh_core.obj
  error: command 'cl.exe' failed: None
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for insightface Failed to build insightface ERROR: Could not build wheels for insightface, which is required to install pyproject.toml-based projects

sebaxakerhtc commented 3 months ago

insightface throw error while installing

It tries to build, but it should just download it. My workaround tested on a clean installation of WebUI on Windows 11 with python 3.10.11

jackytop commented 3 months ago

sted on a clean installation of WebUI on Windows 11 w

will retry with clean webui 1.9.0 sir!

jackytop commented 3 months ago

insightface throw error while installing

It tries to build, but it should just download it. My workaround tested on a clean installation of WebUI on Windows 11 with python 3.10.11

so in the end, I skipped insightface and did step2,3 and it works now! @sebaxakerhtc

DatachPlayer commented 3 months ago

Guys, I found a TEMPORARY workaround for now! (I hope it will be solved in the future)

* After installing Webui - close it.

* Go to A1111 folder

* open cmd

* type in `venv\scripts\activate`
  When you see `(venv) X:\path-to-webui\stable-diffusion-webui>`

1. `pip install insightface`

2. `pip install --upgrade pydantic==1.10.14`

3. `pip install --upgrade albumentations==1.4.2`
   Then deactivate venv by command
   `venv\scripts\deactivate`

From now run A1111 and you can install controlnet Enjoy!

How exactly should i open the cmd? Because when i'm opening cmd via typing cmd in explorer's path it tells me that the venv\scripts\activate path is not found

sebaxakerhtc commented 3 months ago

How exactly should i open the cmd?

Open cmd and type cd path\to\a1111\folder

3vTAC commented 3 months ago

Guys, I found a TEMPORARY workaround for now! (I hope it will be solved in the future)

  • After installing Webui - close it.
  • Go to A1111 folder
  • open cmd
  • type in venv\scripts\activate When you see (venv) X:\path-to-webui\stable-diffusion-webui>
  1. pip install insightface
  2. pip install --upgrade pydantic==1.10.14
  3. pip install --upgrade albumentations==1.4.2 Then deactivate venv by command venv\scripts\deactivate

From now run A1111 and you can install controlnet Enjoy!

thank you for this!. can confirm this works, for me however i needed to go in reverse order (step 3,2, then 1) after activating venv because i kept getting incompatible version error

ucandoit74 commented 3 months ago

여러분, 지금은 임시 해결 방법을 찾았습니다! (앞으로는 해결되길 바랍니다)

  • Webui를 설치한 후 닫습니다.
  • A1111 폴더로 이동
  • cmd 열기
  • venv\scripts\activate 볼 때 입력하세요(venv) X:\path-to-webui\stable-diffusion-webui>
  1. pip install insightface
  2. pip install --upgrade pydantic==1.10.14
  3. pip install --upgrade albumentations==1.4.2 그런 다음 명령으로 venv를 비활성화하십시오. venv\scripts\deactivate

지금부터 A1111을 실행하면 컨트롤넷을 설치할 수 있습니다 . 즐기세요!

Guys, I found a TEMPORARY workaround for now! (I hope it will be solved in the future)

  • After installing Webui - close it.
  • Go to A1111 folder
  • open cmd
  • type in venv\scripts\activate When you see (venv) X:\path-to-webui\stable-diffusion-webui>
  1. pip install insightface
  2. pip install --upgrade pydantic==1.10.14
  3. pip install --upgrade albumentations==1.4.2 Then deactivate venv by command venv\scripts\deactivate

From now run A1111 and you can install controlnet Enjoy!


thanks for your helping. It works fine even after controlnet installation.

DatachPlayer commented 2 months ago

How exactly should i open the cmd?

Open cmd and type cd path\to\a1111\folder

It doesn't work for me. Should there physically be a folder that's called "venv" somewhere in folders that are called system and webui? Or is there some problem with my settings of python itself?

simbiant commented 2 months ago

How exactly should i open the cmd?

Open cmd and type cd path\to\a1111\folder

It doesn't work for me. Should there physically be a folder that's called "venv" somewhere in folders that are called system and webui? Or is there some problem with my settings of python itself?

You have to install clean webui firstly, opened it in browser, then closed and go in folder of webui. I think python must be in global variables (if you right "python" in terminal, then press enter and there is no error, then everything is alright). And yes folder venv is in webui directory image

DatachPlayer commented 2 months ago

How exactly should i open the cmd?

Open cmd and type cd path\to\a1111\folder

It doesn't work for me. Should there physically be a folder that's called "venv" somewhere in folders that are called system and webui? Or is there some problem with my settings of python itself?

You have to install clean webui firstly, opened it in browser, then closed and go in folder of webui. I think python must be in global variables (if you right "python" in terminal, then press enter and there is no error, then everything is alright). And yes folder venv is in webui directory image

The problem was that I always launched WebUI via run.bat and not webui-user.bat and now venv folder is in its place

Xenemros commented 2 months ago

I fixed my issues by installing Microsoft Build Tools, then installing the c++ build tools from inside there, Basically the same issue as with Reactor node in ComfyUI kinda weird it's not mentioned as a dependency, anywhere in ControlNet