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 #62

Open
myprivacygithub opened this issue Oct 23, 2024 · 10 comments
Open

Import failed error #62

myprivacygithub opened this issue Oct 23, 2024 · 10 comments

Comments

@myprivacygithub
Copy link

Import failed error

@smthemex
Copy link
Owner

need console error

@myprivacygithub
Copy link
Author

Here it is
Traceback (most recent call last):
File "D:\ComfyUI\nodes.py", line 2001, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 995, in exec_module
File "", line 488, in call_with_frames_removed
File "D:\ComfyUI\custom_nodes\ComfyUI_EchoMimic_init
.py", line 2, in
from .EchoMimic_node import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
File "D:\ComfyUI\custom_nodes\ComfyUI_EchoMimic\EchoMimic_node.py", line 29, in
from facenet_pytorch import MTCNN
ModuleNotFoundError: No module named 'facenet_pytorch'

Cannot import D:\ComfyUI\custom_nodes\ComfyUI_EchoMimic module for custom nodes: No module named 'facenet_pytorch'

@smthemex
Copy link
Owner

pip install opencv-python
after install if comfyUI is crash
chocie a cuda torch version ,first uninstall ,second re install,for example below:
pip uninstall torchaudio torchvision torch xformers
pip install torch==2.2.0 torchvision==0.17.0 torchaudio==2.2.0 --index-url https://download.pytorch.org/whl/cu121
pip install xformers==0.0.24

@myprivacygithub
Copy link
Author

Error while installing xformers==0.0.24

Building wheels for collected packages: xformers
Building wheel for xformers (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [307 lines of output]
fatal: not a git repository (or any of the parent directories): .git
running bdist_wheel
running build
running build_py
creating build\lib.win-amd64-cpython-312\xformers
copying xformers\attn_bias_utils.py -> build\lib.win-amd64-cpython-312\xformers
copying xformers\checkpoint.py -> build\lib.win-amd64-cpython-312\xformers
copying xformers\info.py -> build\lib.win-amd64-cpython-312\xformers
copying xformers\test.py -> build\lib.win-amd64-cpython-312\xformers
copying xformers\utils.py -> build\lib.win-amd64-cpython-312\xformers
copying xformers_cpp_lib.py -> build\lib.win-amd64-cpython-312\xformers
copying xformers_deprecation_warning.py -> build\lib.win-amd64-cpython-312\xformers
copying xformers_init_.py -> build\lib.win-amd64-cpython-312\xformers
creating build\lib.win-amd64-cpython-312\xformers\benchmarks
copying xformers\benchmarks\benchmark_attn_decoding.py -> build\lib.win-amd64-cpython-312\xformers\benchmarks
copying xformers\benchmarks\benchmark_blocksparse_transformers.py -> build\lib.win-amd64-cpython-312\xformers\benchmarks
copying xformers\benchmarks\benchmark_causal_blocksparse.py -> build\lib.win-amd64-cpython-312\xformers\benchmarks
copying xformers\benchmarks\benchmark_core.py -> build\lib.win-amd64-cpython-312\xformers\benchmarks
copying xformers\benchmarks\benchmark_indexing.py -> build\lib.win-amd64-cpython-312\xformers\benchmarks
copying xformers\benchmarks\benchmark_mem_eff_attention.py -> build\lib.win-amd64-cpython-312\xformers\benchmarks
copying xformers\benchmarks\benchmark_mem_eff_attn_decoder.py -> build\lib.win-amd64-cpython-312\xformers\benchmarks
copying xformers\benchmarks\benchmark_mlp.py -> build\lib.win-amd64-cpython-312\xformers\benchmarks
copying xformers\benchmarks\benchmark_multi_head_dispatch.py -> build\lib.win-amd64-cpython-312\xformers\benchmarks
copying xformers\benchmarks\benchmark_nystrom_utils.py -> build\lib.win-amd64-cpython-312\xformers\benchmarks
copying xformers\benchmarks\benchmark_revnet.py -> build\lib.win-amd64-cpython-312\xformers\benchmarks
copying xformers\benchmarks\benchmark_sddmm.py -> build\lib.win-amd64-cpython-312\xformers\benchmarks
copying xformers\benchmarks\benchmark_sequence_parallel_fused.py -> build\lib.win-amd64-cpython-312\xformers\benchmarks
copying xformers\benchmarks\benchmark_sp24.py -> build\lib.win-amd64-cpython-312\xformers\benchmarks
copying xformers\benchmarks\benchmark_swiglu.py -> build\lib.win-amd64-cpython-312\xformers\benchmarks
copying xformers\benchmarks\benchmark_tiled_matmul.py -> build\lib.win-amd64-cpython-312\xformers\benchmarks
copying xformers\benchmarks\benchmark_transformer.py -> build\lib.win-amd64-cpython-312\xformers\benchmarks
copying xformers\benchmarks\benchmark_triton_blocksparse.py -> build\lib.win-amd64-cpython-312\xformers\benchmarks
copying xformers\benchmarks\benchmark_triton_dropout.py -> build\lib.win-amd64-cpython-312\xformers\benchmarks
copying xformers\benchmarks\benchmark_triton_fused_linear.py -> build\lib.win-amd64-cpython-312\xformers\benchmarks
copying xformers\benchmarks\benchmark_triton_layernorm.py -> build\lib.win-amd64-cpython-312\xformers\benchmarks
copying xformers\benchmarks\benchmark_triton_softmax.py -> build\lib.win-amd64-cpython-312\xformers\benchmarks
copying xformers\benchmarks\utils.py -> build\lib.win-amd64-cpython-312\xformers\benchmarks
copying xformers\benchmarks_init_.py -> build\lib.win-amd64-cpython-312\xformers\benchmarks
creating build\lib.win-amd64-cpython-312\xformers\components
copying xformers\components\activations.py -> build\lib.win-amd64-cpython-312\xformers\components
copying xformers\components\input_projection.py -> build\lib.win-amd64-cpython-312\xformers\components
copying xformers\components\multi_head_dispatch.py -> build\lib.win-amd64-cpython-312\xformers\components
copying xformers\components\patch_embedding.py -> build\lib.win-amd64-cpython-312\xformers\components
copying xformers\components\residual.py -> build\lib.win-amd64-cpython-312\xformers\components
copying xformers\components\reversible.py -> build\lib.win-amd64-cpython-312\xformers\components
copying xformers\components\simplicial_embedding.py -> build\lib.win-amd64-cpython-312\xformers\components
copying xformers\components_init_.py -> build\lib.win-amd64-cpython-312\xformers\components
creating build\lib.win-amd64-cpython-312\xformers\factory
copying xformers\factory\block_configs.py -> build\lib.win-amd64-cpython-312\xformers\factory
copying xformers\factory\block_factory.py -> build\lib.win-amd64-cpython-312\xformers\factory
copying xformers\factory\hydra_helper.py -> build\lib.win-amd64-cpython-312\xformers\factory
copying xformers\factory\model_factory.py -> build\lib.win-amd64-cpython-312\xformers\factory
copying xformers\factory\weight_init.py -> build\lib.win-amd64-cpython-312\xformers\factory
copying xformers\factory_init_.py -> build\lib.win-amd64-cpython-312\xformers\factory
creating build\lib.win-amd64-cpython-312\xformers\helpers
copying xformers\helpers\hierarchical_configs.py -> build\lib.win-amd64-cpython-312\xformers\helpers
copying xformers\helpers\test_utils.py -> build\lib.win-amd64-cpython-312\xformers\helpers
copying xformers\helpers\timm_sparse_attention.py -> build\lib.win-amd64-cpython-312\xformers\helpers
copying xformers\helpers_init_.py -> build\lib.win-amd64-cpython-312\xformers\helpers
creating build\lib.win-amd64-cpython-312\xformers\ops
copying xformers\ops\common.py -> build\lib.win-amd64-cpython-312\xformers\ops
copying xformers\ops\differentiable_collectives.py -> build\lib.win-amd64-cpython-312\xformers\ops
copying xformers\ops\indexing.py -> build\lib.win-amd64-cpython-312\xformers\ops
copying xformers\ops\modpar_layers.py -> build\lib.win-amd64-cpython-312\xformers\ops
copying xformers\ops\rmsnorm.py -> build\lib.win-amd64-cpython-312\xformers\ops
copying xformers\ops\rope_padded.py -> build\lib.win-amd64-cpython-312\xformers\ops
copying xformers\ops\seqpar.py -> build\lib.win-amd64-cpython-312\xformers\ops
copying xformers\ops\sequence_parallel_fused_ops.py -> build\lib.win-amd64-cpython-312\xformers\ops
copying xformers\ops\sp24.py -> build\lib.win-amd64-cpython-312\xformers\ops
copying xformers\ops\swiglu_op.py -> build\lib.win-amd64-cpython-312\xformers\ops
copying xformers\ops\tiled_matmul.py -> build\lib.win-amd64-cpython-312\xformers\ops
copying xformers\ops\unbind.py -> build\lib.win-amd64-cpython-312\xformers\ops
copying xformers\ops_init_.py -> build\lib.win-amd64-cpython-312\xformers\ops
creating build\lib.win-amd64-cpython-312\xformers\profiler
copying xformers\profiler\api.py -> build\lib.win-amd64-cpython-312\xformers\profiler
copying xformers\profiler\device_limits.py -> build\lib.win-amd64-cpython-312\xformers\profiler
copying xformers\profiler\profiler.py -> build\lib.win-amd64-cpython-312\xformers\profiler
copying xformers\profiler\profiler_dcgm.py -> build\lib.win-amd64-cpython-312\xformers\profiler
copying xformers\profiler\profiler_dcgm_impl.py -> build\lib.win-amd64-cpython-312\xformers\profiler
copying xformers\profiler\slow_ops_profiler.py -> build\lib.win-amd64-cpython-312\xformers\profiler
copying xformers\profiler_init_.py -> build\lib.win-amd64-cpython-312\xformers\profiler
creating build\lib.win-amd64-cpython-312\xformers\sparse
copying xformers\sparse\blocksparse_tensor.py -> build\lib.win-amd64-cpython-312\xformers\sparse
copying xformers\sparse\csr_tensor.py -> build\lib.win-amd64-cpython-312\xformers\sparse
copying xformers\sparse\utils.py -> build\lib.win-amd64-cpython-312\xformers\sparse
copying xformers\sparse_csr_ops.py -> build\lib.win-amd64-cpython-312\xformers\sparse
copying xformers\sparse_init_.py -> build\lib.win-amd64-cpython-312\xformers\sparse
creating build\lib.win-amd64-cpython-312\xformers\triton
copying xformers\triton\dropout.py -> build\lib.win-amd64-cpython-312\xformers\triton
copying xformers\triton\fused_linear_layer.py -> build\lib.win-amd64-cpython-312\xformers\triton
copying xformers\triton\k_activations.py -> build\lib.win-amd64-cpython-312\xformers\triton
copying xformers\triton\k_dropout.py -> build\lib.win-amd64-cpython-312\xformers\triton
copying xformers\triton\k_fused_matmul_bw.py -> build\lib.win-amd64-cpython-312\xformers\triton
copying xformers\triton\k_fused_matmul_fw.py -> build\lib.win-amd64-cpython-312\xformers\triton
copying xformers\triton\k_layer_norm.py -> build\lib.win-amd64-cpython-312\xformers\triton
copying xformers\triton\k_softmax.py -> build\lib.win-amd64-cpython-312\xformers\triton
copying xformers\triton\layer_norm.py -> build\lib.win-amd64-cpython-312\xformers\triton
copying xformers\triton\softmax.py -> build\lib.win-amd64-cpython-312\xformers\triton
copying xformers\triton\vararg_kernel.py -> build\lib.win-amd64-cpython-312\xformers\triton
copying xformers\triton_init_.py -> build\lib.win-amd64-cpython-312\xformers\triton
creating build\lib.win-amd64-cpython-312\xformers_flash_attn
copying xformers_flash_attn\bert_padding.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn
copying xformers_flash_attn\flash_attn_interface.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn
copying xformers_flash_attn\flash_attn_triton.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn
copying xformers_flash_attn\flash_attn_triton_og.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn
copying xformers_flash_attn\flash_blocksparse_attention.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn
copying xformers_flash_attn\flash_blocksparse_attn_interface.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn
copying xformers_flash_attn\fused_softmax.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn
copying xformers_flash_attn_init_.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn
creating build\lib.win-amd64-cpython-312\xformers\benchmarks\LRA
copying xformers\benchmarks\LRA\batch_fetch_results.py -> build\lib.win-amd64-cpython-312\xformers\benchmarks\LRA
copying xformers\benchmarks\LRA\batch_submit.py -> build\lib.win-amd64-cpython-312\xformers\benchmarks\LRA
copying xformers\benchmarks\LRA\run_grid_search.py -> build\lib.win-amd64-cpython-312\xformers\benchmarks\LRA
copying xformers\benchmarks\LRA\run_tasks.py -> build\lib.win-amd64-cpython-312\xformers\benchmarks\LRA
copying xformers\benchmarks\LRA\run_with_submitit.py -> build\lib.win-amd64-cpython-312\xformers\benchmarks\LRA
copying xformers\benchmarks\LRA_init_.py -> build\lib.win-amd64-cpython-312\xformers\benchmarks\LRA
creating build\lib.win-amd64-cpython-312\xformers\benchmarks\LRA\code
copying xformers\benchmarks\LRA\code\dataset.py -> build\lib.win-amd64-cpython-312\xformers\benchmarks\LRA\code
copying xformers\benchmarks\LRA\code\model_wrapper.py -> build\lib.win-amd64-cpython-312\xformers\benchmarks\LRA\code
copying xformers\benchmarks\LRA\code_init_.py -> build\lib.win-amd64-cpython-312\xformers\benchmarks\LRA\code
creating build\lib.win-amd64-cpython-312\xformers\components\attention
copying xformers\components\attention\attention_mask.py -> build\lib.win-amd64-cpython-312\xformers\components\attention
copying xformers\components\attention\attention_patterns.py -> build\lib.win-amd64-cpython-312\xformers\components\attention
copying xformers\components\attention\base.py -> build\lib.win-amd64-cpython-312\xformers\components\attention
copying xformers\components\attention\blocksparse.py -> build\lib.win-amd64-cpython-312\xformers\components\attention
copying xformers\components\attention\compositional.py -> build\lib.win-amd64-cpython-312\xformers\components\attention
copying xformers\components\attention\core.py -> build\lib.win-amd64-cpython-312\xformers\components\attention
copying xformers\components\attention\favor.py -> build\lib.win-amd64-cpython-312\xformers\components\attention
copying xformers\components\attention\fourier_mix.py -> build\lib.win-amd64-cpython-312\xformers\components\attention
copying xformers\components\attention\global_tokens.py -> build\lib.win-amd64-cpython-312\xformers\components\attention
copying xformers\components\attention\lambda_layer.py -> build\lib.win-amd64-cpython-312\xformers\components\attention
copying xformers\components\attention\linformer.py -> build\lib.win-amd64-cpython-312\xformers\components\attention
copying xformers\components\attention\local.py -> build\lib.win-amd64-cpython-312\xformers\components\attention
copying xformers\components\attention\nystrom.py -> build\lib.win-amd64-cpython-312\xformers\components\attention
copying xformers\components\attention\ortho.py -> build\lib.win-amd64-cpython-312\xformers\components\attention
copying xformers\components\attention\pooling.py -> build\lib.win-amd64-cpython-312\xformers\components\attention
copying xformers\components\attention\random.py -> build\lib.win-amd64-cpython-312\xformers\components\attention
copying xformers\components\attention\scaled_dot_product.py -> build\lib.win-amd64-cpython-312\xformers\components\attention
copying xformers\components\attention\sparsity_config.py -> build\lib.win-amd64-cpython-312\xformers\components\attention
copying xformers\components\attention\utils.py -> build\lib.win-amd64-cpython-312\xformers\components\attention
copying xformers\components\attention\visual.py -> build\lib.win-amd64-cpython-312\xformers\components\attention
copying xformers\components\attention_sputnik_sparse.py -> build\lib.win-amd64-cpython-312\xformers\components\attention
copying xformers\components\attention_init_.py -> build\lib.win-amd64-cpython-312\xformers\components\attention
creating build\lib.win-amd64-cpython-312\xformers\components\feedforward
copying xformers\components\feedforward\base.py -> build\lib.win-amd64-cpython-312\xformers\components\feedforward
copying xformers\components\feedforward\conv_mlp.py -> build\lib.win-amd64-cpython-312\xformers\components\feedforward
copying xformers\components\feedforward\fused_mlp.py -> build\lib.win-amd64-cpython-312\xformers\components\feedforward
copying xformers\components\feedforward\mixture_of_experts.py -> build\lib.win-amd64-cpython-312\xformers\components\feedforward
copying xformers\components\feedforward\mlp.py -> build\lib.win-amd64-cpython-312\xformers\components\feedforward
copying xformers\components\feedforward_init_.py -> build\lib.win-amd64-cpython-312\xformers\components\feedforward
creating build\lib.win-amd64-cpython-312\xformers\components\positional_embedding
copying xformers\components\positional_embedding\base.py -> build\lib.win-amd64-cpython-312\xformers\components\positional_embedding
copying xformers\components\positional_embedding\param.py -> build\lib.win-amd64-cpython-312\xformers\components\positional_embedding
copying xformers\components\positional_embedding\rotary.py -> build\lib.win-amd64-cpython-312\xformers\components\positional_embedding
copying xformers\components\positional_embedding\sine.py -> build\lib.win-amd64-cpython-312\xformers\components\positional_embedding
copying xformers\components\positional_embedding\vocab.py -> build\lib.win-amd64-cpython-312\xformers\components\positional_embedding
copying xformers\components\positional_embedding_init_.py -> build\lib.win-amd64-cpython-312\xformers\components\positional_embedding
creating build\lib.win-amd64-cpython-312\xformers\components\attention\feature_maps
copying xformers\components\attention\feature_maps\base.py -> build\lib.win-amd64-cpython-312\xformers\components\attention\feature_maps
copying xformers\components\attention\feature_maps\softmax.py -> build\lib.win-amd64-cpython-312\xformers\components\attention\feature_maps
copying xformers\components\attention\feature_maps_init_.py -> build\lib.win-amd64-cpython-312\xformers\components\attention\feature_maps
creating build\lib.win-amd64-cpython-312\xformers\ops\fmha
copying xformers\ops\fmha\attn_bias.py -> build\lib.win-amd64-cpython-312\xformers\ops\fmha
copying xformers\ops\fmha\common.py -> build\lib.win-amd64-cpython-312\xformers\ops\fmha
copying xformers\ops\fmha\cutlass.py -> build\lib.win-amd64-cpython-312\xformers\ops\fmha
copying xformers\ops\fmha\decoder.py -> build\lib.win-amd64-cpython-312\xformers\ops\fmha
copying xformers\ops\fmha\dispatch.py -> build\lib.win-amd64-cpython-312\xformers\ops\fmha
copying xformers\ops\fmha\flash.py -> build\lib.win-amd64-cpython-312\xformers\ops\fmha
copying xformers\ops\fmha\small_k.py -> build\lib.win-amd64-cpython-312\xformers\ops\fmha
copying xformers\ops\fmha\triton.py -> build\lib.win-amd64-cpython-312\xformers\ops\fmha
copying xformers\ops\fmha\triton_splitk.py -> build\lib.win-amd64-cpython-312\xformers\ops\fmha
copying xformers\ops\fmha_init_.py -> build\lib.win-amd64-cpython-312\xformers\ops\fmha
creating build\lib.win-amd64-cpython-312\xformers\ops_triton
copying xformers\ops_triton\k_index_select_cat.py -> build\lib.win-amd64-cpython-312\xformers\ops_triton
copying xformers\ops_triton\k_scaled_index_add.py -> build\lib.win-amd64-cpython-312\xformers\ops_triton
copying xformers\ops_triton\rmsnorm_kernels.py -> build\lib.win-amd64-cpython-312\xformers\ops_triton
copying xformers\ops_triton\rope_padded_kernels.py -> build\lib.win-amd64-cpython-312\xformers\ops_triton
copying xformers\ops_triton\sequence_parallel_fused_kernels.py -> build\lib.win-amd64-cpython-312\xformers\ops_triton
copying xformers\ops_triton\tiled_matmul_kernels.py -> build\lib.win-amd64-cpython-312\xformers\ops_triton
copying xformers\ops_triton_init_.py -> build\lib.win-amd64-cpython-312\xformers\ops_triton
creating build\lib.win-amd64-cpython-312\xformers_flash_attn\layers
copying xformers_flash_attn\layers\patch_embed.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\layers
copying xformers_flash_attn\layers\rotary.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\layers
copying xformers_flash_attn\layers_init_.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\layers
creating build\lib.win-amd64-cpython-312\xformers_flash_attn\losses
copying xformers_flash_attn\losses\cross_entropy.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\losses
copying xformers_flash_attn\losses_init_.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\losses
creating build\lib.win-amd64-cpython-312\xformers_flash_attn\models
copying xformers_flash_attn\models\baichuan.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\models
copying xformers_flash_attn\models\bert.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\models
copying xformers_flash_attn\models\bigcode.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\models
copying xformers_flash_attn\models\falcon.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\models
copying xformers_flash_attn\models\gpt.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\models
copying xformers_flash_attn\models\gptj.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\models
copying xformers_flash_attn\models\gpt_neox.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\models
copying xformers_flash_attn\models\llama.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\models
copying xformers_flash_attn\models\opt.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\models
copying xformers_flash_attn\models\vit.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\models
copying xformers_flash_attn\models_init_.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\models
creating build\lib.win-amd64-cpython-312\xformers_flash_attn\modules
copying xformers_flash_attn\modules\block.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\modules
copying xformers_flash_attn\modules\embedding.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\modules
copying xformers_flash_attn\modules\mha.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\modules
copying xformers_flash_attn\modules\mlp.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\modules
copying xformers_flash_attn\modules_init_.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\modules
creating build\lib.win-amd64-cpython-312\xformers_flash_attn\ops
copying xformers_flash_attn\ops\activations.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\ops
copying xformers_flash_attn\ops\fused_dense.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\ops
copying xformers_flash_attn\ops\layer_norm.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\ops
copying xformers_flash_attn\ops\rms_norm.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\ops
copying xformers_flash_attn\ops_init_.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\ops
creating build\lib.win-amd64-cpython-312\xformers_flash_attn\utils
copying xformers_flash_attn\utils\benchmark.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\utils
copying xformers_flash_attn\utils\distributed.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\utils
copying xformers_flash_attn\utils\generation.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\utils
copying xformers_flash_attn\utils\pretrained.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\utils
copying xformers_flash_attn\utils_init_.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\utils
creating build\lib.win-amd64-cpython-312\xformers_flash_attn\ops\triton
copying xformers_flash_attn\ops\triton\cross_entropy.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\ops\triton
copying xformers_flash_attn\ops\triton\k_activations.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\ops\triton
copying xformers_flash_attn\ops\triton\layernorm.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\ops\triton
copying xformers_flash_attn\ops\triton\linear.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\ops\triton
copying xformers_flash_attn\ops\triton\mlp.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\ops\triton
copying xformers_flash_attn\ops\triton\rotary.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\ops\triton
copying xformers_flash_attn\ops\triton_init_.py -> build\lib.win-amd64-cpython-312\xformers_flash_attn\ops\triton
running build_ext
C:\anaconda\anaconda3\envs\comfyui_env\Lib\site-packages\torch\utils\cpp_extension.py:381: UserWarning: Error checking compiler version for cl: [WinError 2] The system cannot find the file specified
warnings.warn(f'Error checking compiler version for {compiler}: {error}')
C:\anaconda\anaconda3\envs\comfyui_env\Lib\site-packages\torch\utils\cpp_extension.py:415: UserWarning: The detected CUDA version (12.4) has a minor version mismatch with the version that was used to compile PyTorch (12.1). Most likely this shouldn't be a problem.
warnings.warn(CUDA_MISMATCH_WARN.format(cuda_str_version, torch.version.cuda))
building 'xformers._C_flashattention' extension
creating C:\Users\myprivacy\AppData\Local\Temp\pip-install-f957qqbs\xformers_d0a7605b22d846c6b23839be1ba9dfeb\build\temp.win-amd64-cpython-312\Release\Users\myprivacy\AppData\Local\Temp\pip-install-f957qqbs\xformers_d0a7605b22d846c6b23839be1ba9dfeb\third_party\flash-attention\csrc\flash_attn
creating C:\Users\myprivacy\AppData\Local\Temp\pip-install-f957qqbs\xformers_d0a7605b22d846c6b23839be1ba9dfeb\build\temp.win-amd64-cpython-312\Release\Users\myprivacy\AppData\Local\Temp\pip-install-f957qqbs\xformers_d0a7605b22d846c6b23839be1ba9dfeb\third_party\flash-attention\csrc\flash_attn\src
Emitting ninja build file C:\Users\myprivacy\AppData\Local\Temp\pip-install-f957qqbs\xformers_d0a7605b22d846c6b23839be1ba9dfeb\build\temp.win-amd64-cpython-312\Release\build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
ninja: error: Stat(C:/Users/myprivacy/AppData/Local/Temp/pip-install-f957qqbs/xformers_d0a7605b22d846c6b23839be1ba9dfeb/build/temp.win-amd64-cpython-312/Release/Users/myprivacy/AppData/Local/Temp/pip-install-f957qqbs/xformers_d0a7605b22d846c6b23839be1ba9dfeb/third_party/flash-attention/csrc/flash_attn/flash_api.obj): Filename longer than 260 characters
Traceback (most recent call last):
File "C:\anaconda\anaconda3\envs\comfyui_env\Lib\site-packages\torch\utils\cpp_extension.py", line 2096, in _run_ninja_build
subprocess.run(
File "C:\anaconda\anaconda3\envs\comfyui_env\Lib\subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

  The above exception was the direct cause of the following exception:

  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "C:\Users\myprivacy\AppData\Local\Temp\pip-install-f957qqbs\xformers_d0a7605b22d846c6b23839be1ba9dfeb\setup.py", line 405, in <module>
      setuptools.setup(
    File "C:\anaconda\anaconda3\envs\comfyui_env\Lib\site-packages\setuptools\__init__.py", line 117, in setup
      return distutils.core.setup(**attrs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\anaconda\anaconda3\envs\comfyui_env\Lib\site-packages\setuptools\_distutils\core.py", line 183, in setup
      return run_commands(dist)
             ^^^^^^^^^^^^^^^^^^
    File "C:\anaconda\anaconda3\envs\comfyui_env\Lib\site-packages\setuptools\_distutils\core.py", line 199, in run_commands
      dist.run_commands()
    File "C:\anaconda\anaconda3\envs\comfyui_env\Lib\site-packages\setuptools\_distutils\dist.py", line 954, in run_commands
      self.run_command(cmd)
    File "C:\anaconda\anaconda3\envs\comfyui_env\Lib\site-packages\setuptools\dist.py", line 991, in run_command
      super().run_command(command)
    File "C:\anaconda\anaconda3\envs\comfyui_env\Lib\site-packages\setuptools\_distutils\dist.py", line 973, in run_command
      cmd_obj.run()
    File "C:\anaconda\anaconda3\envs\comfyui_env\Lib\site-packages\setuptools\command\bdist_wheel.py", line 407, in run
      self.run_command("build")
    File "C:\anaconda\anaconda3\envs\comfyui_env\Lib\site-packages\setuptools\_distutils\cmd.py", line 316, in run_command
      self.distribution.run_command(command)
    File "C:\anaconda\anaconda3\envs\comfyui_env\Lib\site-packages\setuptools\dist.py", line 991, in run_command
      super().run_command(command)
    File "C:\anaconda\anaconda3\envs\comfyui_env\Lib\site-packages\setuptools\_distutils\dist.py", line 973, in run_command
      cmd_obj.run()
    File "C:\anaconda\anaconda3\envs\comfyui_env\Lib\site-packages\setuptools\_distutils\command\build.py", line 135, in run
      self.run_command(cmd_name)
    File "C:\anaconda\anaconda3\envs\comfyui_env\Lib\site-packages\setuptools\_distutils\cmd.py", line 316, in run_command
      self.distribution.run_command(command)
    File "C:\anaconda\anaconda3\envs\comfyui_env\Lib\site-packages\setuptools\dist.py", line 991, in run_command
      super().run_command(command)
    File "C:\anaconda\anaconda3\envs\comfyui_env\Lib\site-packages\setuptools\_distutils\dist.py", line 973, in run_command
      cmd_obj.run()
    File "C:\anaconda\anaconda3\envs\comfyui_env\Lib\site-packages\setuptools\command\build_ext.py", line 98, in run
      _build_ext.run(self)
    File "C:\anaconda\anaconda3\envs\comfyui_env\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 359, in run
      self.build_extensions()
    File "C:\Users\myprivacy\AppData\Local\Temp\pip-install-f957qqbs\xformers_d0a7605b22d846c6b23839be1ba9dfeb\setup.py", line 361, in build_extensions
      super().build_extensions()
    File "C:\anaconda\anaconda3\envs\comfyui_env\Lib\site-packages\torch\utils\cpp_extension.py", line 871, in build_extensions
      build_ext.build_extensions(self)
    File "C:\anaconda\anaconda3\envs\comfyui_env\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 476, in build_extensions
      self._build_extensions_serial()
    File "C:\anaconda\anaconda3\envs\comfyui_env\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 502, in _build_extensions_serial
      self.build_extension(ext)
    File "C:\anaconda\anaconda3\envs\comfyui_env\Lib\site-packages\setuptools\command\build_ext.py", line 263, in build_extension
      _build_ext.build_extension(self, ext)
    File "C:\anaconda\anaconda3\envs\comfyui_env\Lib\site-packages\Cython\Distutils\build_ext.py", line 135, in build_extension
      super(build_ext, self).build_extension(ext)
    File "C:\anaconda\anaconda3\envs\comfyui_env\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 557, in build_extension
      objects = self.compiler.compile(
                ^^^^^^^^^^^^^^^^^^^^^^
    File "C:\anaconda\anaconda3\envs\comfyui_env\Lib\site-packages\torch\utils\cpp_extension.py", line 843, in win_wrap_ninja_compile
      _write_ninja_file_and_compile_objects(
    File "C:\anaconda\anaconda3\envs\comfyui_env\Lib\site-packages\torch\utils\cpp_extension.py", line 1774, in _write_ninja_file_and_compile_objects
      _run_ninja_build(
    File "C:\anaconda\anaconda3\envs\comfyui_env\Lib\site-packages\torch\utils\cpp_extension.py", line 2112, in _run_ninja_build
      raise RuntimeError(message) from e
  RuntimeError: Error compiling objects for extension
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for xformers
Running setup.py clean for xformers
Failed to build xformers
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (xformers)

@smthemex
Copy link
Owner

pip install xformers

@myprivacygithub
Copy link
Author

tried, but same ERROR: Failed to build installable wheels for some pyproject.toml based projects (xformers)

@myprivacygithub
Copy link
Author

better update your node according to comfyui config, it is affecting comfyui and most of the nodes already installed.

@smthemex
Copy link
Owner

smthemex commented Oct 24, 2024

after install 'facenet_pytorch' successful ,can install any pytorch above torch2.2.0 ,
for example:
pip uninstall torchaudio torchvision torch xformers
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124
pip install xformers
xformers must match torch version

The installation of 'facenet_pytorch' caused all this trouble,

@myprivacygithub
Copy link
Author

ok. i will try again. thanks.

@myprivacygithub
Copy link
Author

after installing xformers like below, problem solved.
pip3 install -U xformers --index-url https://download.pytorch.org/whl/cu124

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

2 participants