docker build of custom connector fails while tryin...
# replication-troubleshooting
d
docker build of custom connector fails while trying to include opencv-python as part of Dockerfile. Any idea what could be going wrong with the docker build
Copy code
Collecting numpy>=1.17.3

Downloading numpy-1.23.3.tar.gz (10.7 MB)

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.7/10.7 MB 51.6 MB/s eta 0:00:00

Installing build dependencies: started

Installing build dependencies: finished with status 'done'

Getting requirements to build wheel: started

Getting requirements to build wheel: finished with status 'done'

Preparing metadata (pyproject.toml): started

Preparing metadata (pyproject.toml): finished with status 'done'

Building wheels for collected packages: opencv-contrib-python, numpy

Building wheel for opencv-contrib-python (pyproject.toml): started

Building wheel for opencv-contrib-python (pyproject.toml): still running...

Building wheel for opencv-contrib-python (pyproject.toml): still running...

Building wheel for opencv-contrib-python (pyproject.toml): still running...

Building wheel for opencv-contrib-python (pyproject.toml): still running...

Building wheel for opencv-contrib-python (pyproject.toml): still running...

Building wheel for opencv-contrib-python (pyproject.toml): finished with status 'error'

error: subprocess-exited-with-error

× Building wheel for opencv-contrib-python (pyproject.toml) did not run successfully.

│ exit code: 1

╰─> [917 lines of output]

Not searching for unused variables given on the command line.

CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.

-- Configuring incomplete, errors occurred!

See also "/tmp/pip-install-y_ady_xo/opencv-contrib-python_aacd61cbb47847d481cda42de305140b/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".

Not searching for unused variables given on the command line.

-- The C compiler identification is GNU 10.3.1
e
Hi. This is the error:
Copy code
CMAKE_MAKE_PROGRAM is not set
https://pypi.org/project/opencv-python/ It says in the docs that you need to set it