opencv / opencv-python

Automated CI toolchain to produce precompiled opencv-python, opencv-python-headless, opencv-contrib-python and opencv-contrib-python-headless packages.
https://pypi.org/project/opencv-python/
MIT License
4.44k stars 835 forks source link

Failed to build opencv-python with in docker #770

Closed githubwyj closed 1 year ago

githubwyj commented 1 year ago

Expected behaviour

dockerfile :

FROM paddlepaddle/paddle:2.4.0rc0-cpu

### change the system source for installing libs
RUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list
RUN sed -i s@/security.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list
RUN apt-get clean
RUN apt-get update

RUN apt-get install -y libssl-dev cmake gcc git build-essential libsm6
RUN apt-get install -y libxrender1 libfontconfig1 libgl1-mesa-glx libavcodec-dev libavformat-dev libswscale-dev
RUN apt-get install -y libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev libgtk-3-dev libgtk2.0-dev libcanberra-gtk-module
RUN apt-get install -y ffmpeg libpng-dev libjpeg-dev libopenexr-dev libtiff-dev libwebp-dev libopencv-dev x264 libx264-dev

WORKDIR /runtime/xx/

ADD requirements.txt .

RUN pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
RUN pip install --upgrade pip
RUN pip install -r requirements.txt

# install ninja
RUN apt-get install re2c
RUN git clone https://ghproxy.com/https://github.com/ninja-build/ninja.git
RUN cd ninja  \
    && ./configure.py --bootstrap  \
    && cp ./ninja /usr/bin

RUN export CMAKE_ARGS="-DWITH_FREETYPE=ON"  \
    && export MAKEFLAGS="-j $(($(nproc)-1))" \
    && export OPENCV_IPPICV_URL="https://ghproxy.com/https://raw.githubusercontent.com/opencv/opencv_3rdparty/a56b6ac6f030c312b2dce17430eef13aed9af274/ippicv/" \
    && export OPENCV_ADE_URL="https://ghproxy.com/https://github.com/opencv/ade/archive/" \
    && python -m pip install --no-binary opencv-python opencv-python==4.6.0.66
    #&& export OPENCV_FFMPEG_URL="https://ghproxy.com/https://raw.githubusercontent.com/opencv/opencv_3rdparty/7dd0d4f1d6fe75f05f3d3b5e38cbc96c1a2d2809/ffmpeg/" \

CMD echo "hello world !"

# 构建命令
#docker build -f Dockerfile-base -t headlight-paddle-base:1.0.0-SNAPSHOT .

Actual behaviour

 => ERROR [18/18] RUN export CMAKE_ARGS="-DWITH_FREETYPE=ON"      && export MAKEFLAGS="-j $(($(nproc)-1))"     && export OPENCV_IPPICV_URL="https://ghproxy.com/https://raw.githubusercontent.com/opencv/opencv_3rdparty/a56b6a  517.9s 
------
 > [18/18] RUN export CMAKE_ARGS="-DWITH_FREETYPE=ON"      && export MAKEFLAGS="-j $(($(nproc)-1))"     && export OPENCV_IPPICV_URL="https://ghproxy.com/https://raw.githubusercontent.com/opencv/opencv_3rdparty/a56b6ac6f030c312b2dce17430eef13aed9af274/ippicv/"     && export OPENCV_ADE_URL="https://ghproxy.com/https://github.com/opencv/ade/archive/"     && python -m pip install --no-binary opencv-python opencv-python==4.6.0.66:
#22 0.627 DEPRECATION: --no-binary currently disables reading from the cache of locally built wheels. In the future --no-binary will not influence the wheel cache. pip 23.1 will enforce this behaviour change. A possible replacement is to use the --no-cache-dir option. You can use the flag --use-feature=no-binary-enable-wheel-cache to test the upcoming behaviour. Discussion can be found at https://github.com/pypa/pip/issues/11453
#22 0.633 Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
#22 16.08 Collecting opencv-python==4.6.0.66
#22 16.31   Downloading https://mirrors.aliyun.com/pypi/packages/7a/1c/e57fe138615c29b8d1442009057dd420c58d4773cb16112e914c9e7b47d8/opencv-python-4.6.0.66.tar.gz (90.3 MB)
#22 113.3      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 90.3/90.3 MB 1.0 MB/s eta 0:00:00
#22 116.3   Installing build dependencies: started
#22 160.3   Installing build dependencies: finished with status 'done'
#22 160.3   Getting requirements to build wheel: started
#22 160.8   Getting requirements to build wheel: finished with status 'done'
#22 160.8   Preparing metadata (pyproject.toml): started
#22 161.1   Preparing metadata (pyproject.toml): finished with status 'done'
#22 161.1 Requirement already satisfied: numpy>=1.14.5 in /usr/local/lib/python3.7/dist-packages (from opencv-python==4.6.0.66) (1.21.6)
#22 161.1 Building wheels for collected packages: opencv-python
#22 161.1   Building wheel for opencv-python (pyproject.toml): started
#22 297.9   Building wheel for opencv-python (pyproject.toml): still running...
#22 358.3   Building wheel for opencv-python (pyproject.toml): still running...
#22 418.7   Building wheel for opencv-python (pyproject.toml): still running...
#22 479.0   Building wheel for opencv-python (pyproject.toml): still running...
#22 517.0   Building wheel for opencv-python (pyproject.toml): finished with status 'error'
#22 517.1   error: subprocess-exited-with-error
#22 517.1
#22 517.1   × Building wheel for opencv-python (pyproject.toml) did not run successfully.
#22 517.1   │ exit code: 1
#22 517.1   ╰─> [1630 lines of output]
#22 517.1
#22 517.1
#22 517.1       --------------------------------------------------------------------------------
#22 517.1       -- Trying "Ninja" generator
#22 517.1       --------------------------------
#22 517.1       ---------------------------
#22 517.1       ----------------------
#22 517.1       -----------------
#22 517.1       ------------
#22 517.1       -------
#22 517.1       --
#22 517.1       Not searching for unused variables given on the command line.
#22 517.1       -- The C compiler identification is GNU 8.2.0
#22 517.1       -- Detecting C compiler ABI info
#22 517.1       -- Detecting C compiler ABI info - done
#22 517.1       -- Check for working C compiler: /usr/bin/cc - skipped
#22 517.1       -- Detecting C compile features
#22 517.1       -- Detecting C compile features - done
#22 517.1       -- The CXX compiler identification is GNU 8.2.0
#22 517.1       -- Detecting CXX compiler ABI info
#22 517.1       -- Detecting CXX compiler ABI info - done
#22 517.1       -- Check for working CXX compiler: /usr/bin/c++ - skipped
#22 517.1       -- Detecting CXX compile features
#22 517.1       -- Detecting CXX compile features - done
#22 517.1       -- Configuring done
#22 517.1       -- Generating done
#22 517.1       -- Build files have been written to: /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/_cmake_test_compile/build
#22 517.1       --
#22 517.1       -------
#22 517.1       ------------
#22 517.1       -----------------
#22 517.1       ----------------------
#22 517.1       ---------------------------
#22 517.1       --------------------------------
#22 517.1       -- Trying "Ninja" generator - success
#22 517.1       --------------------------------------------------------------------------------
#22 517.1
#22 517.1       Configuring Project
#22 517.1         Working directory:
#22 517.1           /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/_skbuild/linux-x86_64-3.7/cmake-build
#22 517.1         Command:
#22 517.1           cmake /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv -G Ninja -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/_skbuild/linux-x
86_64-3.7/cmake-install -DPYTHON_VERSION_STRING:STRING=3.7.13 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/site-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/usr/bin
/python -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.7m -DPYTHON_LIBRARY:PATH=/usr/lib/x86_64-linux-gnu/libpython3.7m.so -DPython_EXECUTABLE:PATH=/usr/bin/python -DPython_ROOT_DIR:PATH=/usr -DPython_INCLUDE_DIR:PATH=/usr/include/p
ython3.7m -DPython_FIND_REGISTRY:STRING=NEVER -DPython_NumPy_INCLUDE_DIRS:PATH=/tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/site-packages/numpy/core/include -DPython3_EXECUTABLE:PATH=/usr/bin/python -DPython3_ROOT_DIR:PATH=/usr
 -DPython3_INCLUDE_DIR:PATH=/usr/include/python3.7m -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_NumPy_INCLUDE_DIRS:PATH=/tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/site-packages/numpy/core/include -DWITH_FREETYPE=ON -DPYTHO
N3_EXECUTABLE=/usr/bin/python -DPYTHON3_INCLUDE_DIR=/usr/include/python3.7m -DPYTHON3_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython3.7m.so -DBUILD_opencv_python3=ON -DBUILD_opencv_python2=OFF -DBUILD_opencv_java=OFF -DOPENCV_PYTHON3_I
NSTALL_PATH=python -DINSTALL_CREATE_DISTRIB=ON -DBUILD_opencv_apps=OFF -DBUILD_opencv_freetype=OFF -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DBUILD_DOCS=OFF -DPYTHON3_LIMITED_API=ON -DBUILD_OPENEXR=ON -DWITH_FREETYPE=ON -DCMAKE_BUILD_TYPE:STRING=Release -DWITH_FREETYPE=ON
#22 517.1
#22 517.1       -- The CXX compiler identification is GNU 8.2.0
#22 517.1       -- The C compiler identification is GNU 8.2.0
#22 517.1       -- Detecting CXX compiler ABI info
#22 517.1       -- Detecting CXX compiler ABI info - done
#22 517.1       -- Check for working CXX compiler: /usr/local/gcc-8.2/bin/c++ - skipped
#22 517.1       -- Detecting CXX compile features
#22 517.1       -- Detecting CXX compile features - done
#22 517.1       -- Detecting C compiler ABI info
#22 517.1       -- Detecting C compiler ABI info - done
#22 517.1       -- Check for working C compiler: /usr/local/gcc-8.2/bin/gcc - skipped
#22 517.1       -- Detecting C compile features
#22 517.1       -- Detecting C compile features - done
#22 517.1       -- ocv_init_download: OpenCV source tree is not fetched as git repository. 3rdparty resources will be downloaded from github.com by default.
#22 517.1       -- Detected processor: x86_64
#22 517.1       -- Found PythonInterp: /usr/bin/python (found suitable version "3.7.13", minimum required is "2.7")
#22 517.1       CMake Warning at cmake/OpenCVDetectPython.cmake:81 (message):
#22 517.1         CMake's 'find_host_package(PythonInterp 2.7)' found wrong Python version:
#22 517.1
#22 517.1         PYTHON_EXECUTABLE=/usr/bin/python
#22 517.1
#22 517.1         PYTHON_VERSION_STRING=3.7.13
#22 517.1
#22 517.1         Consider providing the 'PYTHON2_EXECUTABLE' variable via CMake command line
#22 517.1         or environment variables
#22 517.1
#22 517.1       Call Stack (most recent call first):
#22 517.1         cmake/OpenCVDetectPython.cmake:271 (find_python)
#22 517.1         CMakeLists.txt:628 (include)
#22 517.1
#22 517.1
#22 517.1       -- Found Python2: /usr/bin/python2.7 (found version "2.7.17") found components: Interpreter
#22 517.1       -- Found PythonInterp: /usr/bin/python2.7 (found version "2.7.17")
#22 517.1       -- Could NOT find PythonLibs: Found unsuitable version "3.7.13", but required is exact version "2.7.17" (found /usr/lib/x86_64-linux-gnu/libpython3.7m.so)
#22 517.1       Traceback (most recent call last):
#22 517.1         File "<string>", line 1, in <module>
#22 517.1         File "/tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/site-packages/numpy/__init__.py", line 142, in <module>
#22 517.1           from . import add_newdocs
#22 517.1         File "/tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/site-packages/numpy/add_newdocs.py", line 13, in <module>
#22 517.1           from numpy.lib import add_newdoc
#22 517.1         File "/tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/site-packages/numpy/lib/__init__.py", line 8, in <module>
#22 517.1           from .type_check import *
#22 517.1         File "/tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/site-packages/numpy/lib/type_check.py", line 11, in <module>
#22 517.1           import numpy.core.numeric as _nx
#22 517.1         File "/tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/site-packages/numpy/core/__init__.py", line 26, in <module>
#22 517.1           raise ImportError(msg)
#22 517.1       ImportError:
#22 517.1       Importing the multiarray numpy extension module failed.  Most
#22 517.1       likely you are trying to import a failed build of numpy.
#22 517.1       If you're working with a numpy git repo, try `git clean -xdf` (removes all
#22 517.1       files not under version control).  Otherwise reinstall numpy.
#22 517.1
#22 517.1       Original error was: cannot import name multiarray
#22 517.1
#22 517.1       -- Found PythonInterp: /usr/bin/python (found suitable version "3.7.13", minimum required is "3.2")
#22 517.1       -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.7m.so (found suitable exact version "3.7.13")
#22 517.1       -- Looking for ccache - found (/usr/local/bin/ccache)
#22 517.1       -- Performing Test HAVE_CXX_FSIGNED_CHAR
#22 517.1       -- Performing Test HAVE_CXX_FSIGNED_CHAR - Success
#22 517.1       -- Performing Test HAVE_C_FSIGNED_CHAR
#22 517.1       -- Performing Test HAVE_C_FSIGNED_CHAR - Success
#22 517.1       -- Performing Test HAVE_CXX_W
#22 517.1       -- Performing Test HAVE_CXX_W - Success
#22 517.1       -- Performing Test HAVE_C_W
#22 517.1       -- Performing Test HAVE_C_W - Success
#22 517.1       -- Performing Test HAVE_CXX_WALL

...

#22 517.1       --   Found gstreamer-audio-1.0, version 1.14.5
#22 517.1       -- Checking for module 'libdc1394-2'
#22 517.1       --   Found libdc1394-2, version 2.2.5
#22 517.1       -- Allocator metrics storage type: 'long long'
#22 517.1       -- Registering hook 'INIT_MODULE_SOURCES_opencv_dnn': /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/dnn/cmake/hooks/INIT_MODULE_SOURCES_opencv_dnn.cmake
#22 517.1       -- opencv_dnn: filter out cuda4dnn source code
#22 517.1       -- Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.rvv.cpp
#22 517.1       -- imgcodecs: OpenEXR codec is disabled in runtime. Details: https://github.com/opencv/opencv/issues/21326
#22 517.1       -- highgui: using builtin backend: GTK3
#22 517.1       -- Found 'misc' Python modules from /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/python/package/extra_modules
#22 517.1       -- Found 'mat_wrapper;utils' Python modules from /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/core/misc/python/package
#22 517.1       -- Found 'gapi' Python modules from /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/gapi/misc/python/package
#22 517.1       -- Performing Test HAVE_CXX_WNO_OVERLOADED_VIRTUAL
#22 517.1       -- Performing Test HAVE_CXX_WNO_OVERLOADED_VIRTUAL - Success
#22 517.1       -- Performing Test HAVE_CXX_WNO_UNUSED_PRIVATE_FIELD
#22 517.1       -- Performing Test HAVE_CXX_WNO_UNUSED_PRIVATE_FIELD - Failed
#22 517.1       -- Found 'misc' Python modules from /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/python/package/extra_modules
#22 517.1       -- Found 'mat_wrapper;utils' Python modules from /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/core/misc/python/package
#22 517.1       -- Found 'gapi' Python modules from /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/gapi/misc/python/package
#22 517.1       --
#22 517.1       -- General configuration for OpenCV 4.6.0 =====================================
#22 517.1       --   Version control:               unknown
#22 517.1       --
#22 517.1       --   Platform:
#22 517.1       --     Timestamp:                   2023-01-08T05:31:49Z
#22 517.1       --     Host:                        Linux 5.10.16.3-microsoft-standard-WSL2 x86_64
#22 517.1       --     CMake:                       3.25.0
#22 517.1       --     CMake generator:             Ninja
#22 517.1       --     CMake build tool:            /usr/bin/ninja
#22 517.1       --     Configuration:               Release
#22 517.1       --
#22 517.1       --   CPU/HW features:
#22 517.1       --     Baseline:                    SSE SSE2 SSE3
#22 517.1       --       requested:                 SSE3
#22 517.1       --     Dispatched code generation:  SSE4_1 SSE4_2 FP16 AVX AVX2 AVX512_SKX
#22 517.1       --       requested:                 SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX
#22 517.1       --       SSE4_1 (16 files):         + SSSE3 SSE4_1
#22 517.1       --       SSE4_2 (1 files):          + SSSE3 SSE4_1 POPCNT SSE4_2
#22 517.1       --       FP16 (0 files):            + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
#22 517.1       --       AVX (4 files):             + SSSE3 SSE4_1 POPCNT SSE4_2 AVX
#22 517.1       --       AVX2 (31 files):           + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2
#22 517.1       --       AVX512_SKX (5 files):      + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 AVX_512F AVX512_COMMON AVX512_SKX
#22 517.1       --
#22 517.1       --   C/C++:
#22 517.1       --     Built as dynamic libs?:      NO
#22 517.1       --     C++ standard:                11
#22 517.1       --     C++ Compiler:                /usr/local/gcc-8.2/bin/c++  (ver 8.2.0)
#22 517.1       --     C++ flags (Release):         -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -W
sign-promo -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG  -DNDEBUG
#22 517.1       --     C++ flags (Debug):           -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -W
sign-promo -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -g  -O0 -DDEBUG -D_DEBUG
#22 517.1       --     C Compiler:                  /usr/local/gcc-8.2/bin/gcc
#22 517.1       --     C flags (Release):           -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpoi
nter-arith -Wshadow -Wuninitialized -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -fvisibility=hidden -O3 -DNDEBUG  -DNDEBUG
#22 517.1       --     C flags (Debug):             -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpoi
nter-arith -Wshadow -Wuninitialized -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -fvisibility=hidden -g  -O0 -DDEBUG -D_DEBUG
#22 517.1       --     Linker flags (Release):      -Wl,--exclude-libs,libippicv.a -Wl,--exclude-libs,libippiw.a   -Wl,--gc-sections -Wl,--as-needed -Wl,--no-undefined
#22 517.1       --     Linker flags (Debug):        -Wl,--exclude-libs,libippicv.a -Wl,--exclude-libs,libippiw.a   -Wl,--gc-sections -Wl,--as-needed -Wl,--no-undefined
#22 517.1       --     ccache:                      YES
#22 517.1       --     Precompiled headers:         NO
#22 517.1       --     Extra dependencies:          /usr/lib/x86_64-linux-gnu/libfreetype.so /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/x86_64-linux-gnu/libwebp.so /usr/lib/x86_64-linux-gnu/libpng.so /usr/lib/x86_64-linux-gnu/libtiff.so /usr/lib/x86_64-linux-gnu/libz.so dl m pthread rt
#22 517.1       --     3rdparty dependencies:       libprotobuf ade ittnotify libopenjp2 IlmImf quirc ippiw ippicv
#22 517.1       --
#22 517.1       --   OpenCV modules:
#22 517.1       --     To be built:                 calib3d core dnn features2d flann gapi highgui imgcodecs imgproc ml objdetect photo python3 stitching video videoio
#22 517.1       --     Disabled:                    world
#22 517.1       --     Disabled by dependency:      -
#22 517.1       --     Unavailable:                 java python2 ts
#22 517.1       --     Applications:                -
#22 517.1       --     Documentation:               NO
#22 517.1       --     Non-free algorithms:         NO
#22 517.1       --
#22 517.1       --   GUI:                           GTK3
#22 517.1       --     GTK+:                        YES (ver 3.22.30)
#22 517.1       --       GThread :                  YES (ver 2.56.4)
#22 517.1       --       GtkGlExt:                  NO
#22 517.1       --     VTK support:                 NO
#22 517.1       --
#22 517.1       --   Media I/O:
#22 517.1       --     ZLib:                        /usr/lib/x86_64-linux-gnu/libz.so (ver 1.2.11)
#22 517.1       --     JPEG:                        /usr/lib/x86_64-linux-gnu/libjpeg.so (ver 80)
#22 517.1       --     WEBP:                        /usr/lib/x86_64-linux-gnu/libwebp.so (ver encoder: 0x020e)
#22 517.1       --     PNG:                         /usr/lib/x86_64-linux-gnu/libpng.so (ver 1.6.34)
#22 517.1       --     TIFF:                        /usr/lib/x86_64-linux-gnu/libtiff.so (ver 42 / 4.0.9)
#22 517.1       --     JPEG 2000:                   build (ver 2.4.0)
#22 517.1       --     OpenEXR:                     build (ver 2.3.0)
#22 517.1       --     HDR:                         YES
#22 517.1       --     SUNRASTER:                   YES
#22 517.1       --     PXM:                         YES
#22 517.1       --     PFM:                         YES
#22 517.1       --
#22 517.1       --   Video I/O:
#22 517.1       --     DC1394:                      YES (2.2.5)
#22 517.1       --     FFMPEG:                      YES
#22 517.1       --       avcodec:                   YES (57.107.100)
#22 517.1       --       avformat:                  YES (57.83.100)
#22 517.1       --       avutil:                    YES (55.78.100)
#22 517.1       --       swscale:                   YES (4.8.100)
#22 517.1       --       avresample:                YES (3.7.0)
#22 517.1       --     GStreamer:                   YES (1.14.5)
#22 517.1       --     v4l/v4l2:                    YES (linux/videodev2.h)
#22 517.1       --
#22 517.1       --   Parallel framework:            pthreads
#22 517.1       --
#22 517.1       --   Trace:                         YES (with Intel ITT)
#22 517.1       --
#22 517.1       --   Other third-party libraries:
#22 517.1       --     Intel IPP:                   2020.0.0 Gold [2020.0.0]
#22 517.1       --            at:                   /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/_skbuild/linux-x86_64-3.7/cmake-build/3rdparty/ippicv/ippicv_lnx/icv
#22 517.1       --     Intel IPP IW:                sources (2020.0.0)
#22 517.1       --               at:                /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/_skbuild/linux-x86_64-3.7/cmake-build/3rdparty/ippicv/ippicv_lnx/iw
#22 517.1       --     VA:                          NO
#22 517.1       --     Lapack:                      NO
#22 517.1       --     Eigen:                       NO
#22 517.1       --     Custom HAL:                  NO
#22 517.1       --     Protobuf:                    build (3.19.1)
#22 517.1       --
#22 517.1       --   OpenCL:                        YES (no extra features)
#22 517.1       --     Include path:                /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/3rdparty/include/opencl/1.2
#22 517.1       --     Link libraries:              Dynamic load
#22 517.1       --
#22 517.1       --   Python 3:
#22 517.1       --     Interpreter:                 /usr/bin/python (ver 3.7.13)
#22 517.1       --     Libraries:                   /usr/lib/x86_64-linux-gnu/libpython3.7m.so (ver 3.7.13)
#22 517.1       --     numpy:                       /tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/site-packages/numpy/core/include (ver 1.14.5)
#22 517.1       --     install path:                python/cv2/python-3
#22 517.1       --
#22 517.1       --   Python (for build):            /usr/bin/python2.7
#22 517.1       --
#22 517.1       --   Java:
#22 517.1       --     ant:                         NO
#22 517.1       --     JNI:                         NO
#22 517.1       --     Java wrappers:               NO
#22 517.1       --     Java tests:                  NO
#22 517.1       --
#22 517.1       --   Install to:                    /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/_skbuild/linux-x86_64-3.7/cmake-install
#22 517.1       -- -----------------------------------------------------------------
#22 517.1       --
#22 517.1       -- Configuring done
#22 517.1       -- Generating done
#22 517.1       -- Build files have been written to: /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/_skbuild/linux-x86_64-3.7/cmake-build
#22 517.1       [1/907] Building CXX object CMakeFiles/ade.dir/3rdparty/ade/ade-0.1.1f/sources/ade/source/assert.cpp.o
#22 517.1       [2/907] Building C object 3rdparty/openjpeg/openjp2/CMakeFiles/libopenjp2.dir/bio.c.o
#22 517.1       [3/907] Building C object 3rdparty/openjpeg/openjp2/CMakeFiles/libopenjp2.dir/cio.c.o
#22 517.1       [4/907] Building CXX object CMakeFiles/ade.dir/3rdparty/ade/ade-0.1.1f/sources/ade/source/alloc.cpp.o
#22 517.1       [5/907] Building C object 3rdparty/openjpeg/openjp2/CMakeFiles/libopenjp2.dir/event.c.o
#22 517.1       [6/907] Building C object 3rdparty/openjpeg/openjp2/CMakeFiles/libopenjp2.dir/thread.c.o
...

#22 517.1       [208/907] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/repeated_field.cc.o
#22 517.1       [209/907] Building C object 3rdparty/quirc/CMakeFiles/quirc.dir/src/decode.c.o
#22 517.1       [210/907] Linking C static library 3rdparty/lib/libquirc.a
#22 517.1       [211/907] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/unknown_field_set.cc.o
#22 517.1       [212/907] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/dynamic_message.cc.o
#22 517.1       [213/907] Building C object 3rdparty/ittnotify/CMakeFiles/ittnotify.dir/src/ittnotify/ittnotify_static.c.o
#22 517.1       [214/907] Linking C static library 3rdparty/lib/libittnotify.a
#22 517.1       [215/907] Processing OpenCL kernels (core)
#22 517.1       [216/907] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/extension_set_heavy.cc.o
#22 517.1       [217/907] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/reflection_ops.cc.o
#22 517.1       [218/907] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/extension_set.cc.o
#22 517.1       [219/907] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/message.cc.o
#22 517.1       [220/907] Generate files for Python bindings and documentation
#22 517.1       Note: Class cv::Feature2D has more than 1 base class (not supported by Python C extensions)
#22 517.1             Bases:  cv::Algorithm, cv::class, cv::Feature2D, cv::Algorithm
#22 517.1             Only the first base class will be used
#22 517.1       Note: Class cv::detail::GraphCutSeamFinder has more than 1 base class (not supported by Python C extensions)
#22 517.1             Bases:  cv::detail::GraphCutSeamFinderBase, cv::detail::SeamFinder
#22 517.1             Only the first base class will be used
#22 517.1       [221/907] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/buffer_area.cpp.o
#22 517.1       [222/907] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/alloc.cpp.o
#22 517.1       [223/907] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/map_field.cc.o
#22 517.1       [224/907] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/algorithm.cpp.o
#22 517.1       [225/907] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/batch_distance.cpp.o
#22 517.1       [226/907] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/check.cpp.o
#22 517.1       [227/907] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/descriptor_database.cc.o
#22 517.1       [228/907] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/bindings_utils.cpp.o
#22 517.1       [229/907] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/async.cpp.o
#22 517.1       [230/907] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/channels.cpp.o
#22 517.1       [231/907] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/conjugate_gradient.cpp.o
#22 517.1       [232/907] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/wire_format.cc.o
#22 517.1       [233/907] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/generated_message_reflection.cc.o
#22 517.1       [234/907] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/convert_c.cpp.o
#22 517.1       [235/907] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/arithm.cpp.o
#22 517.1       [236/907] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/array.cpp.o
#22 517.1       [237/907] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/count_non_zero.dispatch.cpp.o
#22 517.1       [238/907] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/cuda_info.cpp.o
#22 517.1       [239/907] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/cuda_gpu_mat.cpp.o
#22 517.1       [240/907] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/cuda_host_mem.cpp.o
...
#22 517.1       [870/907] Building CXX object modules/gapi/CMakeFiles/opencv_gapi.dir/src/backends/fluid/gfluidimgproc_func.dispatch.cpp.o
#22 517.1       [871/907] Building CXX object modules/gapi/CMakeFiles/opencv_gapi.dir/src/streaming/onevpl/accelerators/surface/surface.cpp.o
#22 517.1       [872/907] Building CXX object modules/gapi/CMakeFiles/opencv_gapi.dir/src/streaming/onevpl/accelerators/utils/shared_lock.cpp.o
#22 517.1       [873/907] Building CXX object modules/gapi/CMakeFiles/opencv_gapi.dir/src/streaming/onevpl/accelerators/surface/base_frame_adapter.cpp.o
#22 517.1       [874/907] Building CXX object modules/gapi/CMakeFiles/opencv_gapi.dir/src/streaming/onevpl/cfg_params.cpp.o
#22 517.1       [875/907] Building CXX object modules/gapi/CMakeFiles/opencv_gapi.dir/src/streaming/onevpl/accelerators/surface/surface_pool.cpp.o
#22 517.1       [876/907] Building CXX object modules/gapi/CMakeFiles/opencv_gapi.dir/src/streaming/onevpl/accelerators/surface/dx11_frame_adapter.cpp.o
#22 517.1       [877/907] Building CXX object modules/gapi/CMakeFiles/opencv_gapi.dir/src/backends/ocl/goclcore.cpp.o
#22 517.1       [878/907] Building CXX object modules/gapi/CMakeFiles/opencv_gapi.dir/src/streaming/onevpl/device_selector_interface.cpp.o
#22 517.1       [879/907] Building CXX object modules/gapi/CMakeFiles/opencv_gapi.dir/src/utils/itt.cpp.o
#22 517.1       [880/907] Building CXX object modules/gapi/CMakeFiles/opencv_gapi.dir/src/backends/fluid/gfluidimgproc.cpp.o
#22 517.1       [881/907] Building CXX object modules/gapi/CMakeFiles/opencv_gapi.dir/src/streaming/gstreamer/gstreamer_buffer_utils.cpp.o
#22 517.1       [882/907] Building CXX object modules/gapi/CMakeFiles/opencv_gapi.dir/src/backends/streaming/gstreamingbackend.cpp.o
#22 517.1       [883/907] Building CXX object modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2_util.cpp.o
#22 517.1       FAILED: modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2_util.cpp.o
#22 517.1       /usr/local/bin/ccache /usr/local/gcc-8.2/bin/c++ -DCVPY_DYNAMIC_INIT -D_USE_MATH_DEFINES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Dopencv_python3_EXPORTS -I/tmp/pip-install-x474r2ip/open
cv-python_b9e517ed04bf453b8092530cfa00558e/_skbuild/linux-x86_64-3.7/cmake-build/3rdparty/ippicv/ippicv_lnx/icv/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/_skbuild/linux-x86_64-3.7/cmake-build
/3rdparty/ippicv/ippicv_lnx/iw/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/python/python3/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/_skbu
ild/linux-x86_64-3.7/cmake-build/modules/python3 -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/core/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/openc
v/modules/flann/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/imgproc/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/ml/include -
I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/photo/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/dnn/include -I/tmp/pip-install-x474r2ip
/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/features2d/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/imgcodecs/include -I/tmp/pip-install-x474r2ip/opencv-python_
b9e517ed04bf453b8092530cfa00558e/opencv/modules/videoio/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/calib3d/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092
530cfa00558e/opencv/modules/highgui/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/objdetect/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/openc
v/modules/stitching/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/video/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/gapi/inclu
de -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/python/src2 -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/_skbuild/linux-x86_64-3.7/cmake-build/modules/python
_bindings_generator -isystem /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/_skbuild/linux-x86_64-3.7/cmake-build -isystem /usr/include/python3.7m -isystem /tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/
site-packages/numpy/core/include -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized 
-Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -mss
e3 -fvisibility=hidden -fvisibility-inlines-hidden -Wno-unused-function -Wno-deprecated-declarations -Wno-overloaded-virtual -Wno-undef -O3 -DNDEBUG  -DNDEBUG -fPIC -std=c++11 -MD -MT modules/python3/CMakeFiles/opencv_python3.dir/__
/src2/cv2_util.cpp.o -MF modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2_util.cpp.o.d -o modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2_util.cpp.o -c /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/python/src2/cv2_util.cpp
#22 517.1       In file included from /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/python/src2/cv2.hpp:36,
#22 517.1                        from /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/python/src2/cv2_util.hpp:4,
#22 517.1                        from /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/python/src2/cv2_util.cpp:1:
#22 517.1       /tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h: In function ‘int NPY_TITLE_KEY_check(PyObject*, PyObject*)’:
#22 517.1       /tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:242:9: error: ‘PyTuple_GET_SIZE’ was not declared in this scope
#22 517.1            if (PyTuple_GET_SIZE(value) != 3) {
#22 517.1                ^~~~~~~~~~~~~~~~
#22 517.1       /tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:242:9: note: suggested alternative: ‘PyTuple_GetSlice’
#22 517.1            if (PyTuple_GET_SIZE(value) != 3) {
#22 517.1                ^~~~~~~~~~~~~~~~
#22 517.1                PyTuple_GetSlice
#22 517.1       /tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:245:13: error: ‘PyTuple_GET_ITEM’ was not declared in this scope
#22 517.1            title = PyTuple_GET_ITEM(value, 2);
#22 517.1                    ^~~~~~~~~~~~~~~~
#22 517.1       /tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:245:13: note: suggested alternative: ‘PyArray_GETITEM’
#22 517.1            title = PyTuple_GET_ITEM(value, 2);
#22 517.1                    ^~~~~~~~~~~~~~~~
#22 517.1                    PyArray_GETITEM
#22 517.1       [884/907] Building CXX object modules/gapi/CMakeFiles/opencv_gapi.dir/src/streaming/gstreamer/gstreamerenv.cpp.o
#22 517.1       [885/907] Building CXX object modules/gapi/CMakeFiles/opencv_gapi.dir/src/streaming/onevpl/engine/preproc/preproc_dispatcher.cpp.o
#22 517.1       [886/907] Building CXX object modules/gapi/CMakeFiles/opencv_gapi.dir/src/streaming/onevpl/engine/preproc_engine_interface.cpp.o
#22 517.1       [887/907] Building CXX object modules/gapi/CMakeFiles/opencv_gapi.dir/src/streaming/gstreamer/gstreamer_media_adapter.cpp.o
#22 517.1       [888/907] Building CXX object modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2_numpy.cpp.o
#22 517.1       FAILED: modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2_numpy.cpp.o
#22 517.1       /usr/local/bin/ccache /usr/local/gcc-8.2/bin/c++ -DCVPY_DYNAMIC_INIT -D_USE_MATH_DEFINES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Dopencv_python3_EXPORTS -I/tmp/pip-install-x474r2ip/open
cv-python_b9e517ed04bf453b8092530cfa00558e/_skbuild/linux-x86_64-3.7/cmake-build/3rdparty/ippicv/ippicv_lnx/icv/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/_skbuild/linux-x86_64-3.7/cmake-build
/3rdparty/ippicv/ippicv_lnx/iw/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/python/python3/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/_skbu
ild/linux-x86_64-3.7/cmake-build/modules/python3 -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/core/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/openc
v/modules/flann/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/imgproc/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/ml/include -
I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/photo/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/dnn/include -I/tmp/pip-install-x474r2ip
/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/features2d/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/imgcodecs/include -I/tmp/pip-install-x474r2ip/opencv-python_
b9e517ed04bf453b8092530cfa00558e/opencv/modules/videoio/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/calib3d/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092
530cfa00558e/opencv/modules/highgui/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/objdetect/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/openc
v/modules/stitching/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/video/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/gapi/inclu
de -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/python/src2 -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/_skbuild/linux-x86_64-3.7/cmake-build/modules/python
_bindings_generator -isystem /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/_skbuild/linux-x86_64-3.7/cmake-build -isystem /usr/include/python3.7m -isystem /tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/
site-packages/numpy/core/include -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized 
-Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -mss
e3 -fvisibility=hidden -fvisibility-inlines-hidden -Wno-unused-function -Wno-deprecated-declarations -Wno-overloaded-virtual -Wno-undef -O3 -DNDEBUG  -DNDEBUG -fPIC -std=c++11 -MD -MT modules/python3/CMakeFiles/opencv_python3.dir/__
/src2/cv2_numpy.cpp.o -MF modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2_numpy.cpp.o.d -o modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2_numpy.cpp.o -c /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/python/src2/cv2_numpy.cpp
#22 517.1       In file included from /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/python/src2/cv2.hpp:36,
#22 517.1                        from /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/python/src2/cv2_numpy.hpp:4,
#22 517.1                        from /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/python/src2/cv2_numpy.cpp:6:
#22 517.1       /tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h: In function ‘int NPY_TITLE_KEY_check(PyObject*, PyObject*)’:
#22 517.1       /tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:242:9: error: ‘PyTuple_GET_SIZE’ was not declared in this scope
#22 517.1            if (PyTuple_GET_SIZE(value) != 3) {
#22 517.1                ^~~~~~~~~~~~~~~~
#22 517.1       /tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:242:9: note: suggested alternative: ‘PyTuple_GetSlice’
#22 517.1            if (PyTuple_GET_SIZE(value) != 3) {
#22 517.1                ^~~~~~~~~~~~~~~~
#22 517.1                PyTuple_GetSlice
#22 517.1       /tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:245:13: error: ‘PyTuple_GET_ITEM’ was not declared in this scope
#22 517.1            title = PyTuple_GET_ITEM(value, 2);
#22 517.1                    ^~~~~~~~~~~~~~~~
#22 517.1       /tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:245:13: note: suggested alternative: ‘PyArray_GETITEM’
#22 517.1            title = PyTuple_GET_ITEM(value, 2);
#22 517.1                    ^~~~~~~~~~~~~~~~
#22 517.1                    PyArray_GETITEM
#22 517.1       [889/907] Building CXX object modules/gapi/CMakeFiles/opencv_gapi.dir/src/backends/python/gpythonbackend.cpp.o
#22 517.1       [890/907] Building CXX object modules/gapi/CMakeFiles/opencv_gapi.dir/src/streaming/gstreamer/gstreamerpipeline.cpp.o
#22 517.1       [891/907] Building CXX object modules/gapi/CMakeFiles/opencv_gapi.dir/src/streaming/gstreamer/gstreamer_pipeline_facade.cpp.o
#22 517.1       [892/907] Building CXX object modules/gapi/CMakeFiles/opencv_gapi.dir/src/backends/fluid/gfluidcore_func.dispatch.cpp.o
#22 517.1       [893/907] Building CXX object modules/gapi/CMakeFiles/opencv_gapi.dir/src/streaming/gstreamer/gstreamersource.cpp.o
#22 517.1       [894/907] Building CXX object modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2_highgui.cpp.o
#22 517.1       FAILED: modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2_highgui.cpp.o
#22 517.1       /usr/local/bin/ccache /usr/local/gcc-8.2/bin/c++ -DCVPY_DYNAMIC_INIT -D_USE_MATH_DEFINES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Dopencv_python3_EXPORTS -I/tmp/pip-install-x474r2ip/open
cv-python_b9e517ed04bf453b8092530cfa00558e/_skbuild/linux-x86_64-3.7/cmake-build/3rdparty/ippicv/ippicv_lnx/icv/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/_skbuild/linux-x86_64-3.7/cmake-build
/3rdparty/ippicv/ippicv_lnx/iw/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/python/python3/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/_skbu
ild/linux-x86_64-3.7/cmake-build/modules/python3 -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/core/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/openc
v/modules/flann/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/imgproc/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/ml/include -
I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/photo/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/dnn/include -I/tmp/pip-install-x474r2ip
/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/features2d/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/imgcodecs/include -I/tmp/pip-install-x474r2ip/opencv-python_
b9e517ed04bf453b8092530cfa00558e/opencv/modules/videoio/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/calib3d/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092
530cfa00558e/opencv/modules/highgui/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/objdetect/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/openc
v/modules/stitching/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/video/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/gapi/inclu
de -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/python/src2 -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/_skbuild/linux-x86_64-3.7/cmake-build/modules/python
_bindings_generator -isystem /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/_skbuild/linux-x86_64-3.7/cmake-build -isystem /usr/include/python3.7m -isystem /tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/
site-packages/numpy/core/include -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized 
-Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -mss
e3 -fvisibility=hidden -fvisibility-inlines-hidden -Wno-unused-function -Wno-deprecated-declarations -Wno-overloaded-virtual -Wno-undef -O3 -DNDEBUG  -DNDEBUG -fPIC -std=c++11 -MD -MT modules/python3/CMakeFiles/opencv_python3.dir/__
/src2/cv2_highgui.cpp.o -MF modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2_highgui.cpp.o.d -o modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2_highgui.cpp.o -c /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/python/src2/cv2_highgui.cpp
#22 517.1       In file included from /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/python/src2/cv2.hpp:36,
#22 517.1                        from /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/python/src2/cv2_highgui.hpp:4,
#22 517.1                        from /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/python/src2/cv2_highgui.cpp:1:
#22 517.1       /tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h: In function ‘int NPY_TITLE_KEY_check(PyObject*, PyObject*)’:
#22 517.1       /tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:242:9: error: ‘PyTuple_GET_SIZE’ was not declared in this scope
#22 517.1            if (PyTuple_GET_SIZE(value) != 3) {
#22 517.1                ^~~~~~~~~~~~~~~~
#22 517.1       /tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:242:9: note: suggested alternative: ‘PyTuple_GetSlice’
#22 517.1            if (PyTuple_GET_SIZE(value) != 3) {
#22 517.1                ^~~~~~~~~~~~~~~~
#22 517.1                PyTuple_GetSlice
#22 517.1       /tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:245:13: error: ‘PyTuple_GET_ITEM’ was not declared in this scope
#22 517.1            title = PyTuple_GET_ITEM(value, 2);
#22 517.1                    ^~~~~~~~~~~~~~~~
#22 517.1       /tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:245:13: note: suggested alternative: ‘PyArray_GETITEM’
#22 517.1            title = PyTuple_GET_ITEM(value, 2);
#22 517.1                    ^~~~~~~~~~~~~~~~
#22 517.1                    PyArray_GETITEM
#22 517.1       [895/907] Building CXX object modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2_convert.cpp.o
#22 517.1       FAILED: modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2_convert.cpp.o
#22 517.1       /usr/local/bin/ccache /usr/local/gcc-8.2/bin/c++ -DCVPY_DYNAMIC_INIT -D_USE_MATH_DEFINES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Dopencv_python3_EXPORTS -I/tmp/pip-install-x474r2ip/open
cv-python_b9e517ed04bf453b8092530cfa00558e/_skbuild/linux-x86_64-3.7/cmake-build/3rdparty/ippicv/ippicv_lnx/icv/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/_skbuild/linux-x86_64-3.7/cmake-build
/3rdparty/ippicv/ippicv_lnx/iw/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/python/python3/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/_skbu
ild/linux-x86_64-3.7/cmake-build/modules/python3 -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/core/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/openc
v/modules/flann/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/imgproc/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/ml/include -
I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/photo/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/dnn/include -I/tmp/pip-install-x474r2ip
/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/features2d/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/imgcodecs/include -I/tmp/pip-install-x474r2ip/opencv-python_
b9e517ed04bf453b8092530cfa00558e/opencv/modules/videoio/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/calib3d/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092
530cfa00558e/opencv/modules/highgui/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/objdetect/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/openc
v/modules/stitching/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/video/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/gapi/inclu
de -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/python/src2 -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/_skbuild/linux-x86_64-3.7/cmake-build/modules/python
_bindings_generator -isystem /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/_skbuild/linux-x86_64-3.7/cmake-build -isystem /usr/include/python3.7m -isystem /tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/
site-packages/numpy/core/include -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized 
-Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -mss
e3 -fvisibility=hidden -fvisibility-inlines-hidden -Wno-unused-function -Wno-deprecated-declarations -Wno-overloaded-virtual -Wno-undef -O3 -DNDEBUG  -DNDEBUG -fPIC -std=c++11 -MD -MT modules/python3/CMakeFiles/opencv_python3.dir/__
/src2/cv2_convert.cpp.o -MF modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2_convert.cpp.o.d -o modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2_convert.cpp.o -c /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/python/src2/cv2_convert.cpp
#22 517.1       In file included from /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/python/src2/cv2.hpp:36,
#22 517.1                        from /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/python/src2/cv2_convert.hpp:4,
#22 517.1                        from /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/python/src2/cv2_convert.cpp:6:
#22 517.1       /tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h: In function ‘int NPY_TITLE_KEY_check(PyObject*, PyObject*)’:
#22 517.1       /tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:242:9: error: ‘PyTuple_GET_SIZE’ was not declared in this scope
#22 517.1            if (PyTuple_GET_SIZE(value) != 3) {
#22 517.1                ^~~~~~~~~~~~~~~~
#22 517.1       /tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:242:9: note: suggested alternative: ‘PyTuple_GetSlice’
#22 517.1            if (PyTuple_GET_SIZE(value) != 3) {
#22 517.1                ^~~~~~~~~~~~~~~~
#22 517.1                PyTuple_GetSlice
#22 517.1       /tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:245:13: error: ‘PyTuple_GET_ITEM’ was not declared in this scope
#22 517.1            title = PyTuple_GET_ITEM(value, 2);
#22 517.1                    ^~~~~~~~~~~~~~~~
#22 517.1       /tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:245:13: note: suggested alternative: ‘PyArray_GETITEM’
#22 517.1            title = PyTuple_GET_ITEM(value, 2);
#22 517.1                    ^~~~~~~~~~~~~~~~
#22 517.1                    PyArray_GETITEM
#22 517.1       [896/907] Building CXX object modules/gapi/CMakeFiles/opencv_gapi.dir/src/backends/fluid/gfluidbackend.cpp.o
#22 517.1       [897/907] Building CXX object modules/gapi/CMakeFiles/opencv_gapi.dir/src/executor/gstreamingexecutor.cpp.o
#22 517.1       [898/907] Building CXX object modules/gapi/CMakeFiles/opencv_gapi.dir/src/backends/fluid/gfluidcore.cpp.o
#22 517.1       [899/907] Building CXX object modules/gapi/CMakeFiles/opencv_gapi.dir/backends/fluid/gfluidimgproc_func.sse4_1.cpp.o
#22 517.1       [900/907] Building CXX object modules/gapi/CMakeFiles/opencv_gapi.dir/backends/fluid/gfluidimgproc_func.avx2.cpp.o
#22 517.1       [901/907] Building CXX object modules/gapi/CMakeFiles/opencv_gapi.dir/src/backends/common/serialization.cpp.o
#22 517.1       [902/907] Building CXX object modules/gapi/CMakeFiles/opencv_gapi.dir/backends/fluid/gfluidcore_func.sse4_1.cpp.o
#22 517.1       [903/907] Building CXX object modules/gapi/CMakeFiles/opencv_gapi.dir/backends/fluid/gfluidcore_func.avx2.cpp.o
#22 517.1       [904/907] Building CXX object modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o
#22 517.1       FAILED: modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o
#22 517.1       /usr/local/bin/ccache /usr/local/gcc-8.2/bin/c++ -DCVPY_DYNAMIC_INIT -D_USE_MATH_DEFINES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Dopencv_python3_EXPORTS -I/tmp/pip-install-x474r2ip/open
cv-python_b9e517ed04bf453b8092530cfa00558e/_skbuild/linux-x86_64-3.7/cmake-build/3rdparty/ippicv/ippicv_lnx/icv/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/_skbuild/linux-x86_64-3.7/cmake-build
/3rdparty/ippicv/ippicv_lnx/iw/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/python/python3/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/_skbu
ild/linux-x86_64-3.7/cmake-build/modules/python3 -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/core/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/openc
v/modules/flann/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/imgproc/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/ml/include -
I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/photo/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/dnn/include -I/tmp/pip-install-x474r2ip
/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/features2d/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/imgcodecs/include -I/tmp/pip-install-x474r2ip/opencv-python_
b9e517ed04bf453b8092530cfa00558e/opencv/modules/videoio/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/calib3d/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092
530cfa00558e/opencv/modules/highgui/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/objdetect/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/openc
v/modules/stitching/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/video/include -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/gapi/inclu
de -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/python/src2 -I/tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/_skbuild/linux-x86_64-3.7/cmake-build/modules/python
_bindings_generator -isystem /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/_skbuild/linux-x86_64-3.7/cmake-build -isystem /usr/include/python3.7m -isystem /tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/
site-packages/numpy/core/include -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized 
-Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -mss
e3 -fvisibility=hidden -fvisibility-inlines-hidden -Wno-unused-function -Wno-deprecated-declarations -Wno-overloaded-virtual -Wno-undef -O3 -DNDEBUG  -DNDEBUG -fPIC -std=c++11 -MD -MT modules/python3/CMakeFiles/opencv_python3.dir/__
/src2/cv2.cpp.o -MF modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o.d -o modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o -c /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/python/src2/cv2.cpp
#22 517.1       In file included from /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/python/src2/cv2.hpp:36,
#22 517.1                        from /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/opencv/modules/python/src2/cv2.cpp:5:
#22 517.1       /tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h: In function ‘int NPY_TITLE_KEY_check(PyObject*, PyObject*)’:
#22 517.1       /tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:242:9: error: ‘PyTuple_GET_SIZE’ was not declared in this scope
#22 517.1            if (PyTuple_GET_SIZE(value) != 3) {
#22 517.1                ^~~~~~~~~~~~~~~~
#22 517.1       /tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:242:9: note: suggested alternative: ‘PyTuple_GetSlice’
#22 517.1            if (PyTuple_GET_SIZE(value) != 3) {
#22 517.1                ^~~~~~~~~~~~~~~~
#22 517.1                PyTuple_GetSlice
#22 517.1       /tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:245:13: error: ‘PyTuple_GET_ITEM’ was not declared in this scope
#22 517.1            title = PyTuple_GET_ITEM(value, 2);
#22 517.1                    ^~~~~~~~~~~~~~~~
#22 517.1       /tmp/pip-build-env-ayrdcjf_/overlay/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:245:13: note: suggested alternative: ‘PyArray_GETITEM’
#22 517.1            title = PyTuple_GET_ITEM(value, 2);
#22 517.1                    ^~~~~~~~~~~~~~~~
#22 517.1         Install target:
#22 517.1         Install target:
#22 517.1           install
#22 517.1         Source directory:
#22 517.1           /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e
#22 517.1         Working directory:
#22 517.1           /tmp/pip-install-x474r2ip/opencv-python_b9e517ed04bf453b8092530cfa00558e/_skbuild/linux-x86_64-3.7/cmake-build
#22 517.1       Please check the install target is valid and see CMake's output for more information.
#22 517.1       [end of output]
#22 517.1
#22 517.1   note: This error originates from a subprocess, and is likely not a problem with pip.
#22 517.1   ERROR: Failed building wheel for opencv-python
#22 517.1 Failed to build opencv-python
#22 517.1 ERROR: Could not build wheels for opencv-python, which is required to install pyproject.toml-based projects
------
executor failed running [/bin/sh -c export CMAKE_ARGS="-DWITH_FREETYPE=ON"      && export MAKEFLAGS="-j $(($(nproc)-1))"     && export OPENCV_IPPICV_URL="https://ghproxy.com/https://raw.githubusercontent.com/opencv/opencv_3rdparty/a56b6ac6f030c312b2dce17430eef13aed9af274/ippicv/"     && export OPENCV_ADE_URL="https://ghproxy.com/https://github.com/opencv/ade/archive/"     && python -m pip install --no-binary opencv-python opencv-python==4.6.0.66]: exit code: 1

Steps to reproduce

Issue submission checklist
alalek commented 1 year ago
numpy/core/include/numpy/ndarrayobject.h:242:9: error: ‘PyTuple_GET_SIZE’ was not declared in this scope
            if (PyTuple_GET_SIZE(value) != 3) {

You need to upgrade numpy. Used numpy version (1.21.6 ?) is broken: https://github.com/opencv/opencv-python/issues/612#issuecomment-1013900483

githubwyj commented 1 year ago

ok

numpy/core/include/numpy/ndarrayobject.h:242:9: error: ‘PyTuple_GET_SIZE’ was not declared in this scope
            if (PyTuple_GET_SIZE(value) != 3) {

You need to upgrade numpy. Used numpy version (~1.21.6 ?~) is broken: #612 (comment)

ok , thinks