Attempting to build opencv-python with Dockerfile on jetson nano but error (/tmp/nano_build_opencv/build_opencv.sh 3.4.10' returned a non-zero code: 1)

Attempting to build opencv-python with Dockerfile on jetson nano but error

Dockerfile

Dockerfile (excerpt of relevant part)


RUN git clone https://github.com/mdegans/nano_build_opencv /tmp/nano_build_opencv
ADD build_opencv.patch /.
RUN patch -p1 /build_opencv.patch && \
    gosu jetson /tmp/nano_build_opencv/build_opencv.sh 3.4.10

Error during docker build

Do you wish to remove temporary build files in /tmp/build_opencv ? 
(Doing so may make running tests on the build later impossible)
The command '/bin/sh -c patch -p0 < /build_opencv.patch &&     cat /tmp/nano_build_opencv/build_opencv.sh &&     gosu jetson /tmp/nano_build_opencv/build_opencv.sh 3.4.10' returned a non-zero code: 1

Avoid errors by typing y with the yes command

Dockerfile (excerpt of relevant part)


RUN git clone https://github.com/mdegans/nano_build_opencv /tmp/nano_build_opencv
ADD build_opencv.patch /.
RUN patch -p1 /build_opencv.patch && \
    yes | gosu jetson /tmp/nano_build_opencv/build_opencv.sh 3.4.10

reference

Do you want to automatically enter yes when asked in the middle of a command? You can do it with yes

Recommended Posts

Attempting to build opencv-python with Dockerfile on jetson nano but error (/tmp/nano_build_opencv/build_opencv.sh 3.4.10' returned a non-zero code: 1)
Attempting to build opencv-python with Dockerfile on jetson nano but error ((CUDA_cufft_LIBRARY (ADVANCED) ...-- Configuring incomplete, errors occurred!)
Attempting to install opencv-python3 on jetson nano but error (ModuleNotFoundError: No module named'skbuild')
Error when installing opencv-python on jetson nano (ModuleNotFoundError: No module named'skbuild')
Steps to create a Python virtual environment with VS Code on Windows
Build a subpixel accuracy measurement system with Jetson Nano + USB camera + OpenCV + Scikit-image
Build a Python + bottle + MySQL environment with Docker on RaspberryPi3! [Trial and error]
Build a flask app made with tensorflow and dlib to work on centos7