ComfyUI_Custom_Nodes_AlekPet icon indicating copy to clipboard operation
ComfyUI_Custom_Nodes_AlekPet copied to clipboard

(IMPORT FAILED) error occured

Open ellyoun13 opened this issue 2 years ago • 11 comments

2.8 seconds (IMPORT FAILED): E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Custom_Nodes_AlekPet

Import times for custom nodes: 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\example_node.py copy.py 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\efficiency-nodes-comfyui 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Flowty-TripoSR 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\image-resize-comfyui 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\sdxl_prompt_styler 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\Comfyui-Yolov8 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Image-Selector 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_SimpleMath 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Noise 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\cg-use-everywhere 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\stability-ComfyUI-nodes 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Image-Filters 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Hangover-Moondream 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\StableZero123-comfyui 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-lama-remover 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-WD14-Tagger 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Dave_CustomNode 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-popup_preview 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-animatediff 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\hd_node 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyMath 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\steerable-motion 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Custom-Scripts 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Advanced-ControlNet 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_UltimateSDUpscale 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyQR-scanning-nodes 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Frame-Interpolation 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-OpenPose-Editor 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\rgthree-comfy 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyQR 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Allor 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\Derfuu_ComfyUI_ModdedNodes 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_essentials 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Comfyroll_CustomNodes 0.0 seconds (IMPORT FAILED): E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-OOTDiffusion 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Inspire-Pack 0.0 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-KJNodes 0.1 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_tinyterraNodes 0.1 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack 0.2 seconds (IMPORT FAILED): E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_OOTDiffusion_CXH 0.2 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_GLM4Node 0.3 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_FizzNodes 0.4 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-art-venture 0.5 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-reactor-node 0.6 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfy_mtb 0.7 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager 2.1 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui 2.6 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-3D-Pack 2.8 seconds (IMPORT FAILED): E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Custom_Nodes_AlekPet 2.9 seconds: E:\ComfyUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_segment_anything

Starting server

I

ellyoun13 avatar Mar 14 '24 09:03 ellyoun13

I'm also getting the same error on the latest version of Comfy: (IMPORT FAILED): D:\ComfyUI\custom_nodes\ComfyUI_Custom_Nodes_AlekPet

So nothing works

darkalfx avatar Mar 14 '24 23:03 darkalfx

Hello, there is no information about the error, only that the import was unsuccessful, is there any other information, maybe you have the latest version of Python?

see here: https://github.com/AlekPet/ComfyUI_Custom_Nodes_AlekPet/issues/37

AlekPet avatar Mar 15 '24 09:03 AlekPet

After further testing, it looks like there's a conflict between your package and ComfyUI-Manager which prevents this package from loading?

File "D:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\stanza\utils\get_tqdm.py", line 34, in get_tqdm
    if sys.stderr is not None and sys.stderr.isatty():
                                  ^^^^^^^^^^^^^^^^^
AttributeError: 'ComfyUIManagerLogger' object has no attribute 'isatty'

Cannot import D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Custom_Nodes_AlekPet module for custom nodes: 'ComfyUIManagerLogger' object has no attribute 'isatty'

However if I remove ComfyUI-Manager then the package loads fine, I am unsure which package needs fixing

darkalfx avatar Mar 15 '24 14:03 darkalfx

After further testing, it looks like there's a conflict between your package and ComfyUI-Manager which prevents this package from loading?

File "D:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\stanza\utils\get_tqdm.py", line 34, in get_tqdm
    if sys.stderr is not None and sys.stderr.isatty():
                                  ^^^^^^^^^^^^^^^^^
AttributeError: 'ComfyUIManagerLogger' object has no attribute 'isatty'

Cannot import D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Custom_Nodes_AlekPet module for custom nodes: 'ComfyUIManagerLogger' object has no attribute 'isatty'

However if I remove ComfyUI-Manager then the package loads fine, I am unsure which package needs fixing

here: https://github.com/AlekPet/ComfyUI_Custom_Nodes_AlekPet/issues/43

AlekPet avatar Mar 15 '24 18:03 AlekPet

https://github.com/AlekPet/ComfyUI_Custom_Nodes_AlekPet/issues/43#issuecomment-2002369467

alexbofa avatar Mar 17 '24 08:03 alexbofa

Hello, there is no information about the error, only that the import was unsuccessful, is there any other information, maybe you have the latest version of Python?

see here: #37

I met the same error. and I use python 3.10

(IMPORT FAILED) AlekPet/ComfyUI_Custom_Nodes_AlekPet

Nodes: PoseNode, PainterNode, TranslateTextNode, TranslateCLIPTextEncodeNode, DeepTranslatorTextNode, DeepTranslatorCLIPTextEncodeNode, ArgosTranslateTextNode, ArgosTranslateCLIPTextEncodeNode, PreviewTextNode.NOTE: Due to the dynamic nature of node name definitions, ComfyUI-Manager cannot recognize the node list from this extension. The Missing nodes and Badge features are not available for this extension.

NOTE: Due to the dynamic nature of node name definitions, ComfyUI-Manager cannot recognize the node list from this extension. The Missing nodes and Badge features are not available for this extension.

dydwgmcnl4241 avatar Mar 17 '24 14:03 dydwgmcnl4241

Hello, there is no information about the error, only that the import was unsuccessful, is there any other information, maybe you have the latest version of Python?

see here: #37

I met the same error. and I use python 3.10

(IMPORT FAILED) AlekPet/ComfyUI_Custom_Nodes_AlekPet

Nodes: PoseNode, PainterNode, TranslateTextNode, TranslateCLIPTextEncodeNode, DeepTranslatorTextNode, DeepTranslatorCLIPTextEncodeNode, ArgosTranslateTextNode, ArgosTranslateCLIPTextEncodeNode, PreviewTextNode.NOTE: Due to the dynamic nature of node name definitions, ComfyUI-Manager cannot recognize the node list from this extension. The Missing nodes and Badge features are not available for this extension.

NOTE: Due to the dynamic nature of node name definitions, ComfyUI-Manager cannot recognize the node list from this extension. The Missing nodes and Badge features are not available for this extension.

Note this is not an error, it’s just that the manager cannot determine the name of the nodes, because For me they are not registered directly in the NODE_CLASS_MAPPINGS dictionary, but are added dynamically.

AlekPet avatar Mar 17 '24 18:03 AlekPet

Hello, there is no information about the error, only that the import was unsuccessful, is there any other information, maybe you have the latest version of Python? see here: #37

I met the same error. and I use python 3.10 (IMPORT FAILED) AlekPet/ComfyUI_Custom_Nodes_AlekPet Nodes: PoseNode, PainterNode, TranslateTextNode, TranslateCLIPTextEncodeNode, DeepTranslatorTextNode, DeepTranslatorCLIPTextEncodeNode, ArgosTranslateTextNode, ArgosTranslateCLIPTextEncodeNode, PreviewTextNode.NOTE: Due to the dynamic nature of node name definitions, ComfyUI-Manager cannot recognize the node list from this extension. The Missing nodes and Badge features are not available for this extension. NOTE: Due to the dynamic nature of node name definitions, ComfyUI-Manager cannot recognize the node list from this extension. The Missing nodes and Badge features are not available for this extension.

Note this is not an error, it’s just that the manager cannot determine the name of the nodes, because For me they are not registered directly in the NODE_CLASS_MAPPINGS dictionary, but are added dynamically.

got it, but how can I fix this problem? thx !!

dydwgmcnl4241 avatar Mar 18 '24 02:03 dydwgmcnl4241

Hello, there is no information about the error, only that the import was unsuccessful, is there any other information, maybe you have the latest version of Python? see here: #37

I met the same error. and I use python 3.10 (IMPORT FAILED) AlekPet/ComfyUI_Custom_Nodes_AlekPet Nodes: PoseNode, PainterNode, TranslateTextNode, TranslateCLIPTextEncodeNode, DeepTranslatorTextNode, DeepTranslatorCLIPTextEncodeNode, ArgosTranslateTextNode, ArgosTranslateCLIPTextEncodeNode, PreviewTextNode.NOTE: Due to the dynamic nature of node name definitions, ComfyUI-Manager cannot recognize the node list from this extension. The Missing nodes and Badge features are not available for this extension. NOTE: Due to the dynamic nature of node name definitions, ComfyUI-Manager cannot recognize the node list from this extension. The Missing nodes and Badge features are not available for this extension.

Note this is not an error, it’s just that the manager cannot determine the name of the nodes, because For me they are not registered directly in the NODE_CLASS_MAPPINGS dictionary, but are added dynamically.

got it, but how can I fix this problem? thx !!

I could make them not dynamic, but simply registered directly in the dictionary, the manager searches for NODE_CLASS_MAPPINGS and takes the keys with the names of the nodes and displays them where the Nodes field is in the manager and controls them, turn them on, off, etc. .

And the error needs to be corrected in the code (link here https://github.com/AlekPet/ComfyUI_Custom_Nodes_AlekPet/issues/43#issuecomment-1999220250) or the stanza rolled back (https://github.com/AlekPet/ComfyUI_Custom_Nodes_AlekPet/issues/43#issuecomment-2002369467) or manual uninstall stanza and install (../python_embeded python.exe -m pip uninstall stanza and after (../python_embeded python.exe -m pip install stanza==1.2.3)

AlekPet avatar Mar 18 '24 07:03 AlekPet

pip installed torchmetrics-1.2.1

boytjj avatar Jun 10 '24 16:06 boytjj