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

ComfyUIs python_embeded does not want to compile insightface #1

Closed
MoonMoon82 opened this issue Jun 26, 2023 · 8 comments · Fixed by #4
Closed

ComfyUIs python_embeded does not want to compile insightface #1

MoonMoon82 opened this issue Jun 26, 2023 · 8 comments · Fixed by #4
Labels
install issue mode: 🎒 comfy-embed Related to the comfy embed mode

Comments

@MoonMoon82
Copy link

MoonMoon82 commented Jun 26, 2023

Hi!

If I try to install it I'm running into this error message:

C:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfy_mtb>C:\SD\ComfyUI_windows_portable\python_embeded\python.exe` -m pip install -r requirements.txt

Collecting onnxruntime-gpu (from -r requirements.txt (line 1))
  Using cached onnxruntime_gpu-1.15.1-cp310-cp310-win_amd64.whl (122.5 MB)
Requirement already satisfied: imageio in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from -r requirements.txt (line 2)) (2.26.0)
Collecting qrcode[pil] (from -r requirements.txt (line 3))
  Using cached qrcode-7.4.2-py3-none-any.whl (46 kB)
Collecting numpy==1.23.5 (from -r requirements.txt (line 4))
  Using cached numpy-1.23.5-cp310-cp310-win_amd64.whl (14.6 MB)
Requirement already satisfied: ifnude==0.0.3 in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from -r requirements.txt (line 5)) (0.0.3)
Collecting insightface==0.7.3 (from -r requirements.txt (line 6))
  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: mmcv==2.0.0 in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from -r requirements.txt (line 7)) (2.0.0)
Requirement already satisfied: mmdet==3.0.0 in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from -r requirements.txt (line 8)) (3.0.0)
Collecting rembg==2.0.37 (from -r requirements.txt (line 9))
  Using cached rembg-2.0.37-py3-none-any.whl (23 kB)
Requirement already satisfied: pillow in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from ifnude==0.0.3->-r requirements.txt (line 5)) (9.4.0)
Requirement already satisfied: opencv-python-headless>=4.5.1.48 in c:\users\christian\appdata\roaming\python\python310\site-packages (from ifnude==0.0.3->-r requirements.txt (line 5)) (4.7.0.72)
Requirement already satisfied: tqdm in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from ifnude==0.0.3->-r requirements.txt (line 5)) (4.65.0)
Requirement already satisfied: scikit-image in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from ifnude==0.0.3->-r requirements.txt (line 5)) (0.20.0)
Requirement already satisfied: onnxruntime in c:\users\christian\appdata\roaming\python\python310\site-packages (from ifnude==0.0.3->-r requirements.txt (line 5)) (1.15.0)
Collecting onnx (from insightface==0.7.3->-r requirements.txt (line 6))
  Using cached onnx-1.14.0-cp310-cp310-win_amd64.whl (13.3 MB)
Requirement already satisfied: requests in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from insightface==0.7.3->-r requirements.txt (line 6)) (2.28.2)
Requirement already satisfied: matplotlib in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from insightface==0.7.3->-r requirements.txt (line 6)) (3.7.1)
Requirement already satisfied: scipy in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from insightface==0.7.3->-r requirements.txt (line 6)) (1.10.1)
Collecting scikit-learn (from insightface==0.7.3->-r requirements.txt (line 6))
  Using cached scikit_learn-1.2.2-cp310-cp310-win_amd64.whl (8.3 MB)
Collecting easydict (from insightface==0.7.3->-r requirements.txt (line 6))
  Using cached easydict-1.10-py3-none-any.whl
Requirement already satisfied: cython in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from insightface==0.7.3->-r requirements.txt (line 6)) (0.29.35)
Collecting albumentations (from insightface==0.7.3->-r requirements.txt (line 6))
  Using cached albumentations-1.3.1-py3-none-any.whl (125 kB)
Requirement already satisfied: prettytable in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from insightface==0.7.3->-r requirements.txt (line 6)) (3.6.0)
Requirement already satisfied: addict in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from mmcv==2.0.0->-r requirements.txt (line 7)) (2.4.0)
Requirement already satisfied: mmengine>=0.2.0 in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from mmcv==2.0.0->-r requirements.txt (line 7)) (0.7.4)
Requirement already satisfied: packaging in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from mmcv==2.0.0->-r requirements.txt (line 7)) (23.0)
Requirement already satisfied: pyyaml in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from mmcv==2.0.0->-r requirements.txt (line 7)) (6.0)
Requirement already satisfied: yapf in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from mmcv==2.0.0->-r requirements.txt (line 7)) (0.32.0)
Requirement already satisfied: opencv-python>=3 in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from mmcv==2.0.0->-r requirements.txt (line 7)) (4.7.0.72)
Requirement already satisfied: regex in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from mmcv==2.0.0->-r requirements.txt (line 7)) (2023.3.23)
Requirement already satisfied: pycocotools in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from mmdet==3.0.0->-r requirements.txt (line 8)) (2.0.6)
Requirement already satisfied: shapely in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from mmdet==3.0.0->-r requirements.txt (line 8)) (2.0.1)
Requirement already satisfied: six in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from mmdet==3.0.0->-r requirements.txt (line 8)) (1.16.0)
Requirement already satisfied: terminaltables in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from mmdet==3.0.0->-r requirements.txt (line 8)) (3.1.10)
Requirement already satisfied: aiohttp>=3.8.1 in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from rembg==2.0.37->-r requirements.txt (line 9)) (3.8.4)
Requirement already satisfied: asyncer>=0.0.2 in c:\users\christian\appdata\roaming\python\python310\site-packages (from rembg==2.0.37->-r requirements.txt (line 9)) (0.0.2)
Requirement already satisfied: click>=8.1.3 in c:\users\christian\appdata\roaming\python\python310\site-packages (from rembg==2.0.37->-r requirements.txt (line 9)) (8.1.3)
Requirement already satisfied: fastapi>=0.92.0 in c:\users\christian\appdata\roaming\python\python310\site-packages (from rembg==2.0.37->-r requirements.txt (line 9)) (0.96.1)
Requirement already satisfied: filetype>=1.2.0 in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from rembg==2.0.37->-r requirements.txt (line 9)) (1.2.0)
Requirement already satisfied: imagehash>=4.3.1 in c:\users\christian\appdata\roaming\python\python310\site-packages (from rembg==2.0.37->-r requirements.txt (line 9)) (4.3.1)
Requirement already satisfied: pooch>=1.6.0 in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from rembg==2.0.37->-r requirements.txt (line 9)) (1.7.0)
Requirement already satisfied: pymatting>=1.1.8 in c:\users\christian\appdata\roaming\python\python310\site-packages (from rembg==2.0.37->-r requirements.txt (line 9)) (1.1.8)
Requirement already satisfied: python-multipart>=0.0.5 in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from rembg==2.0.37->-r requirements.txt (line 9)) (0.0.6)
Requirement already satisfied: uvicorn>=0.20.0 in c:\users\christian\appdata\roaming\python\python310\site-packages (from rembg==2.0.37->-r requirements.txt (line 9)) (0.22.0)
Requirement already satisfied: watchdog>=2.1.9 in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from rembg==2.0.37->-r requirements.txt (line 9)) (3.0.0)
Requirement already satisfied: coloredlogs in c:\users\christian\appdata\roaming\python\python310\site-packages (from onnxruntime-gpu->-r requirements.txt (line 1)) (15.0.1)
Requirement already satisfied: flatbuffers in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from onnxruntime-gpu->-r requirements.txt (line 1)) (23.3.3)
Requirement already satisfied: protobuf in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from onnxruntime-gpu->-r requirements.txt (line 1)) (3.20.3)
Requirement already satisfied: sympy in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from onnxruntime-gpu->-r requirements.txt (line 1)) (1.11.1)
Requirement already satisfied: typing-extensions in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from qrcode[pil]->-r requirements.txt (line 3)) (4.5.0)
Collecting pypng (from qrcode[pil]->-r requirements.txt (line 3))
  Using cached pypng-0.20220715.0-py3-none-any.whl (58 kB)
Requirement already satisfied: colorama in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from qrcode[pil]->-r requirements.txt (line 3)) (0.4.6)
Requirement already satisfied: attrs>=17.3.0 in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from aiohttp>=3.8.1->rembg==2.0.37->-r requirements.txt (line 9)) (22.2.0)
Requirement already satisfied: charset-normalizer<4.0,>=2.0 in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from aiohttp>=3.8.1->rembg==2.0.37->-r requirements.txt (line 9)) (3.1.0)
Requirement already satisfied: multidict<7.0,>=4.5 in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from aiohttp>=3.8.1->rembg==2.0.37->-r requirements.txt (line 9)) (6.0.4)
Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from aiohttp>=3.8.1->rembg==2.0.37->-r requirements.txt (line 9)) (4.0.2)
Requirement already satisfied: yarl<2.0,>=1.0 in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from aiohttp>=3.8.1->rembg==2.0.37->-r requirements.txt (line 9)) (1.8.2)
Requirement already satisfied: frozenlist>=1.1.1 in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from aiohttp>=3.8.1->rembg==2.0.37->-r requirements.txt (line 9)) (1.3.3)
Requirement already satisfied: aiosignal>=1.1.2 in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from aiohttp>=3.8.1->rembg==2.0.37->-r requirements.txt (line 9)) (1.3.1)
Requirement already satisfied: anyio<4.0.0,>=3.4.0 in c:\users\christian\appdata\roaming\python\python310\site-packages (from asyncer>=0.0.2->rembg==2.0.37->-r requirements.txt (line 9)) (3.7.0)
Requirement already satisfied: pydantic!=1.8,!=1.8.1,<2.0.0,>=1.7.4 in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from fastapi>=0.92.0->rembg==2.0.37->-r requirements.txt (line 9)) (1.10.9)
Requirement already satisfied: starlette<0.28.0,>=0.27.0 in c:\users\christian\appdata\roaming\python\python310\site-packages (from fastapi>=0.92.0->rembg==2.0.37->-r requirements.txt (line 9)) (0.27.0)
Requirement already satisfied: PyWavelets in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from imagehash>=4.3.1->rembg==2.0.37->-r requirements.txt (line 9)) (1.4.1)
Requirement already satisfied: rich in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from mmengine>=0.2.0->mmcv==2.0.0->-r requirements.txt (line 7)) (13.4.2)
Requirement already satisfied: termcolor in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from mmengine>=0.2.0->mmcv==2.0.0->-r requirements.txt (line 7)) (2.2.0)
Requirement already satisfied: platformdirs>=2.5.0 in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from pooch>=1.6.0->rembg==2.0.37->-r requirements.txt (line 9)) (3.5.3)
Requirement already satisfied: numba!=0.49.0 in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from pymatting>=1.1.8->rembg==2.0.37->-r requirements.txt (line 9)) (0.57.0)
Requirement already satisfied: idna<4,>=2.5 in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from requests->insightface==0.7.3->-r requirements.txt (line 6)) (3.4)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from requests->insightface==0.7.3->-r requirements.txt (line 6)) (1.26.15)
Requirement already satisfied: certifi>=2017.4.17 in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from requests->insightface==0.7.3->-r requirements.txt (line 6)) (2022.12.7)
Requirement already satisfied: networkx>=2.8 in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from scikit-image->ifnude==0.0.3->-r requirements.txt (line 5)) (3.1)
Requirement already satisfied: tifffile>=2019.7.26 in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from scikit-image->ifnude==0.0.3->-r requirements.txt (line 5)) (2023.3.15)
Requirement already satisfied: lazy_loader>=0.1 in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from scikit-image->ifnude==0.0.3->-r requirements.txt (line 5)) (0.1)
Requirement already satisfied: h11>=0.8 in c:\users\christian\appdata\roaming\python\python310\site-packages (from uvicorn>=0.20.0->rembg==2.0.37->-r requirements.txt (line 9)) (0.14.0)
Collecting qudida>=0.0.4 (from albumentations->insightface==0.7.3->-r requirements.txt (line 6))
  Using cached qudida-0.0.4-py3-none-any.whl (3.5 kB)
Requirement already satisfied: humanfriendly>=9.1 in c:\users\christian\appdata\roaming\python\python310\site-packages (from coloredlogs->onnxruntime-gpu->-r requirements.txt (line 1)) (10.0)
Requirement already satisfied: contourpy>=1.0.1 in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from matplotlib->insightface==0.7.3->-r requirements.txt (line 6)) (1.0.7)
Requirement already satisfied: cycler>=0.10 in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from matplotlib->insightface==0.7.3->-r requirements.txt (line 6)) (0.11.0)
Requirement already satisfied: fonttools>=4.22.0 in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from matplotlib->insightface==0.7.3->-r requirements.txt (line 6)) (4.39.2)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from matplotlib->insightface==0.7.3->-r requirements.txt (line 6)) (1.4.4)
Requirement already satisfied: pyparsing>=2.3.1 in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from matplotlib->insightface==0.7.3->-r requirements.txt (line 6)) (3.0.9)
Requirement already satisfied: python-dateutil>=2.7 in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from matplotlib->insightface==0.7.3->-r requirements.txt (line 6)) (2.8.2)
Requirement already satisfied: wcwidth in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from prettytable->insightface==0.7.3->-r requirements.txt (line 6)) (0.2.6)
Collecting joblib>=1.1.1 (from scikit-learn->insightface==0.7.3->-r requirements.txt (line 6))
  Using cached joblib-1.2.0-py3-none-any.whl (297 kB)
Collecting threadpoolctl>=2.0.0 (from scikit-learn->insightface==0.7.3->-r requirements.txt (line 6))
  Using cached threadpoolctl-3.1.0-py3-none-any.whl (14 kB)
Requirement already satisfied: mpmath>=0.19 in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from sympy->onnxruntime-gpu->-r requirements.txt (line 1)) (1.3.0)
Requirement already satisfied: sniffio>=1.1 in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from anyio<4.0.0,>=3.4.0->asyncer>=0.0.2->rembg==2.0.37->-r requirements.txt (line 9)) (1.3.0)
Requirement already satisfied: exceptiongroup in c:\users\christian\appdata\roaming\python\python310\site-packages (from anyio<4.0.0,>=3.4.0->asyncer>=0.0.2->rembg==2.0.37->-r requirements.txt (line 9)) (1.1.1)
Requirement already satisfied: pyreadline3 in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from humanfriendly>=9.1->coloredlogs->onnxruntime-gpu->-r requirements.txt (line 1)) (3.4.1)
Requirement already satisfied: llvmlite<0.41,>=0.40.0dev0 in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from numba!=0.49.0->pymatting>=1.1.8->rembg==2.0.37->-r requirements.txt (line 9)) (0.40.0)
Requirement already satisfied: markdown-it-py>=2.2.0 in c:\users\christian\appdata\roaming\python\python310\site-packages (from rich->mmengine>=0.2.0->mmcv==2.0.0->-r requirements.txt (line 7)) (2.2.0)
Requirement already satisfied: pygments<3.0.0,>=2.13.0 in c:\sd\comfyui_windows_portable\python_embeded\lib\site-packages (from rich->mmengine>=0.2.0->mmcv==2.0.0->-r requirements.txt (line 7)) (2.15.1)
Requirement already satisfied: mdurl~=0.1 in c:\users\christian\appdata\roaming\python\python310\site-packages (from markdown-it-py>=2.2.0->rich->mmengine>=0.2.0->mmcv==2.0.0->-r requirements.txt (line 7)) (0.1.2)
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
  ╰─> [187 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:\SD\ComfyUI_windows_portable\python_embeded\lib\site-packages\setuptools\command\build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'insightface.thirdparty.face3d.mesh.cython' as data is deprecated, please list it in `packages`.
          !!


          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'insightface.thirdparty.face3d.mesh.cython' as an importable package,
          but it is not listed in the `packages` configuration of setuptools.

          'insightface.thirdparty.face3d.mesh.cython' has been automatically added to the distribution only
          because it may contain data files, but this behavior is likely to change
          in future versions of setuptools (and therefore is considered deprecated).

          Please make sure that 'insightface.thirdparty.face3d.mesh.cython' is included as a package by using
          the `packages` configuration field or the proper discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).

          You can read more about "package discovery" and "data files" on setuptools
          documentation page.


      !!

        check.warn(importable)
      C:\SD\ComfyUI_windows_portable\python_embeded\lib\site-packages\setuptools\command\build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'insightface.data.images' as data is deprecated, please list it in `packages`.
          !!


          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'insightface.data.images' as an importable package,
          but it is not listed in the `packages` configuration of setuptools.

          'insightface.data.images' has been automatically added to the distribution only
          because it may contain data files, but this behavior is likely to change
          in future versions of setuptools (and therefore is considered deprecated).

          Please make sure that 'insightface.data.images' is included as a package by using
          the `packages` configuration field or the proper discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).

          You can read more about "package discovery" and "data files" on setuptools
          documentation page.


      !!

        check.warn(importable)
      C:\SD\ComfyUI_windows_portable\python_embeded\lib\site-packages\setuptools\command\build_py.py:202: SetuptoolsDeprecationWarning:     Installing 'insightface.data.objects' as data is deprecated, please list it in `packages`.
          !!


          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'insightface.data.objects' as an importable package,
          but it is not listed in the `packages` configuration of setuptools.

          'insightface.data.objects' has been automatically added to the distribution only
          because it may contain data files, but this behavior is likely to change
          in future versions of setuptools (and therefore is considered deprecated).

          Please make sure that 'insightface.data.objects' is included as a package by using
          the `packages` configuration field or the proper discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).

          You can read more about "package discovery" and "data files" on setuptools
          documentation page.


      !!

        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_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.h -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh\cython
      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.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
      "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Iinsightface/thirdparty/face3d/mesh/cython -IC:\SD\ComfyUI_windows_portable\python_embeded\lib\site-packages\numpy\core\include -IC:\SD\ComfyUI_windows_portable\python_embeded\include -IC:\SD\ComfyUI_windows_portable\python_embeded\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /EHsc /Tpinsightface/thirdparty/face3d/mesh/cython/mesh_core.cpp /Fobuild\temp.win-amd64-cpython-310\Release\insightface/thirdparty/face3d/mesh/cython/mesh_core.obj
      mesh_core.cpp
      insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(147): warning C4244: "=": Konvertierung von "int" in "float", m”glicher Datenverlust
      insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(147): warning C4244: "=": Konvertierung von "int" in "float", m”glicher Datenverlust
      insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(210): warning C4244: "=": Konvertierung von "int" in "float", m”glicher Datenverlust
      insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(210): warning C4244: "=": Konvertierung von "int" in "float", m”glicher Datenverlust
      insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(294): warning C4244: "=": Konvertierung von "int" in "float", m”glicher Datenverlust
      insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(294): warning C4244: "=": Konvertierung von "int" in "float", m”glicher Datenverlust
      "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Iinsightface/thirdparty/face3d/mesh/cython -IC:\SD\ComfyUI_windows_portable\python_embeded\lib\site-packages\numpy\core\include -IC:\SD\ComfyUI_windows_portable\python_embeded\include -IC:\SD\ComfyUI_windows_portable\python_embeded\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /EHsc /Tpinsightface/thirdparty/face3d/mesh/cython/mesh_core_cython.cpp /Fobuild\temp.win-amd64-cpython-310\Release\insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.obj
      mesh_core_cython.cpp
      insightface/thirdparty/face3d/mesh/cython/mesh_core_cython.cpp(26): fatal error C1083: Datei (Include) kann nicht ge”ffnet werden: "Python.h": No such file or directory
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.36.32532\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [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

which seems to be this issue
https://github.com/s0md3v/roop/issues/99

I guess it has something to do with Comfys embedded python, because my locally installed python installs all packages as required.
But of course all packages of my local python installation are not available on the embedded python of ComfyUI so I still run into this problem.

Could you please assist with this issue?

Kind regards

@MoonMoon82 MoonMoon82 changed the title ComfyUIs python_embeded does not want to compile ComfyUIs python_embeded does not want to compile insightface Jun 26, 2023
@melMass
Copy link
Owner

melMass commented Jun 27, 2023

Hi Moon Moon,

Thanks for the report, I've seen this before (python headers missing)!
From the issue you linked it seems to be a missing VS SDK on windows: https://stackoverflow.com/a/52397318/5412273
And on Linux, one must install the python3-dev!

I'm in the process of simplifying the install process too, it should be ready by tomorrow!

@MoonMoon82
Copy link
Author

Hi @melMass and thank you for your reply!
I already installed this VS SDK and in general my locally installed python environment is fine with "building wheel for insightface". But if a call the embedded python environment
([...]python_embeded\python.exe` -m pip install -r requirements.txt)
this error still occurs.
I guess it has something to do with the embedded python environment not finding the right python3-dev files - even when they are already installed.

Thank you for taking care of this powerful ComfyUI node! I really appreciate your effort!

Kind regards

@melMass
Copy link
Owner

melMass commented Jun 27, 2023

I discovered the python-embed mode thanks to this issue!
I just tried and can reproduce! I will see how much the wheel weights and if they are not too big, I'll include them in releases, I'll do the first tag/release tomorrow probably!

@melMass
Copy link
Owner

melMass commented Jun 28, 2023

you can try the wheels for windows here release, you don't need to download the 135mb zip as it's just bundling a submodule that I will soon get rid off

@MoonMoon82
Copy link
Author

MoonMoon82 commented Jun 29, 2023

Thank you @melMass,
In which folder do I have to put these whl files and is there anything I need to run afterwards?
EDIT: nevermind - I ran
C:\SD\ComfyUI_windows_portable\python_embeded\python.exe -m pip install insightface-0.7.3-cp310-cp310-win_amd64.whl
and the requirements installed successfully! Now I give your nodes a try ;-)

@melMass
Copy link
Owner

melMass commented Jun 29, 2023

I should probably add it to the readme!
You can use python -m pip install file.whl

@melMass
Copy link
Owner

melMass commented Jun 29, 2023

Fixed in #4 !

@melMass melMass closed this as completed Jun 29, 2023
@melMass melMass linked a pull request Jun 29, 2023 that will close this issue
@melMass melMass added the mode: 🎒 comfy-embed Related to the comfy embed mode label Jul 6, 2023
@techoutsider
Copy link

techoutsider commented Jul 28, 2023

when installing the .whl files as stated above basicsr gets and error as satisfied,

python -m pip install basicsr-1.4.2-py3-none-any.whl

**Requirement already satisfied: addict in d:\2023\stable_diffusion_xl\comfyui_windows_portable\python_embeded\lib\site-packages (from basicsr==1.4.2) (2.4.0)
Collecting future (from basicsr==1.4.2)
Using cached future-0.18.3.tar.gz (840 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\joe\AppData\Local\Temp\pip-install-_blfa1fq\future_c67008316eb541ba85e68c2f4bfdb566\setup.py", line 86, in
import src.future
ModuleNotFoundError: No module named 'src'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.**

but when i run comfyui it says

**### Loading: ComfyUI-Manager (V0.15.1)

ComfyUI Revision: 1211 [00da9b32]

Log level: 20
[comfy_mtb] | WARNING -> Web extensions folder at D:\2023\stable_diffusion_xl\ComfyUI_windows_portable\ComfyUI\web\extensions\mtb is not a symlink, if updating please delete it before
RestoreFace
LoadFaceEnhanceModel
[comfy_mtb] | INFO -> Some nodes failed to load:
Failed to import module faceenhance because ModuleNotFoundError: No module named 'basicsr'**

Repository owner locked as resolved and limited conversation to collaborators Jul 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
install issue mode: 🎒 comfy-embed Related to the comfy embed mode
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants