packnet-sfm icon indicating copy to clipboard operation
packnet-sfm copied to clipboard

`make docker-build` failed because of get-pip Python 3.6 unsupport and apex build failure

Open y-okumura-isp opened this issue 2 years ago • 3 comments

When running make docker-build, the following error occurs.

(1) pip no more supports Python 3.6

It looks get-pip.py is updated on 03-Feb-2022 09:45.

ERROR: This script does not work on Python 3.6 The minimum supported Python version is 3.7. Please use https://bootstrap.pypa.io/pip/3.6/get-pip.py instead.
The command '/bin/bash -cu curl -O https://bootstrap.pypa.io/get-pip.py &&     python get-pip.py &&     rm get-pip.py' returned a non-zero code: 1
Makefile:65: recipe for target 'docker-build' failed
make: *** [docker-build] Error 1

(2) NVIDIA apex build failure

I got ATen/cuda/DeviceUtils.cuh: No such file or directory. It looks build Apex latest version failed with pytorch 1.4.0 due to missing ATen/cuda/DeviceUtils.cuh

y-okumura-isp avatar Mar 03 '22 02:03 y-okumura-isp

Hello, I have the same problem as you. Have you solved it?

wang149876 avatar Mar 17 '22 03:03 wang149876

Yes, maybe. Though I don't know it is a right way, I could build by the following patch https://github.com/TRI-ML/packnet-sfm/pull/217

y-okumura-isp avatar Mar 17 '22 03:03 y-okumura-isp

I fixed this by replacing in docker/Dockerfile line 78, which is RUN curl -O https://bootstrap.pypa.io/get-pip.py && \ with the following: RUN curl -O https://bootstrap.pypa.io/pip/${PYTHON_VERSION}/get-pip.py && \

markus-42 avatar Apr 05 '22 08:04 markus-42