YanWenKun / ComfyUI-Docker

🐳Dockerfile for 🎨ComfyUI. | 容器镜像与启动脚本
https://hub.docker.com/r/yanwk/comfyui-boot
Other
468 stars 87 forks source link

Comfy3D-pt23 - [!] torchvision 0.18.0+cu121 requires torch==2.3.0, but you have torch 2.5.1+cu121 which is incompatible. #70

Open jurassicjordan opened 5 days ago

jurassicjordan commented 5 days ago

Dependency installation for 3D pack locks up as the wrong version of torch installs?



Install: pip packages for '/root/ComfyUI/custom_nodes/ComfyUI-3D-Pack'
                                                                                                                                                                                                                                                                                                                                                                                                       Install: install script for '/root/ComfyUI/custom_nodes/ComfyUI-3D-Pack'
 Looking in indexes: https://download.pytorch.org/whl/cu121
 Collecting torch==2.5.1
   Using cached https://download.pytorch.org/whl/cu121/torch-2.5.1%2Bcu121-cp311-cp311-linux_x86_64.whl (780.5 MB)
         Collecting nvidia-cudnn-cu12==9.1.0.70 (from torch==2.5.1)
   Using cached https://download.pytorch.org/whl/cu121/nvidia_cudnn_cu12-9.1.0.70-py3-none-manylinux2014_x86_64.whl (664.8 MB)
      Collecting nvidia-nccl-cu12==2.21.5 (from torch==2.5.1)
   Using cached https://download.pytorch.org/whl/nvidia_nccl_cu12-2.21.5-py3-none-manylinux2014_x86_64.whl (188.7 MB)
  Collecting triton==3.1.0 (from torch==2.5.1)
   Using cached https://download.pytorch.org/whl/triton-3.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (209.5 MB)
 Collecting sympy==1.13.1 (from torch==2.5.1)
   Using cached https://download.pytorch.org/whl/sympy-1.13.1-py3-none-any.whl (6.2 MB)
    Installing collected packages: triton, sympy, nvidia-nccl-cu12, nvidia-cudnn-cu12, torch
[!]  Successfully installed nvidia-cudnn-cu12-9.1.0.70 nvidia-nccl-cu12-2.21.5 sympy-1.13.1 torch-2.5.1+cu121 triton-3.1.0
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.
[!] torchaudio 2.3.0+cu121 requires torch==2.3.0, but you have torch 2.5.1+cu121 which is incompatible.
[!] torchvision 0.18.0+cu121 requires torch==2.3.0, but you have torch 2.5.1+cu121 which is incompatible.
[!] xformers 0.0.26.post1 requires torch==2.3.0, but you have torch 2.5.1+cu121 which is incompatible.
 Looking in indexes: https://download.pytorch.org/whl/cu121
 Collecting torchvision==0.20.1
   Using cached https://download.pytorch.org/whl/cu121/torchvision-0.20.1%2Bcu121-cp311-cp311-linux_x86_64.whl (7.3 MB)
  Collecting torch==2.5.1 (from torchvision==0.20.1)
   Using cached https://download.pytorch.org/whl/cu121/torch-2.5.1%2Bcu121-cp311-cp311-linux_x86_64.whl (780.5 MB)
          Collecting nvidia-cudnn-cu12==9.1.0.70 (from torch==2.5.1->torchvision==0.20.1)
   Using cached https://download.pytorch.org/whl/cu121/nvidia_cudnn_cu12-9.1.0.70-py3-none-manylinux2014_x86_64.whl (664.8 MB)
      Collecting nvidia-nccl-cu12==2.21.5 (from torch==2.5.1->torchvision==0.20.1)
   Using cached https://download.pytorch.org/whl/nvidia_nccl_cu12-2.21.5-py3-none-manylinux2014_x86_64.whl (188.7 MB)
  Collecting triton==3.1.0 (from torch==2.5.1->torchvision==0.20.1)
   Using cached https://download.pytorch.org/whl/triton-3.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (209.5 MB)
 Collecting sympy==1.13.1 (from torch==2.5.1->torchvision==0.20.1)
   Using cached https://download.pytorch.org/whl/sympy-1.13.1-py3-none-any.whl (6.2 MB)
    Installing collected packages: triton, sympy, nvidia-nccl-cu12, nvidia-cudnn-cu12, torch, torchvision
[!] 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.
[!]  torchaudio 2.3.0+cu121 requires torch==2.3.0, but you have torch 2.5.1+cu121 which is incompatible.
Successfully installed nvidia-cudnn-cu12-9.1.0.70 nvidia-nccl-cu12-2.21.5 sympy-1.13.1 torch-2.5.1+cu121 torchvision-0.20.1+cu121 triton-3.1.0
[!] xformers 0.0.26.post1 requires torch==2.3.0, but you have torch 2.5.1+cu121 which is incompatible.
 Looking in indexes: https://download.pytorch.org/whl/cu121
 Collecting xformers==0.0.28.post3
   Using cached https://download.pytorch.org/whl/cu121/xformers-0.0.28.post3-cp311-cp311-manylinux_2_28_x86_64.whl (16.7 MB)
  Collecting torch==2.5.1 (from xformers==0.0.28.post3)
   Using cached https://download.pytorch.org/whl/cu121/torch-2.5.1%2Bcu121-cp311-cp311-linux_x86_64.whl (780.5 MB)
         Collecting nvidia-cudnn-cu12==9.1.0.70 (from torch==2.5.1->xformers==0.0.28.post3)
   Using cached https://download.pytorch.org/whl/cu121/nvidia_cudnn_cu12-9.1.0.70-py3-none-manylinux2014_x86_64.whl (664.8 MB)
      Collecting nvidia-nccl-cu12==2.21.5 (from torch==2.5.1->xformers==0.0.28.post3)
   Using cached https://download.pytorch.org/whl/nvidia_nccl_cu12-2.21.5-py3-none-manylinux2014_x86_64.whl (188.7 MB)
  Collecting triton==3.1.0 (from torch==2.5.1->xformers==0.0.28.post3)
   Using cached https://download.pytorch.org/whl/triton-3.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (209.5 MB)
 Collecting sympy==1.13.1 (from torch==2.5.1->xformers==0.0.28.post3)
   Using cached https://download.pytorch.org/whl/sympy-1.13.1-py3-none-any.whl (6.2 MB)
    Installing collected packages: triton, sympy, nvidia-nccl-cu12, nvidia-cudnn-cu12, torch, xformers
[!] 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.
 [!]Successfully installed nvidia-cudnn-cu12-9.1.0.70 nvidia-nccl-cu12-2.21.5 sympy-1.13.1 torch-2.5.1+cu121 triton-3.1.0 xformers-0.0.28.post3
 torchaudio 2.3.0+cu121 requires torch==2.3.0, but you have torch 2.5.1+cu121 which is incompatible.
[!] torchvision 0.18.0+cu121 requires torch==2.3.0, but you have torch 2.5.1+cu121 which is incompatible.```
YanWenKun commented 5 days ago

The re-installation of dependencies could be the behavior of ComfyUI-Manager. I just removed it in all comfy3d Docker images. (7e98e5a)

To fix broken deps on your existing pt23 instance:

  1. Delete storage/.local/lib/python3* (on host) or /root/.local/lib/python3* (in container)
  2. Delete ComfyUI/custom_nodes/ComfyUI-Manager (or rename it to ComfyUI-Manager.disabled)

Then try to start the container again.