AITemplate icon indicating copy to clipboard operation
AITemplate copied to clipboard

Docker image fails to build due to python dependency issue

Open M1kep opened this issue 11 months ago • 2 comments

When attempting to build the docker image as per the README:

git clone --recursive https://github.com/facebookincubator/AITemplate
cd AITemplate
./docker/build.sh cuda

The image fails to build with the below error:

ERROR: Package 'networkx' requires a different Python: 3.8.10 not in '>=3.9'
The command '/bin/sh -c pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu113' returned a non-zero code: 1

Full Step:

Step 12/26 : RUN pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu113
 ---> Running in a57be2343b1e
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu113
Collecting torch
  Downloading torch-2.2.1-cp38-cp38-manylinux1_x86_64.whl (755.5 MB)
Collecting torchvision
  Downloading torchvision-0.17.1-cp38-cp38-manylinux1_x86_64.whl (6.9 MB)
Collecting torchaudio
  Downloading torchaudio-2.2.1-cp38-cp38-manylinux1_x86_64.whl (3.3 MB)
Collecting nvidia-cuda-runtime-cu12==12.1.105; platform_system == "Linux" and platform_machine == "x86_64"
  Downloading nvidia_cuda_runtime_cu12-12.1.105-py3-none-manylinux1_x86_64.whl (823 kB)
Collecting nvidia-cuda-nvrtc-cu12==12.1.105; platform_system == "Linux" and platform_machine == "x86_64"
  Downloading nvidia_cuda_nvrtc_cu12-12.1.105-py3-none-manylinux1_x86_64.whl (23.7 MB)
Collecting triton==2.2.0; platform_system == "Linux" and platform_machine == "x86_64" and python_version < "3.12"
  Downloading triton-2.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (167.9 MB)
Collecting nvidia-curand-cu12==10.3.2.106; platform_system == "Linux" and platform_machine == "x86_64"
  Downloading nvidia_curand_cu12-10.3.2.106-py3-none-manylinux1_x86_64.whl (56.5 MB)
Collecting sympy
  Downloading sympy-1.12-py3-none-any.whl (5.7 MB)
Requirement already satisfied: typing-extensions>=4.8.0 in /usr/local/lib/python3.8/dist-packages (from torch) (4.10.0)
Collecting nvidia-cuda-cupti-cu12==12.1.105; platform_system == "Linux" and platform_machine == "x86_64"
  Downloading nvidia_cuda_cupti_cu12-12.1.105-py3-none-manylinux1_x86_64.whl (14.1 MB)
Collecting nvidia-cudnn-cu12==8.9.2.26; platform_system == "Linux" and platform_machine == "x86_64"
  Downloading nvidia_cudnn_cu12-8.9.2.26-py3-none-manylinux1_x86_64.whl (731.7 MB)
Collecting nvidia-cufft-cu12==11.0.2.54; platform_system == "Linux" and platform_machine == "x86_64"
  Downloading nvidia_cufft_cu12-11.0.2.54-py3-none-manylinux1_x86_64.whl (121.6 MB)
Collecting nvidia-nvtx-cu12==12.1.105; platform_system == "Linux" and platform_machine == "x86_64"
  Downloading nvidia_nvtx_cu12-12.1.105-py3-none-manylinux1_x86_64.whl (99 kB)
Requirement already satisfied: jinja2 in /usr/local/lib/python3.8/dist-packages (from torch) (3.1.3)
Collecting nvidia-nccl-cu12==2.19.3; platform_system == "Linux" and platform_machine == "x86_64"
  Downloading nvidia_nccl_cu12-2.19.3-py3-none-manylinux1_x86_64.whl (166.0 MB)
Collecting nvidia-cusolver-cu12==11.4.5.107; platform_system == "Linux" and platform_machine == "x86_64"
  Downloading nvidia_cusolver_cu12-11.4.5.107-py3-none-manylinux1_x86_64.whl (124.2 MB)
Collecting nvidia-cublas-cu12==12.1.3.1; platform_system == "Linux" and platform_machine == "x86_64"
  Downloading nvidia_cublas_cu12-12.1.3.1-py3-none-manylinux1_x86_64.whl (410.6 MB)
Collecting networkx
  Downloading https://download.pytorch.org/whl/networkx-3.2.1-py3-none-any.whl (1.6 MB)
ERROR: Package 'networkx' requires a different Python: 3.8.10 not in '>=3.9'
The command '/bin/sh -c pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu113' returned a non-zero code: 1

M1kep avatar Mar 20 '24 02:03 M1kep

I encounter the same problem. have you solved this problem?

ShuzhaoXie avatar Jun 04 '24 12:06 ShuzhaoXie

I encounter the same problem. have you solved this problem?

ShuzhaoXie avatar Jun 04 '24 12:06 ShuzhaoXie