Gourieff / comfyui-reactor-node

Fast and Simple Face Swap Extension Node for ComfyUI
GNU General Public License v3.0
1.41k stars 134 forks source link

Problem Installing "install.bat" from Reactor node. #174

Closed fujiman94 closed 7 months ago

fujiman94 commented 8 months ago

First, confirm

What happened?

im trying to install the reactor node, but there is a issue that still happening.

Steps to reproduce the problem

Open Reactor Node folder 2 click on "install.bat: when installing. Screenshot_1

Sysinfo

Win 10 Home AMD Ryzen 7 5800H

Relevant console log

Installing...
Status: The 'insightface==0.7.3' distribution was not found and is required by the application
Collecting insightface==0.7.3
  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 c:\comfyui\python_embeded\lib\site-packages (from insightface==0.7.3) (1.26.2)
Requirement already satisfied: onnx in c:\comfyui\python_embeded\lib\site-packages (from insightface==0.7.3) (1.15.0)
Requirement already satisfied: tqdm in c:\comfyui\python_embeded\lib\site-packages (from insightface==0.7.3) (4.66.1)
Requirement already satisfied: requests in c:\comfyui\python_embeded\lib\site-packages (from insightface==0.7.3) (2.31.0)
Requirement already satisfied: matplotlib in c:\comfyui\python_embeded\lib\site-packages (from insightface==0.7.3) (3.8.2)
Requirement already satisfied: Pillow in c:\comfyui\python_embeded\lib\site-packages (from insightface==0.7.3) (9.5.0)
Requirement already satisfied: scipy in c:\comfyui\python_embeded\lib\site-packages (from insightface==0.7.3) (1.11.4)
Requirement already satisfied: scikit-learn in c:\comfyui\python_embeded\lib\site-packages (from insightface==0.7.3) (1.3.2)
Requirement already satisfied: scikit-image in c:\comfyui\python_embeded\lib\site-packages (from insightface==0.7.3) (0.22.0)
Collecting easydict (from insightface==0.7.3)
  Using cached easydict-1.11-py3-none-any.whl
Requirement already satisfied: cython in c:\comfyui\python_embeded\lib\site-packages (from insightface==0.7.3) (0.29.37)Collecting albumentations (from insightface==0.7.3)
  Using cached albumentations-1.3.1-py3-none-any.whl.metadata (34 kB)
Collecting prettytable (from insightface==0.7.3)
  Using cached prettytable-3.9.0-py3-none-any.whl.metadata (26 kB)
Requirement already satisfied: PyYAML in c:\comfyui\python_embeded\lib\site-packages (from albumentations->insightface==0.7.3) (6.0.1)
Collecting qudida>=0.0.4 (from albumentations->insightface==0.7.3)
  Using cached qudida-0.0.4-py3-none-any.whl (3.5 kB)
Requirement already satisfied: opencv-python-headless>=4.1.1 in c:\comfyui\python_embeded\lib\site-packages (from albumentations->insightface==0.7.3) (4.7.0.72)
Requirement already satisfied: networkx>=2.8 in c:\comfyui\python_embeded\lib\site-packages (from scikit-image->insightface==0.7.3) (3.2.1)
Requirement already satisfied: imageio>=2.27 in c:\comfyui\python_embeded\lib\site-packages (from scikit-image->insightface==0.7.3) (2.33.1)
Requirement already satisfied: tifffile>=2022.8.12 in c:\comfyui\python_embeded\lib\site-packages (from scikit-image->insightface==0.7.3) (2023.12.9)
Requirement already satisfied: packaging>=21 in c:\comfyui\python_embeded\lib\site-packages (from scikit-image->insightface==0.7.3) (23.2)
Requirement already satisfied: lazy_loader>=0.3 in c:\comfyui\python_embeded\lib\site-packages (from scikit-image->insightface==0.7.3) (0.3)
Requirement already satisfied: contourpy>=1.0.1 in c:\comfyui\python_embeded\lib\site-packages (from matplotlib->insightface==0.7.3) (1.2.0)
Requirement already satisfied: cycler>=0.10 in c:\comfyui\python_embeded\lib\site-packages (from matplotlib->insightface==0.7.3) (0.12.1)
Requirement already satisfied: fonttools>=4.22.0 in c:\comfyui\python_embeded\lib\site-packages (from matplotlib->insightface==0.7.3) (4.47.0)
Requirement already satisfied: kiwisolver>=1.3.1 in c:\comfyui\python_embeded\lib\site-packages (from matplotlib->insightface==0.7.3) (1.4.5)
Requirement already satisfied: pyparsing>=2.3.1 in c:\comfyui\python_embeded\lib\site-packages (from matplotlib->insightface==0.7.3) (3.1.1)
Requirement already satisfied: python-dateutil>=2.7 in c:\comfyui\python_embeded\lib\site-packages (from matplotlib->insightface==0.7.3) (2.8.2)
Requirement already satisfied: protobuf>=3.20.2 in c:\comfyui\python_embeded\lib\site-packages (from onnx->insightface==0.7.3) (3.20.3)
Requirement already satisfied: wcwidth in c:\comfyui\python_embeded\lib\site-packages (from prettytable->insightface==0.7.3) (0.2.12)
Requirement already satisfied: charset-normalizer<4,>=2 in c:\comfyui\python_embeded\lib\site-packages (from requests->insightface==0.7.3) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in c:\comfyui\python_embeded\lib\site-packages (from requests->insightface==0.7.3) (3.6)
Requirement already satisfied: urllib3<3,>=1.21.1 in c:\comfyui\python_embeded\lib\site-packages (from requests->insightface==0.7.3) (1.26.18)
Requirement already satisfied: certifi>=2017.4.17 in c:\comfyui\python_embeded\lib\site-packages (from requests->insightface==0.7.3) (2023.11.17)
Requirement already satisfied: joblib>=1.1.1 in c:\comfyui\python_embeded\lib\site-packages (from scikit-learn->insightface==0.7.3) (1.3.2)
Requirement already satisfied: threadpoolctl>=2.0.0 in c:\comfyui\python_embeded\lib\site-packages (from scikit-learn->insightface==0.7.3) (3.2.0)
Requirement already satisfied: colorama in c:\comfyui\python_embeded\lib\site-packages (from tqdm->insightface==0.7.3) (0.4.6)
Requirement already satisfied: six>=1.5 in c:\comfyui\python_embeded\lib\site-packages (from python-dateutil>=2.7->matplotlib->insightface==0.7.3) (1.16.0)
Requirement already satisfied: typing-extensions in c:\comfyui\python_embeded\lib\site-packages (from qudida>=0.0.4->albumentations->insightface==0.7.3) (4.9.0)
Using cached albumentations-1.3.1-py3-none-any.whl (125 kB)
Using cached prettytable-3.9.0-py3-none-any.whl (27 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
  ╰─> [109 lines of output]
      WARNING: pandoc not enabled
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-3.11
      creating build\lib.win-amd64-3.11\insightface
      copying insightface\__init__.py -> build\lib.win-amd64-3.11\insightface
      creating build\lib.win-amd64-3.11\insightface\app
      copying insightface\app\common.py -> build\lib.win-amd64-3.11\insightface\app
      copying insightface\app\face_analysis.py -> build\lib.win-amd64-3.11\insightface\app
      copying insightface\app\mask_renderer.py -> build\lib.win-amd64-3.11\insightface\app
      copying insightface\app\__init__.py -> build\lib.win-amd64-3.11\insightface\app
      creating build\lib.win-amd64-3.11\insightface\commands
      copying insightface\commands\insightface_cli.py -> build\lib.win-amd64-3.11\insightface\commands
      copying insightface\commands\model_download.py -> build\lib.win-amd64-3.11\insightface\commands
      copying insightface\commands\rec_add_mask_param.py -> build\lib.win-amd64-3.11\insightface\commands
      copying insightface\commands\__init__.py -> build\lib.win-amd64-3.11\insightface\commands
      creating build\lib.win-amd64-3.11\insightface\data
      copying insightface\data\image.py -> build\lib.win-amd64-3.11\insightface\data
      copying insightface\data\pickle_object.py -> build\lib.win-amd64-3.11\insightface\data
      copying insightface\data\rec_builder.py -> build\lib.win-amd64-3.11\insightface\data
      copying insightface\data\__init__.py -> build\lib.win-amd64-3.11\insightface\data
      creating build\lib.win-amd64-3.11\insightface\model_zoo
      copying insightface\model_zoo\arcface_onnx.py -> build\lib.win-amd64-3.11\insightface\model_zoo
      copying insightface\model_zoo\attribute.py -> build\lib.win-amd64-3.11\insightface\model_zoo
      copying insightface\model_zoo\inswapper.py -> build\lib.win-amd64-3.11\insightface\model_zoo
      copying insightface\model_zoo\landmark.py -> build\lib.win-amd64-3.11\insightface\model_zoo
      copying insightface\model_zoo\model_store.py -> build\lib.win-amd64-3.11\insightface\model_zoo
      copying insightface\model_zoo\model_zoo.py -> build\lib.win-amd64-3.11\insightface\model_zoo
      copying insightface\model_zoo\retinaface.py -> build\lib.win-amd64-3.11\insightface\model_zoo
      copying insightface\model_zoo\scrfd.py -> build\lib.win-amd64-3.11\insightface\model_zoo
      copying insightface\model_zoo\__init__.py -> build\lib.win-amd64-3.11\insightface\model_zoo
      creating build\lib.win-amd64-3.11\insightface\thirdparty
      copying insightface\thirdparty\__init__.py -> build\lib.win-amd64-3.11\insightface\thirdparty
      creating build\lib.win-amd64-3.11\insightface\utils
      copying insightface\utils\constant.py -> build\lib.win-amd64-3.11\insightface\utils
      copying insightface\utils\download.py -> build\lib.win-amd64-3.11\insightface\utils
      copying insightface\utils\face_align.py -> build\lib.win-amd64-3.11\insightface\utils
      copying insightface\utils\filesystem.py -> build\lib.win-amd64-3.11\insightface\utils
      copying insightface\utils\storage.py -> build\lib.win-amd64-3.11\insightface\utils
      copying insightface\utils\transform.py -> build\lib.win-amd64-3.11\insightface\utils
      copying insightface\utils\__init__.py -> build\lib.win-amd64-3.11\insightface\utils
      creating build\lib.win-amd64-3.11\insightface\thirdparty\face3d
      copying insightface\thirdparty\face3d\__init__.py -> build\lib.win-amd64-3.11\insightface\thirdparty\face3d
      creating build\lib.win-amd64-3.11\insightface\thirdparty\face3d\mesh
      copying insightface\thirdparty\face3d\mesh\io.py -> build\lib.win-amd64-3.11\insightface\thirdparty\face3d\mesh
      copying insightface\thirdparty\face3d\mesh\light.py -> build\lib.win-amd64-3.11\insightface\thirdparty\face3d\mesh      copying insightface\thirdparty\face3d\mesh\render.py -> build\lib.win-amd64-3.11\insightface\thirdparty\face3d\mesh
      copying insightface\thirdparty\face3d\mesh\transform.py -> build\lib.win-amd64-3.11\insightface\thirdparty\face3d\mesh
      copying insightface\thirdparty\face3d\mesh\vis.py -> build\lib.win-amd64-3.11\insightface\thirdparty\face3d\mesh
      copying insightface\thirdparty\face3d\mesh\__init__.py -> build\lib.win-amd64-3.11\insightface\thirdparty\face3d\mesh
      creating build\lib.win-amd64-3.11\insightface\thirdparty\face3d\mesh_numpy
      copying insightface\thirdparty\face3d\mesh_numpy\io.py -> build\lib.win-amd64-3.11\insightface\thirdparty\face3d\mesh_numpy
      copying insightface\thirdparty\face3d\mesh_numpy\light.py -> build\lib.win-amd64-3.11\insightface\thirdparty\face3d\mesh_numpy
      copying insightface\thirdparty\face3d\mesh_numpy\render.py -> build\lib.win-amd64-3.11\insightface\thirdparty\face3d\mesh_numpy
      copying insightface\thirdparty\face3d\mesh_numpy\transform.py -> build\lib.win-amd64-3.11\insightface\thirdparty\face3d\mesh_numpy
      copying insightface\thirdparty\face3d\mesh_numpy\vis.py -> build\lib.win-amd64-3.11\insightface\thirdparty\face3d\mesh_numpy
      copying insightface\thirdparty\face3d\mesh_numpy\__init__.py -> build\lib.win-amd64-3.11\insightface\thirdparty\face3d\mesh_numpy
      creating build\lib.win-amd64-3.11\insightface\thirdparty\face3d\morphable_model
      copying insightface\thirdparty\face3d\morphable_model\fit.py -> build\lib.win-amd64-3.11\insightface\thirdparty\face3d\morphable_model
      copying insightface\thirdparty\face3d\morphable_model\load.py -> build\lib.win-amd64-3.11\insightface\thirdparty\face3d\morphable_model
      copying insightface\thirdparty\face3d\morphable_model\morphabel_model.py -> build\lib.win-amd64-3.11\insightface\thirdparty\face3d\morphable_model
      copying insightface\thirdparty\face3d\morphable_model\__init__.py -> build\lib.win-amd64-3.11\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'
      creating build\lib.win-amd64-3.11\insightface\thirdparty\face3d\mesh\cython
      copying insightface\thirdparty\face3d\mesh\cython\mesh_core.cpp -> build\lib.win-amd64-3.11\insightface\thirdparty\face3d\mesh\cython
      copying insightface\thirdparty\face3d\mesh\cython\mesh_core_cython.cpp -> build\lib.win-amd64-3.11\insightface\thirdparty\face3d\mesh\cython
      creating build\lib.win-amd64-3.11\insightface\data\images
      copying insightface\data\images\Tom_Hanks_54745.png -> build\lib.win-amd64-3.11\insightface\data\images
      copying insightface\data\images\mask_black.jpg -> build\lib.win-amd64-3.11\insightface\data\images
      copying insightface\data\images\mask_blue.jpg -> build\lib.win-amd64-3.11\insightface\data\images
      copying insightface\data\images\mask_green.jpg -> build\lib.win-amd64-3.11\insightface\data\images
      copying insightface\data\images\mask_white.jpg -> build\lib.win-amd64-3.11\insightface\data\images
      copying insightface\data\images\t1.jpg -> build\lib.win-amd64-3.11\insightface\data\images
      creating build\lib.win-amd64-3.11\insightface\data\objects
      copying insightface\data\objects\meanshape_68.pkl -> build\lib.win-amd64-3.11\insightface\data\objects
      copying insightface\thirdparty\face3d\mesh\cython\mesh_core.h -> build\lib.win-amd64-3.11\insightface\thirdparty\face3d\mesh\cython
      copying insightface\thirdparty\face3d\mesh\cython\mesh_core_cython.c -> build\lib.win-amd64-3.11\insightface\thirdparty\face3d\mesh\cython
      copying insightface\thirdparty\face3d\mesh\cython\mesh_core_cython.pyx -> build\lib.win-amd64-3.11\insightface\thirdparty\face3d\mesh\cython
      copying insightface\thirdparty\face3d\mesh\cython\setup.py -> build\lib.win-amd64-3.11\insightface\thirdparty\face3d\mesh\cython
      running build_ext
      building 'insightface.thirdparty.face3d.mesh.cython.mesh_core_cython' extension
      creating build\temp.win-amd64-3.11
      creating build\temp.win-amd64-3.11\Release
      creating build\temp.win-amd64-3.11\Release\insightface
      creating build\temp.win-amd64-3.11\Release\insightface\thirdparty
      creating build\temp.win-amd64-3.11\Release\insightface\thirdparty\face3d
      creating build\temp.win-amd64-3.11\Release\insightface\thirdparty\face3d\mesh
      creating build\temp.win-amd64-3.11\Release\insightface\thirdparty\face3d\mesh\cython
      "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.38.33130\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Iinsightface/thirdparty/face3d/mesh/cython -IC:\ComfyUI\python_embeded\Lib\site-packages\numpy\core\include -IC:\ComfyUI\python_embeded\include -IC:\ComfyUI\python_embeded\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.38.33130\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" /EHsc /Tpinsightface/thirdparty/face3d/mesh/cython/mesh_core.cpp /Fobuild\temp.win-amd64-3.11\Release\insightface/thirdparty/face3d/mesh/cython/mesh_core.obj
      mesh_core.cpp
      insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(147): warning C4244: '=': conversion from 'int' to 'float', possible loss of data
      insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(147): warning C4244: '=': conversion from 'int' to 'float', possible loss of data
      insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(210): warning C4244: '=': conversion from 'int' to 'float', possible loss of data
      insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(210): warning C4244: '=': conversion from 'int' to 'float', possible loss of data
      insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(294): warning C4244: '=': conversion from 'int' to 'float', possible loss of data
      insightface/thirdparty/face3d/mesh/cython/mesh_core.cpp(294): warning C4244: '=': conversion from 'int' to 'float', possible loss of data
      "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.38.33130\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Iinsightface/thirdparty/face3d/mesh/cython -IC:\ComfyUI\python_embeded\Lib\site-packages\numpy\core\include -IC:\ComfyUI\python_embeded\include -IC:\ComfyUI\python_embeded\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.38.33130\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" /EHsc /Tpinsightface/thirdparty/face3d/mesh/cython/mesh_core_cython.cpp /Fobuild\temp.win-amd64-3.11\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: Cannot open include file: 'Python.h': No such file or directory
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.38.33130\\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
Ok
Done!
Press any key to continue . . .

Additional information

No response

Gourieff commented 8 months ago

https://github.com/Gourieff/comfyui-reactor-node#insightfacebuild

fdtory commented 8 months ago

Had this exact same issue. @Gourieff solved it. Thanks!

Skettalee commented 7 months ago

I am having an issue not being able to reinstall Reactor to my comfyui that im reinstalling. And I have tried getting to command prompt every way i can and getting to comfyui-reactor-node and typed install.bat and that file does nothing. it sites on the word "installing...." its be 2 hours i've waited and i feel like ive tried everything i can, whats hanging this install.bat up for me?