build error

build failed with exit code: 1, message: None

Build logs:

--> FROM docker.io/library/python:3.8.9@sha256:49d05fff9cb3b185b15ffd92d8e6bd61c20aa916133dca2e3dbe0215270faf53
DONE 0.0s

--> RUN apt-get update && apt-get install -y 	git 	git-lfs 	ffmpeg 	libsm6 	libxext6 	cmake 	libgl1-mesa-glx 	&& rm -rf /var/lib/apt/lists/* 	&& git lfs install
CACHED

--> WORKDIR /home/user/app
CACHED

--> RUN pip install --no-cache-dir pip==22.0.2 && pip install --no-cache-dir         datasets         huggingface-hub     	"protobuf<4" "click<8.1"
CACHED

--> RUN useradd -m -u 1000 user
CACHED

--> COPY packages.txt /root/packages.txt
CACHED

--> RUN apt-get update && xargs -r -a /root/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
CACHED

--> COPY requirements.txt /home/user/app/requirements.txt
DONE 0.0s

--> RUN pip install --no-cache-dir -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
Collecting mathutils
  Downloading mathutils-3.3.0.tar.gz (245 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 245.4/245.4 KB 82.7 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting matplotlib
  Downloading matplotlib-3.6.2-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (9.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.4/9.4 MB 145.9 MB/s eta 0:00:00
Collecting h5py
  Downloading h5py-3.7.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (4.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.5/4.5 MB 269.1 MB/s eta 0:00:00
Collecting torch
  Downloading torch-1.13.1-cp38-cp38-manylinux1_x86_64.whl (887.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 887.4/887.4 MB 177.3 MB/s eta 0:00:00
Collecting contourpy>=1.0.1
  Downloading contourpy-1.0.6-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (295 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 296.0/296.0 KB 287.7 MB/s eta 0:00:00
Collecting fonttools>=4.22.0
  Downloading fonttools-4.38.0-py3-none-any.whl (965 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 965.4/965.4 KB 296.5 MB/s eta 0:00:00
Collecting pillow>=6.2.0
  Downloading Pillow-9.3.0-cp38-cp38-manylinux_2_28_x86_64.whl (3.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.3/3.3 MB 293.2 MB/s eta 0:00:00
Requirement already satisfied: numpy>=1.19 in /home/user/.local/lib/python3.8/site-packages (from matplotlib->-r requirements.txt (line 2)) (1.23.5)
Collecting kiwisolver>=1.0.1
  Downloading kiwisolver-1.4.4-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 278.2 MB/s eta 0:00:00
Collecting pyparsing>=2.2.1
  Downloading pyparsing-3.0.9-py3-none-any.whl (98 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 98.3/98.3 KB 261.2 MB/s eta 0:00:00
Requirement already satisfied: python-dateutil>=2.7 in /home/user/.local/lib/python3.8/site-packages (from matplotlib->-r requirements.txt (line 2)) (2.8.2)
Collecting cycler>=0.10
  Downloading cycler-0.11.0-py3-none-any.whl (6.4 kB)
Requirement already satisfied: packaging>=20.0 in /home/user/.local/lib/python3.8/site-packages (from matplotlib->-r requirements.txt (line 2)) (22.0)
Collecting nvidia-cublas-cu11==11.10.3.66
  Downloading nvidia_cublas_cu11-11.10.3.66-py3-none-manylinux1_x86_64.whl (317.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 317.1/317.1 MB 238.4 MB/s eta 0:00:00
Requirement already satisfied: typing-extensions in /home/user/.local/lib/python3.8/site-packages (from torch->-r requirements.txt (line 4)) (4.4.0)
Collecting nvidia-cudnn-cu11==8.5.0.96
  Downloading nvidia_cudnn_cu11-8.5.0.96-2-py3-none-manylinux1_x86_64.whl (557.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 557.1/557.1 MB 206.4 MB/s eta 0:00:00
Collecting nvidia-cuda-nvrtc-cu11==11.7.99
  Downloading nvidia_cuda_nvrtc_cu11-11.7.99-2-py3-none-manylinux1_x86_64.whl (21.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 21.0/21.0 MB 203.2 MB/s eta 0:00:00
Collecting nvidia-cuda-runtime-cu11==11.7.99
  Downloading nvidia_cuda_runtime_cu11-11.7.99-py3-none-manylinux1_x86_64.whl (849 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 849.3/849.3 KB 283.1 MB/s eta 0:00:00
Requirement already satisfied: wheel in /usr/local/lib/python3.8/site-packages (from nvidia-cublas-cu11==11.10.3.66->torch->-r requirements.txt (line 4)) (0.36.2)
Requirement already satisfied: setuptools in /usr/local/lib/python3.8/site-packages (from nvidia-cublas-cu11==11.10.3.66->torch->-r requirements.txt (line 4)) (56.0.0)
Requirement already satisfied: six>=1.5 in /home/user/.local/lib/python3.8/site-packages (from python-dateutil>=2.7->matplotlib->-r requirements.txt (line 2)) (1.16.0)
Building wheels for collected packages: mathutils
  Building wheel for mathutils (setup.py): started
  Building wheel for mathutils (setup.py): finished with status 'error'
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [44 lines of output]
      running bdist_wheel
      running build
      running build_ext
      building 'mathutils' extension
      creating build
      creating build/temp.linux-x86_64-3.8
      creating build/temp.linux-x86_64-3.8/src
      creating build/temp.linux-x86_64-3.8/src/stubs
      creating build/temp.linux-x86_64-3.8/src/blenlib
      creating build/temp.linux-x86_64-3.8/src/blenlib/intern
      creating build/temp.linux-x86_64-3.8/src/mathutils
      creating build/temp.linux-x86_64-3.8/src/generic
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DMATH_STANDALONE -DWITH_ASSERT_ABORT -Isrc/stubs -Isrc/blenlib -Isrc/makesdna -I/usr/local/include/python3.8 -c src/stubs/stubs.c -o build/temp.linux-x86_64-3.8/src/stubs/stubs.o -funsigned-char -Wno-sign-compare -Wno-strict-aliasing -std=gnu99
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DMATH_STANDALONE -DWITH_ASSERT_ABORT -Isrc/stubs -Isrc/blenlib -Isrc/makesdna -I/usr/local/include/python3.8 -c src/blenlib/intern/BLI_assert.c -o build/temp.linux-x86_64-3.8/src/blenlib/intern/BLI_assert.o -funsigned-char -Wno-sign-compare -Wno-strict-aliasing -std=gnu99
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DMATH_STANDALONE -DWITH_ASSERT_ABORT -Isrc/stubs -Isrc/blenlib -Isrc/makesdna -I/usr/local/include/python3.8 -c src/blenlib/intern/math_base.c -o build/temp.linux-x86_64-3.8/src/blenlib/intern/math_base.o -funsigned-char -Wno-sign-compare -Wno-strict-aliasing -std=gnu99
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DMATH_STANDALONE -DWITH_ASSERT_ABORT -Isrc/stubs -Isrc/blenlib -Isrc/makesdna -I/usr/local/include/python3.8 -c src/blenlib/intern/math_color.c -o build/temp.linux-x86_64-3.8/src/blenlib/intern/math_color.o -funsigned-char -Wno-sign-compare -Wno-strict-aliasing -std=gnu99
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DMATH_STANDALONE -DWITH_ASSERT_ABORT -Isrc/stubs -Isrc/blenlib -Isrc/makesdna -I/usr/local/include/python3.8 -c src/blenlib/intern/math_geom.c -o build/temp.linux-x86_64-3.8/src/blenlib/intern/math_geom.o -funsigned-char -Wno-sign-compare -Wno-strict-aliasing -std=gnu99
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DMATH_STANDALONE -DWITH_ASSERT_ABORT -Isrc/stubs -Isrc/blenlib -Isrc/makesdna -I/usr/local/include/python3.8 -c src/blenlib/intern/math_matrix.c -o build/temp.linux-x86_64-3.8/src/blenlib/intern/math_matrix.o -funsigned-char -Wno-sign-compare -Wno-strict-aliasing -std=gnu99
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DMATH_STANDALONE -DWITH_ASSERT_ABORT -Isrc/stubs -Isrc/blenlib -Isrc/makesdna -I/usr/local/include/python3.8 -c src/blenlib/intern/math_rotation.c -o build/temp.linux-x86_64-3.8/src/blenlib/intern/math_rotation.o -funsigned-char -Wno-sign-compare -Wno-strict-aliasing -std=gnu99
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DMATH_STANDALONE -DWITH_ASSERT_ABORT -Isrc/stubs -Isrc/blenlib -Isrc/makesdna -I/usr/local/include/python3.8 -c src/blenlib/intern/math_vector.c -o build/temp.linux-x86_64-3.8/src/blenlib/intern/math_vector.o -funsigned-char -Wno-sign-compare -Wno-strict-aliasing -std=gnu99
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DMATH_STANDALONE -DWITH_ASSERT_ABORT -Isrc/stubs -Isrc/blenlib -Isrc/makesdna -I/usr/local/include/python3.8 -c src/mathutils/mathutils.c -o build/temp.linux-x86_64-3.8/src/mathutils/mathutils.o -funsigned-char -Wno-sign-compare -Wno-strict-aliasing -std=gnu99
      src/mathutils/mathutils.c: In function ‘mathutils_array_hash’:
      src/mathutils/mathutils.c:79:24: error: incompatible type for argument 1 of ‘_Py_HashDouble’
           y = _Py_HashDouble(NULL, (double)(array[i++]));
                              ^~~~
      In file included from /usr/local/include/python3.8/Python.h:91,
                       from src/mathutils/mathutils.c:7:
      /usr/local/include/python3.8/pyhash.h:10:38: note: expected ‘double’ but argument is of type ‘void *’
       PyAPI_FUNC(Py_hash_t) _Py_HashDouble(double);
                                            ^~~~~~
      src/mathutils/mathutils.c:79:9: error: too many arguments to function ‘_Py_HashDouble’
           y = _Py_HashDouble(NULL, (double)(array[i++]));
               ^~~~~~~~~~~~~~
      In file included from /usr/local/include/python3.8/Python.h:91,
                       from src/mathutils/mathutils.c:7:
      /usr/local/include/python3.8/pyhash.h:10:23: note: declared here
       PyAPI_FUNC(Py_hash_t) _Py_HashDouble(double);
                             ^~~~~~~~~~~~~~
      src/mathutils/mathutils.c: In function ‘PyInit_mathutils’:
      src/mathutils/mathutils.c:770:3: warning: implicit declaration of function ‘PyModule_AddType’; did you mean ‘PyModule_AddObject’? [-Wimplicit-function-declaration]
         PyModule_AddType(mod, &vector_Type);
         ^~~~~~~~~~~~~~~~
         PyModule_AddObject
      error: command 'gcc' failed with exit status 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for mathutils
  Running setup.py clean for mathutils
Failed to build mathutils
Installing collected packages: mathutils, pyparsing, pillow, nvidia-cuda-runtime-cu11, nvidia-cuda-nvrtc-cu11, nvidia-cublas-cu11, kiwisolver, h5py, fonttools, cycler, contourpy, nvidia-cudnn-cu11, matplotlib, torch
  Running setup.py install for mathutils: started
  Running setup.py install for mathutils: finished with status 'error'
  error: subprocess-exited-with-error
  
  × Running setup.py install for mathutils did not run successfully.
  │ exit code: 1
  ╰─> [44 lines of output]
      running install
      running build
      running build_ext
      building 'mathutils' extension
      creating build
      creating build/temp.linux-x86_64-3.8
      creating build/temp.linux-x86_64-3.8/src
      creating build/temp.linux-x86_64-3.8/src/stubs
      creating build/temp.linux-x86_64-3.8/src/blenlib
      creating build/temp.linux-x86_64-3.8/src/blenlib/intern
      creating build/temp.linux-x86_64-3.8/src/mathutils
      creating build/temp.linux-x86_64-3.8/src/generic
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DMATH_STANDALONE -DWITH_ASSERT_ABORT -Isrc/stubs -Isrc/blenlib -Isrc/makesdna -I/usr/local/include/python3.8 -c src/stubs/stubs.c -o build/temp.linux-x86_64-3.8/src/stubs/stubs.o -funsigned-char -Wno-sign-compare -Wno-strict-aliasing -std=gnu99
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DMATH_STANDALONE -DWITH_ASSERT_ABORT -Isrc/stubs -Isrc/blenlib -Isrc/makesdna -I/usr/local/include/python3.8 -c src/blenlib/intern/BLI_assert.c -o build/temp.linux-x86_64-3.8/src/blenlib/intern/BLI_assert.o -funsigned-char -Wno-sign-compare -Wno-strict-aliasing -std=gnu99
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DMATH_STANDALONE -DWITH_ASSERT_ABORT -Isrc/stubs -Isrc/blenlib -Isrc/makesdna -I/usr/local/include/python3.8 -c src/blenlib/intern/math_base.c -o build/temp.linux-x86_64-3.8/src/blenlib/intern/math_base.o -funsigned-char -Wno-sign-compare -Wno-strict-aliasing -std=gnu99
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DMATH_STANDALONE -DWITH_ASSERT_ABORT -Isrc/stubs -Isrc/blenlib -Isrc/makesdna -I/usr/local/include/python3.8 -c src/blenlib/intern/math_color.c -o build/temp.linux-x86_64-3.8/src/blenlib/intern/math_color.o -funsigned-char -Wno-sign-compare -Wno-strict-aliasing -std=gnu99
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DMATH_STANDALONE -DWITH_ASSERT_ABORT -Isrc/stubs -Isrc/blenlib -Isrc/makesdna -I/usr/local/include/python3.8 -c src/blenlib/intern/math_geom.c -o build/temp.linux-x86_64-3.8/src/blenlib/intern/math_geom.o -funsigned-char -Wno-sign-compare -Wno-strict-aliasing -std=gnu99
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DMATH_STANDALONE -DWITH_ASSERT_ABORT -Isrc/stubs -Isrc/blenlib -Isrc/makesdna -I/usr/local/include/python3.8 -c src/blenlib/intern/math_matrix.c -o build/temp.linux-x86_64-3.8/src/blenlib/intern/math_matrix.o -funsigned-char -Wno-sign-compare -Wno-strict-aliasing -std=gnu99
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DMATH_STANDALONE -DWITH_ASSERT_ABORT -Isrc/stubs -Isrc/blenlib -Isrc/makesdna -I/usr/local/include/python3.8 -c src/blenlib/intern/math_rotation.c -o build/temp.linux-x86_64-3.8/src/blenlib/intern/math_rotation.o -funsigned-char -Wno-sign-compare -Wno-strict-aliasing -std=gnu99
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DMATH_STANDALONE -DWITH_ASSERT_ABORT -Isrc/stubs -Isrc/blenlib -Isrc/makesdna -I/usr/local/include/python3.8 -c src/blenlib/intern/math_vector.c -o build/temp.linux-x86_64-3.8/src/blenlib/intern/math_vector.o -funsigned-char -Wno-sign-compare -Wno-strict-aliasing -std=gnu99
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DMATH_STANDALONE -DWITH_ASSERT_ABORT -Isrc/stubs -Isrc/blenlib -Isrc/makesdna -I/usr/local/include/python3.8 -c src/mathutils/mathutils.c -o build/temp.linux-x86_64-3.8/src/mathutils/mathutils.o -funsigned-char -Wno-sign-compare -Wno-strict-aliasing -std=gnu99
      src/mathutils/mathutils.c: In function ‘mathutils_array_hash’:
      src/mathutils/mathutils.c:79:24: error: incompatible type for argument 1 of ‘_Py_HashDouble’
           y = _Py_HashDouble(NULL, (double)(array[i++]));
                              ^~~~
      In file included from /usr/local/include/python3.8/Python.h:91,
                       from src/mathutils/mathutils.c:7:
      /usr/local/include/python3.8/pyhash.h:10:38: note: expected ‘double’ but argument is of type ‘void *’
       PyAPI_FUNC(Py_hash_t) _Py_HashDouble(double);
                                            ^~~~~~
      src/mathutils/mathutils.c:79:9: error: too many arguments to function ‘_Py_HashDouble’
           y = _Py_HashDouble(NULL, (double)(array[i++]));
               ^~~~~~~~~~~~~~
      In file included from /usr/local/include/python3.8/Python.h:91,
                       from src/mathutils/mathutils.c:7:
      /usr/local/include/python3.8/pyhash.h:10:23: note: declared here
       PyAPI_FUNC(Py_hash_t) _Py_HashDouble(double);
                             ^~~~~~~~~~~~~~
      src/mathutils/mathutils.c: In function ‘PyInit_mathutils’:
      src/mathutils/mathutils.c:770:3: warning: implicit declaration of function ‘PyModule_AddType’; did you mean ‘PyModule_AddObject’? [-Wimplicit-function-declaration]
         PyModule_AddType(mod, &vector_Type);
         ^~~~~~~~~~~~~~~~
         PyModule_AddObject
      error: command 'gcc' failed with exit status 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> mathutils

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
WARNING: You are using pip version 22.0.2; however, version 22.3.1 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.

--> ERROR: process "/bin/sh -c pip install --no-cache-dir -r requirements.txt" did not complete successfully: exit code: 1