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

(IMPORT FAILED) error occured #42

Open
ellyoun13 opened this issue Mar 14, 2024 · 10 comments
Open

(IMPORT FAILED) error occured #42

ellyoun13 opened this issue Mar 14, 2024 · 10 comments

Comments

@ellyoun13
Copy link

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

@darkalfx
Copy link

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

@AlekPet
Copy link
Owner

AlekPet commented Mar 15, 2024

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

@darkalfx
Copy link

darkalfx commented Mar 15, 2024

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

@AlekPet
Copy link
Owner

AlekPet commented Mar 15, 2024

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: #43

@alexbofa
Copy link

#43 (comment)

@dydwgmcnl4241
Copy link

dydwgmcnl4241 commented Mar 17, 2024

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.

@AlekPet
Copy link
Owner

AlekPet commented Mar 17, 2024

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.

@dydwgmcnl4241
Copy link

dydwgmcnl4241 commented Mar 18, 2024

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 !!

@AlekPet
Copy link
Owner

AlekPet commented Mar 18, 2024

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 #43 (comment)) or the stanza rolled back (#43 (comment)) 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)

@boytjj
Copy link

boytjj commented Jun 10, 2024

pip installed torchmetrics-1.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants