ltdrdata / ComfyUI-Impact-Pack

Custom nodes pack for ComfyUI This custom node helps to conveniently enhance images through Detector, Detailer, Upscaler, Pipe, and more.
GNU General Public License v3.0
1.91k stars 188 forks source link

ComfyUI-Impact-Pack: (IMPORT FAILED) keeps failing #795

Open raysay1 opened 1 month ago

raysay1 commented 1 month ago

I been spending hours to to fix this but im not sure why

D:\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-26 16:23:16.432650 Platform: Windows Python version: 3.11.8 (tags/v3.11.8:db85d51, Feb 6 2024, 22:03:32) [MSC v.1937 64 bit (AMD64)] Python executable: D:\ComfyUI_windows_portable\python_embeded\python.exe ComfyUI Path: D:\ComfyUI_windows_portable\ComfyUI Log path: D:\ComfyUI_windows_portable\comfyui.log

Prestartup times for custom nodes: 0.0 seconds: D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\rgthree-comfy 1.2 seconds: D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager

Total VRAM 24564 MB, total RAM 31892 MB pytorch version: 2.3.1+cu121 Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync Using pytorch cross attention [Prompt Server] web root: D:\ComfyUI_windows_portable\ComfyUI\web

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

[Impact Pack] Failed to import due to several dependencies are missing!!!! Traceback (most recent call last): File "D:\ComfyUI_windows_portable\ComfyUI\nodes.py", line 2006, 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:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack__init__.py", line 53, in raise e File "D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack__init__.py", line 31, in import impact.subpack_nodes # This import must be done before cv2. ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack\impact_subpack\impact\subpack_nodes.py", line 3, in import impact.core as core File "D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack\modules\impact\core.py", line 7, in from segment_anything import SamPredictor ModuleNotFoundError: No module named 'segment_anything'

Cannot import D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack module for custom nodes: No module named 'segment_anything' Total VRAM 24564 MB, total RAM 31892 MB pytorch version: 2.3.1+cu121 Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync

Loading: ComfyUI-Manager (V2.51.8)

ComfyUI Revision: 2789 [5cbb01bc] | Released on '2024-10-26'

Traceback (most recent call last): File "D:\ComfyUI_windows_portable\ComfyUI\nodes.py", line 2006, 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:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-SAM2__init__.py", line 1, in from .node import SAM2ModelLoader, GroundingDinoModelLoader, GroundingDinoSAM2Segment, InvertMask, IsMaskEmptyNode File "D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-SAM2\node.py", line 38 "sam2_hiera_large.pt": {

SyntaxError: invalid syntax. Perhaps you forgot a comma?

Cannot import D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-SAM2 module for custom nodes: invalid syntax. Perhaps you forgot a comma? (node.py, line 38) Traceback (most recent call last): File "D:\ComfyUI_windows_portable\ComfyUI\nodes.py", line 2006, 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:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-tensorops__init.py", line 1, in from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS File "D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-tensorops\nodes\init.py", line 8, in from .fal import FalDifferentialDiffusion, FalDiffusion File "D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-tensorops\nodes\fal.py", line 6, in import fal_client File "D:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\fal_client\init__.py", line 1, in from fal_client.client import ( File "D:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\fal_client\client.py", line 16, in import httpx ModuleNotFoundError: No module named 'httpx'

Cannot import D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-tensorops module for custom nodes: No module named 'httpx' D:\ComfyUI_windows_portable ############################################ D:\ComfyUI_windows_portable\custom_nodes\ComfyUI-Universal-Styler\CSV ############################################ [] ############################################ [comfyui_controlnet_aux] | INFO -> Using ckpts path: D:\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'] D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux\node_wrappers\dwpose.py:26: UserWarning: DWPose: Onnxruntime not found or doesn't come with acceleration providers, switch to OpenCV with CPU device. DWPose might run very slowly warnings.warn("DWPose: Onnxruntime not found or doesn't come with acceleration providers, switch to OpenCV with CPU device. DWPose might run very slowly") [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json

[rgthree-comfy] Loaded 42 epic nodes. 🎉

[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 WAS Node Suite: OpenCV Python FFMPEG support is enabled WAS Node Suite Warning: ffmpeg_bin_path is not set in D:\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.

    "Art is not about making something perfect, it's about making something meaningful." - Unknown

Import times for custom nodes: 0.0 seconds: D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\websocket_image_save.py 0.0 seconds: D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Universal-Styler 0.0 seconds (IMPORT FAILED): D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-SAM2 0.0 seconds: D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Custom-Scripts 0.0 seconds (IMPORT FAILED): D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack 0.0 seconds: D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-GGUF 0.0 seconds: D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_UltimateSDUpscale 0.0 seconds: D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\rgthree-comfy 0.0 seconds: D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\x-flux-comfyui 0.1 seconds: D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-KJNodes 0.1 seconds (IMPORT FAILED): D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-tensorops 0.1 seconds: D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux 0.3 seconds: D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Florence2 0.3 seconds: D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager 1.8 seconds: D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui

Starting server

To see the GUI go to: http://127.0.0.1:8188 FETCH DATA from: D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager\extension-node-map.json [DONE] [] []

raysay1 commented 1 month ago

This what happen when I try to install.py

Microsoft Windows [Version 10.0.22631.4317] (c) Microsoft Corporation. All rights reserved.

D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack>python install-manual.py

[bold yellow]WARN: The COMFYUI_PATH environment variable is not set. Assuming D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack/../../ as the ComfyUI path.[/bold yellow]

[bold yellow]WARN: The COMFYUI_MODEL_PATH environment variable is not set. Assuming D:\ComfyUI_windows_portable\ComfyUI\models as the ComfyUI path.[/bold yellow]

ComfyUI-Impact-Pack: Check dependencies

ComfyUI-Impact-Pack: Updating subpack

[ERROR] ComfyUI-Impact-Pack: Dependency installation has failed. Please install manually. Traceback (most recent call last): File "D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack\install-manual.py", line 140, in install() File "D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack\install-manual.py", line 107, in install if not is_requirements_installed(os.path.join(subpack_path, 'requirements.txt')): ^^^^^^^^^^^^^^^^^^^^^^^^^ NameError: name 'is_requirements_installed' is not defined

ltdrdata commented 4 weeks ago

No you should not use python. That execute wrong python.

Use ..\..\..\python_embeded\python.exe install-manual.py