Gourieff / comfyui-reactor-node

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

(IMPORT FAILED) ReActor Node for ComfyUI #436

Open PoisonRAR opened 1 month ago

PoisonRAR commented 1 month ago

First, confirm

What happened?

Get the following error for ReActor Node

image

image

Steps to reproduce the problem

Your workflow

Sysinfo

Windows 11, GTX 4080

Relevant console log

--

Additional information

No response

ForxBase commented 1 month ago

I get the same error.

IrfanKheiri commented 1 month ago

Same error. tried reinstalling mutltiple times. tried try fix from manager. nothing works. :(

Gourieff commented 1 month ago

I've just tried to install everything from the scratch (latest ComfyUI + ReActor) and ReActor works perfectly from the box You guys can show your console logs if you have errors The most common error is about Insightface installation, just read the instruction carefully and you will succeed https://github.com/Gourieff/comfyui-reactor-node#installation https://github.com/Gourieff/comfyui-reactor-node#insightfacebuild

IrfanKheiri commented 1 month ago

I've just tried to install everything from the scratch (latest ComfyUI + ReActor) and ReActor works perfectly from the box You guys can show your console logs if you have errors The most common error is about Insightface installation, just read the instruction carefully and you will succeed https://github.com/Gourieff/comfyui-reactor-node#installation https://github.com/Gourieff/comfyui-reactor-node#insightfacebuild

tried to reinstall insightface: python.exe -m pip install --force-reinstall insightface-0.7.3-cp311-cp311-win_amd64.whl (inside the python_embeded dir, after downloading the insightface whl

Got the following errors (after a long list of stuff):

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. arxiv 2.0.0 requires requests==2.31.0, but you have requests 2.32.3 which is incompatible. grpcio-tools 1.62.2 requires protobuf<5.0dev,>=4.21.6, but you have protobuf 5.28.2 which is incompatible. inference 0.19.0 requires cython<=3.0.0, but you have cython 3.0.11 which is incompatible. inference 0.19.0 requires numpy<=1.26.4, but you have numpy 2.1.1 which is incompatible. inference 0.19.0 requires onnxruntime<=1.15.1, but you have onnxruntime 1.19.2 which is incompatible. inference 0.19.0 requires requests<=2.31.0, but you have requests 2.32.3 which is incompatible. langchain 0.1.1 requires numpy<2,>=1, but you have numpy 2.1.1 which is incompatible. langchain-community 0.0.13 requires numpy<2,>=1, but you have numpy 2.1.1 which is incompatible. langchain-core 0.1.12 requires packaging<24.0,>=23.2, but you have packaging 24.1 which is incompatible. langchain-openai 0.0.2.post1 requires numpy<2,>=1, but you have numpy 2.1.1 which is incompatible. opentelemetry-proto 1.22.0 requires protobuf<5.0,>=3.19, but you have protobuf 5.28.2 which is incompatible. pyppeteer 2.0.0 requires urllib3<2.0.0,>=1.25.8, but you have urllib3 2.2.3 which is incompatible. tavily-python 0.2.8 requires tiktoken==0.5.1, but you have tiktoken 0.5.2 which is incompatible.

End result: Reactor still not working. (it was working yesterday, until i did a comfy update today)

IrfanKheiri commented 1 month ago

Deleted reactor folder inside custom nodes, did a git pull and then ran install.bat Still no luck

IrfanKheiri commented 1 month ago

(base) PS D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node> install.bat Installing... CUDA 12.1 Ok Done

Gourieff commented 1 month ago

--force-reinstall - not the best idea to do like this, you can easily break dependencies chains with this option especially when you have a lot of libs installed

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.

ReActor has nothing to do with this error But you can downgrade numpy (e.g. to 1.25.2) and protobuf (e.g. to 3.20.3) to resolve most of the conflicts

You guys can show your console logs if you have errors

As I said earlier you can show your console log with errors you get when you see that the ReActor's import is failed

IrfanKheiri commented 1 month ago

ComfyUI-Manager: installing dependencies done.

ComfyUI startup time: 2024-09-24 11:45:40.700781 Platform: Windows Python version: 3.11.6 (tags/v3.11.6:8b6ee5b, Oct 2 2023, 14:57:12) [MSC v.1935 64 bit (AMD64)] Python executable: D:\SD\ComfyUI_windows_portable\python_embeded\python.exe ComfyUI Path: D:\SD\ComfyUI_windows_portable\ComfyUI Log path: D:\SD\ComfyUI_windows_portable\comfyui.log

Prestartup times for custom nodes: 1.2 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager

Total VRAM 6144 MB, total RAM 32469 MB pytorch version: 2.4.1+cu121 Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce RTX 3060 Laptop GPU : cudaMallocAsync Using pytorch cross attention [Prompt Server] web root: D:\SD\ComfyUI_windows_portable\ComfyUI\web Adding extra search path checkpoints C:/Temp/1111/stable-diffusion-webui/models/Stable-diffusion Adding extra search path configs C:/Temp/1111/stable-diffusion-webui/models/Stable-diffusion Adding extra search path vae C:/Temp/1111/stable-diffusion-webui/models/VAE Adding extra search path loras C:/Temp/1111/stable-diffusion-webui/models/Lora Adding extra search path loras C:/Temp/1111/stable-diffusion-webui/models/LyCORIS Adding extra search path upscale_models C:/Temp/1111/stable-diffusion-webui/models/ESRGAN Adding extra search path upscale_models C:/Temp/1111/stable-diffusion-webui/models/RealESRGAN Adding extra search path upscale_models C:/Temp/1111/stable-diffusion-webui/models/SwinIR Adding extra search path embeddings C:/Temp/1111/stable-diffusion-webui/embeddings Adding extra search path hypernetworks C:/Temp/1111/stable-diffusion-webui/models/hypernetworks Adding extra search path controlnet C:/Temp/1111/stable-diffusion-webui/models/ControlNet D:\SD\ComfyUI_windows_portable\python_embeded\Lib\site-packages\kornia\feature\lightglue.py:44: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead. @torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)

Loading: ComfyUI-Impact-Pack (V7.6.2)

Loading: ComfyUI-Impact-Pack (Subpack: V0.6)

[Impact Pack] Wildcards loading done.

Loading: ComfyUI-Inspire-Pack (V1.2.2)

Loading: ComfyUI-Manager (V2.51.1)

ComfyUI Revision: 2724 [3a0eeee3] | Released on '2024-09-23'

Openpose Editor Plus: Loaded Traceback (most recent call last): File "D:\SD\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1998, in load_custom_node module_spec.loader.exec_module(module) File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node__init.py", line 23, in from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS File "D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\nodes.py", line 15, in from insightface.app.common import Face File "D:\SD\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface__init.py", line 18, in from . import app File "D:\SD\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface\app__init.py", line 2, in from .mask_renderer import File "D:\SD\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface\app\mask_renderer.py", line 4, in import albumentations as A File "D:\SD\ComfyUI_windows_portable\python_embeded\Lib\site-packages\albumentations__init__.py", line 6, in from .augmentations import File "D:\SD\ComfyUI_windows_portable\python_embeded\Lib\site-packages\albumentations\augmentations\init__.py", line 1, in from .blur.functional import * File "D:\SD\ComfyUI_windows_portable\python_embeded\Lib\site-packages\albumentations\augmentations\blur\init__.py", line 1, in from .functional import * File "D:\SD\ComfyUI_windows_portable\python_embeded\Lib\site-packages\albumentations\augmentations\blur\functional.py", line 11, in from albumentations.augmentations.functional import convolve File "D:\SD\ComfyUI_windows_portable\python_embeded\Lib\site-packages\albumentations\augmentations\functional.py", line 32, in from albumentations.augmentations.geometric.functional import resize File "D:\SD\ComfyUI_windows_portable\python_embeded\Lib\site-packages\albumentations\augmentations\geometric\init__.py", line 2, in from .resize import * File "D:\SD\ComfyUI_windows_portable\python_embeded\Lib\site-packages\albumentations\augmentations\geometric\resize.py", line 8, in from pydantic import Field, ValidationInfo, field_validator ModuleNotFoundError: No module named 'pydantic'

Cannot import D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node module for custom nodes: No module named 'pydantic' [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json (pysssss:WD14Tagger) [DEBUG] Available ORT providers: TensorrtExecutionProvider, CUDAExecutionProvider, CPUExecutionProvider (pysssss:WD14Tagger) [DEBUG] Using ORT providers: CUDAExecutionProvider, CPUExecutionProvider

Comfyroll Studio v1.76 : 175 Nodes Loaded

For changes, please see patch notes at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/blob/main/Patch_Notes.md For help, please see the wiki at https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes/wiki

[comfyui_controlnet_aux] | INFO -> Using ckpts path: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\ckpts [comfyui_controlnet_aux] | INFO -> Using symlinks: False [comfyui_controlnet_aux] | INFO -> Using ort providers: ['CUDAExecutionProvider', 'DirectMLExecutionProvider', 'OpenVINOExecutionProvider', 'ROCMExecutionProvider', 'CPUExecutionProvider', 'CoreMLExecutionProvider'] DWPose: Onnxruntime with acceleration providers detected [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json Davemane42 Custom Nodes: Loaded [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json Efficiency Nodes: Attempting to add Control Net options to the 'HiRes-Fix Script' Node (comfyui_controlnet_aux add-on)...Success! WAS Node Suite: OpenCV Python FFMPEG support is enabled WAS Node Suite Warning: ffmpeg_bin_path is not set in D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui\was_suite_config.json config file. Will attempt to use system ffmpeg binaries if available. WAS Node Suite: Finished. Loaded 218 nodes successfully.

    "Believe you can and you're halfway there." - Theodore Roosevelt

[WAS Extras] Loading extra custom nodes... [WAS Extras] Import times for extras: 0.0 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\WAS_Extras\ConditioningBlend.py 0.0 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\WAS_Extras\DebugThis.py 0.0 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\WAS_Extras\VAEEncodeForInpaint.py 0.0 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\WAS_Extras\VividSharpen.py 0.0 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\WAS_Extras\ksampler_sequence.py 0.0 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\WAS_Extras\BLVaeEncode.py

Import times for custom nodes: 0.0 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\sdxl_utility.py 0.0 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\yugioh-presets.py 0.0 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\websocket_image_save.py 0.0 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\SD-Latent-Upscaler 0.0 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\save-image-extended-comfyui 0.0 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\stability-ComfyUI-nodes 0.0 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfy_clip_blip_node 0.0 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Noise 0.0 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUi_NNLatentUpscale 0.0 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Embedding_Picker 0.0 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-previewlatent 0.0 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\masquerade-nodes-comfyui 0.0 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Cutoff 0.0 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-AutomaticCFG 0.0 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\Comfyui_joytag 0.0 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Dave_CustomNode 0.0 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-WD14-Tagger 0.0 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\WAS_Extras 0.0 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\Derfuu_ComfyUI_ModdedNodes 0.0 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_UltimateSDUpscale 0.0 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Openpose-Editor-Plus 0.0 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\efficiency-nodes-comfyui 0.0 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_bitsandbytes_NF4 0.0 seconds (IMPORT FAILED): D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node 0.0 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Comfyroll_CustomNodes 0.0 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus 0.0 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Inspire-Pack 0.0 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux 0.1 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Custom-Scripts 0.1 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite 0.2 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack 0.3 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_segment_anything 0.3 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager 0.7 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\bilbox-comfyui 1.4 seconds: D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui

Starting server

Gourieff commented 1 month ago
python_embeded\python.exe -m pip install pydantic==2.7.2 albumentations==1.4.16
IrfanKheiri commented 1 month ago

Traceback (most recent call last): File "D:\SD\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1998, in load_custom_node module_spec.loader.exec_module(module) File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node__init.py", line 23, in from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS File "D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node\nodes.py", line 15, in from insightface.app.common import Face File "D:\SD\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface__init.py", line 18, in from . import app File "D:\SD\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface\app__init.py", line 2, in from .mask_renderer import File "D:\SD\ComfyUI_windows_portable\python_embeded\Lib\site-packages\insightface\app\mask_renderer.py", line 4, in import albumentations as A File "D:\SD\ComfyUI_windows_portable\python_embeded\Lib\site-packages\albumentations__init__.py", line 6, in from .augmentations import File "D:\SD\ComfyUI_windows_portable\python_embeded\Lib\site-packages\albumentations\augmentations\init__.py", line 1, in from .blur.functional import * File "D:\SD\ComfyUI_windows_portable\python_embeded\Lib\site-packages\albumentations\augmentations\blur\init__.py", line 1, in from .functional import * File "D:\SD\ComfyUI_windows_portable\python_embeded\Lib\site-packages\albumentations\augmentations\blur\functional.py", line 11, in from albumentations.augmentations.functional import convolve File "D:\SD\ComfyUI_windows_portable\python_embeded\Lib\site-packages\albumentations\augmentations\functional.py", line 32, in from albumentations.augmentations.geometric.functional import resize File "D:\SD\ComfyUI_windows_portable\python_embeded\Lib\site-packages\albumentations\augmentations\geometric\init__.py", line 2, in from .resize import * File "D:\SD\ComfyUI_windows_portable\python_embeded\Lib\site-packages\albumentations\augmentations\geometric\resize.py", line 8, in from pydantic import Field, ValidationInfo, field_validator ModuleNotFoundError: No module named 'pydantic'

Cannot import D:\SD\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node module for custom nodes: No module named 'pydantic' (pysssss:WD14Tagger) [DEBUG] Available ORT providers: TensorrtExecutionProvider, CUDAExecutionProvider, CPUExecutionProvider (pysssss:WD14Tagger) [DEBUG] Using ORT providers: CUDAExecutionProvider, CPUExecutionProvider

Still a problem with pydantic after python_embeded\python.exe -m pip install pydantic==2.7.2 albumentations==1.4.16

and it's there in the environment: (base) PS D:\SD\ComfyUI_windows_portable\python_embeded> python.exe -c "import pydantic; print(pydantic.version)" 2.7.2

Gourieff commented 1 month ago

Still a problem with pydantic after python_embeded\python.exe -m pip install pydantic==2.7.2 albumentations==1.4.16 and it's there in the environment: (base) PS D:\SD\ComfyUI_windows_portable\python_embeded> python.exe -c "import pydantic; print(pydantic.version)" 2.7.2

This is very strange... 🤔 Try to ensure that you have pydantic inside the D:\SD\ComfyUI_windows_portable\python_embeded\Lib\site-packages\ directory Sometimes pip manager installs libs into the user's AppData directory instead the environment you want

(base) PS

It seems that you run it via Conda console Try to run directly via CMD from the D:\SD\ComfyUI_windows_portable\ and run all the commands for python_embeded\python.exe

IrfanKheiri commented 1 month ago

(base) PS D:\SD\ComfyUI_windows_portable\python_embeded> python.exe -m pip show pydantic Name: pydantic Version: 2.7.2 Summary: Data validation using Python type hints Home-page: https://github.com/pydantic/pydantic Author: Author-email: Samuel Colvin s@muelcolvin.com, Eric Jolibois em.jolibois@gmail.com, Hasan Ramezani hasan.r67@gmail.com, Adrian Garcia Badaracco 1755071+adriangb@users.noreply.github.com, Terrence Dorsey terry@pydantic.dev, David Montague david@pydantic.dev, Serge Matveenko lig@countzero.co, Marcelo Trylesinski marcelotryle@gmail.com, Sydney Runkle sydneymarierunkle@gmail.com, David Hewitt mail@davidhewitt.io, Alex Hall alex.mojaki@gmail.com License: Location: C:\Users\horiz\miniconda3\Lib\site-packages Requires: annotated-types, pydantic-core, typing-extensions Required-by: albumentations, anthropic, chromadb, fastapi, inference, langchain, langchain-core, langsmith, openai, pydantic-settings, qdrant-client

Why is it installing globally in miniconda?

IrfanKheiri commented 1 month ago

Finally got it working! Had to uninstall miniconda. phew!

Alesyte commented 1 month ago

Similar problem for me, tho in my case comfyUI doesnt even launch anymore:

D:\ComfyUI\ComfyUI_windows_portable>.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build [START] Security scan [DONE] Security scan

ComfyUI-Manager: installing dependencies done.

ComfyUI startup time: 2024-10-07 22:24:50.978982 Platform: Windows Python version: 3.11.9 (tags/v3.11.9:de54cf5, Apr 2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)] Python executable: D:\ComfyUI\ComfyUI_windows_portable\python_embeded\python.exe ComfyUI Path: D:\ComfyUI\ComfyUI_windows_portable\ComfyUI Log path: D:\ComfyUI\ComfyUI_windows_portable\comfyui.log

####################################################################### [ComfyUI-Manager] Starting dependency installation/(de)activation for the extension

[SKIP] Downgrading pip package isn't allowed: albumentations (cur=1.4.17)

ComfyUI-Manager: EXECUTE => ['D:\ComfyUI\ComfyUI_windows_portable\python_embeded\python.exe', '-m', 'pip', 'install', 'insightface==0.7.3']

Execute install/(de)activation script for 'D:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node'

Collecting insightface==0.7.3 Using cached insightface-0.7.3.tar.gz (439 kB) Installing build dependencies: started Installing build dependencies: still running... Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'error' [!] error: subprocess-exited-with-error [!] [!] Getting requirements to build wheel did not run successfully. [!] exit code: 1 [!] [!] [18 lines of output] [!] Traceback (most recent call last): [!] File "D:\ComfyUI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in [!] main() [!] File "D:\ComfyUI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main [!] json_out['return_val'] = hook(**hook_input['kwargs']) [!] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [!] File "D:\ComfyUI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel [!] return hook(config_settings) [!] ^^^^^^^^^^^^^^^^^^^^^ [!] File "D:\ComfyUI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\setuptools\build_meta.py", line 332, in get_requires_for_build_wheel [!] return self._get_build_requires(config_settings, requirements=[]) [!] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [!] File "D:\ComfyUI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\setuptools\build_meta.py", line 302, in _get_build_requires [!] self.run_setup() [!] File "D:\ComfyUI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\setuptools\build_meta.py", line 318, in run_setup [!] exec(code, locals()) [!] File "", line 11, in [!] ModuleNotFoundError: No module named 'Cython' [!] [end of output] [!] [!] note: This error originates from a subprocess, and is likely not a problem with pip. [!] error: subprocess-exited-with-error [!] [!] Getting requirements to build wheel did not run successfully. [!] exit code: 1 [!] [!] See above for output. [!] [!] note: This error originates from a subprocess, and is likely not a problem with pip. install/(de)activation script failed: D:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node [SKIP] Downgrading pip package isn't allowed: onnx (cur=1.17.0) [SKIP] Downgrading pip package isn't allowed: opencv-python (cur=4.10.0.84)

ComfyUI-Manager: EXECUTE => ['D:\ComfyUI\ComfyUI_windows_portable\python_embeded\python.exe', '-m', 'pip', 'install', 'segment_anything']

Execute install/(de)activation script for 'D:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node'

ComfyUI-Manager: EXECUTE => ['D:\ComfyUI\ComfyUI_windows_portable\python_embeded\python.exe', 'install.py']

Execute install/(de)activation script for 'D:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node'

Collecting insightface==0.7.3 Using cached insightface-0.7.3.tar.gz (439 kB) Installing build dependencies: started Installing build dependencies: still running... Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'error' [!] error: subprocess-exited-with-error [!] [!] Getting requirements to build wheel did not run successfully. [!] exit code: 1 [!] [!] [18 lines of output] [!] Traceback (most recent call last): [!] File "D:\ComfyUI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in [!] main() [!] File "D:\ComfyUI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main [!] json_out['return_val'] = hook(**hook_input['kwargs']) [!] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [!] File "D:\ComfyUI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel [!] return hook(config_settings) [!] ^^^^^^^^^^^^^^^^^^^^^ [!] File "D:\ComfyUI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\setuptools\build_meta.py", line 332, in get_requires_for_build_wheel [!] return self._get_build_requires(config_settings, requirements=[]) [!] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [!] File "D:\ComfyUI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\setuptools\build_meta.py", line 302, in _get_build_requires [!] self.run_setup() [!] File "D:\ComfyUI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\setuptools\build_meta.py", line 318, in run_setup [!] exec(code, locals()) [!] File "", line 11, in [!] ModuleNotFoundError: No module named 'Cython' [!] [end of output] [!] [!] note: This error originates from a subprocess, and is likely not a problem with pip. [!] error: subprocess-exited-with-error [!] [!] Getting requirements to build wheel did not run successfully. [!] exit code: 1 [!] [!] See above for output. [!] [!] note: This error originates from a subprocess, and is likely not a problem with pip. CUDA 12.4 Status: The 'insightface==0.7.3' distribution was not found and is required by the application Ok

[START] Security scan [DONE] Security scan

ComfyUI-Manager: installing dependencies done.

ComfyUI startup time: 2024-10-07 22:31:54.882227 Platform: Windows Python version: 3.11.9 (tags/v3.11.9:de54cf5, Apr 2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)] Python executable: D:\ComfyUI\ComfyUI_windows_portable\python_embeded\python.exe ComfyUI Path: D:\ComfyUI\ComfyUI_windows_portable\ComfyUI Log path: D:\ComfyUI\ComfyUI_windows_portable\comfyui.log

####################################################################### [ComfyUI-Manager] Starting dependency installation/(de)activation for the extension

[SKIP] Downgrading pip package isn't allowed: lmdb (cur=1.5.1) [SKIP] Downgrading pip package isn't allowed: timm (cur=1.0.9) [SKIP] Downgrading pip package isn't allowed: albumentations (cur=1.4.17)

ComfyUI-Manager: EXECUTE => ['D:\ComfyUI\ComfyUI_windows_portable\python_embeded\python.exe', '-m', 'pip', 'install', 'insightface']

Execute install/(de)activation script for 'D:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-liveportrait'

VollderHoschi commented 3 weeks ago

I had the same issue like the user above me. I downgraded my python testwise to 3.11, but I am sure it works with 3.12 too, but not sure if it works with 3.13

Solution:

• download insightface-0.7.3-cp311-cp311-win_amd64.whl for python 3.11 (or insightface-0.7.3-cp312-cp312-win_amd64.whl for python 3.12)

• put the "insightface-0.7.3-cp311-cp311-win_amd64.whl" file in the python311 folder, which should usually be in C:\Users\USERNAMEXXX\AppData\Local\Programs\Python\Python311 • run CMD in that folder • use the command: python.exe -m pip install insightface-0.7.3-cp311-cp311-win_amd64.whl

(in your cmd window it should look like: C:\Users\USERNAMEXXX\AppData\Local\Programs\Python\Python311>python.exe -m pip install insightface-0.7.3-cp311-cp311-win_amd64.whl )

• repeat the exact same, just in the folder python_embeded folder of your ComfyUI: ...\ComfyUI_windows_portable\python_embeded

in the end you have to install it twice, once in python 3.1x another time in python_embedded to make it work correctly

Spooncyber commented 1 week ago

Hello, After all the possible attempts with all the indicated manipulations I still can't install it. I need your help. Capture d'écran 2024-10-30 221436

[ComfyUI-Manager] Starting dependency installation/(de)activation for the extension

[SKIP] Downgrading pip package isn't allowed: onnx (cur=1.17.0)

/

ComfyUI-Manager: EXECUTE => ['C:\Users\Utilisateur\Documents\COMFY UI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\python.exe', '-m', 'pip', 'install', 'segment_anything']

Execute install/(de)activation script for 'C:\Users\Utilisateur\Documents\COMFY UI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node'

ComfyUI-Manager: EXECUTE => ['C:\Users\Utilisateur\Documents\COMFY UI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\python_embeded\python.exe', 'install.py']

Execute install/(de)activation script for 'C:\Users\Utilisateur\Documents\COMFY UI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node'

CUDA 12.4 Ok`

Import times for custom nodes: 0.0 seconds: C:\Users\Utilisateur\Documents\COMFY UI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\websocket_image_save.py 0.0 seconds: C:\Users\Utilisateur\Documents\COMFY UI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\hakkun_nodes.py 0.0 seconds: C:\Users\Utilisateur\Documents\COMFY UI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Universal-Styler 0.0 seconds: C:\Users\Utilisateur\Documents\COMFY UI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus 0.0 seconds: C:\Users\Utilisateur\Documents\COMFY UI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_UltimateSDUpscale 0.0 seconds: C:\Users\Utilisateur\Documents\COMFY UI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Custom-Scripts 0.0 seconds: C:\Users\Utilisateur\Documents\COMFY UI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\rgthree-comfy 0.0 seconds: C:\Users\Utilisateur\Documents\COMFY UI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_essentials 0.0 seconds: C:\Users\Utilisateur\Documents\COMFY UI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Comfyroll_CustomNodes 0.1 seconds: C:\Users\Utilisateur\Documents\COMFY UI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-GGUF 0.2 seconds: C:\Users\Utilisateur\Documents\COMFY UI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager 0.4 seconds (IMPORT FAILED): C:\Users\Utilisateur\Documents\COMFY UI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node 0.4 seconds: C:\Users\Utilisateur\Documents\COMFY UI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack 1.1 seconds: C:\Users\Utilisateur\Documents\COMFY UI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_LayerStyle

Starting server

To see the GUI go to: http://127.0.0.1:8188 FETCH DATA from: C:\Users\Utilisateur\Documents\COMFY UI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager\extension-node-map.json [DONE] Error. No naistyles.csv found. Put your naistyles.csv in the custom_nodes/ComfyUI_NAI-mod/CSV directory of ComfyUI. Then press "Refresh". Your current root directory is: C:\Users\Utilisateur\Documents\COMFY UI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI

Error. No naistyles.csv found. Put your naistyles.csv in the custom_nodes/ComfyUI_NAI-mod/CSV directory of ComfyUI. Then press "Refresh". Your current root directory is: C:\Users\Utilisateur\Documents\COMFY UI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI

Error. No naistyles.csv found. Put your naistyles.csv in the custom_nodes/ComfyUI_NAI-mod/CSV directory of ComfyUI. Then press "Refresh". Your current root directory is: C:\Users\Utilisateur\Documents\COMFY UI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI

Error. No naistyles.csv found. Put your naistyles.csv in the custom_nodes/ComfyUI_NAI-mod/CSV directory of ComfyUI. Then press "Refresh". Your current root directory is: C:\Users\Utilisateur\Documents\COMFY UI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI

Error. No naistyles.csv found. Put your naistyles.csv in the custom_nodes/ComfyUI_NAI-mod/CSV directory of ComfyUI. Then press "Refresh". Your current root directory is: C:\Users\Utilisateur\Documents\COMFY UI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI

Error. No naistyles.csv found. Put your naistyles.csv in the custom_nodes/ComfyUI_NAI-mod/CSV directory of ComfyUI. Then press "Refresh". Your current root directory is: C:\Users\Utilisateur\Documents\COMFY UI\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI

got prompt invalid prompt: {'type': 'invalid_prompt', 'message': 'Cannot execute because a node is missing the class_type property.', 'details': "Node ID '#22'", 'extra_info': {}}

polbourgui commented 1 week ago

I have the same issue, had a "clean install" of the portable version of comfyui, updated VS2022 with c++ build tools, tried several github and reddit suggestions, but i still can't import ReActor

comfyui.log

EDIT : Solved with this post https://www.reddit.com/r/comfyui/comments/1gee6f8/the_reactor_node_seems_to_be_completely_broken_on/ TLDR python embedded > python.exe -m pip install numpy==1.26.4

Spooncyber commented 1 week ago

Thank you very much, I've solved my problem.