Skip to content

wheel build for headless fails on 4.7.0 for Py38 #836

Closed
@bertsky

Description

Expected behaviour

When building manually as per documentation, I expect to get a .whl file which I can then pip install.

(I know I can also install via PyPI on my platform, but I have to build my own wheels.)

Actual behaviour

However, step 5 (pip wheel) fails with a strange error message:

full build log

Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Processing ./opencv-python
  Running command pip subprocess to install build dependencies
  Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com, https://pypi.ngc.nvidia.com
...
  Installing collected packages: cmake, wheel, tomli, setuptools, pip, packaging, numpy, distro, scikit-build
  Successfully installed cmake-3.26.3 distro-1.8.0 numpy-1.17.3 packaging-23.1 pip-23.1.1 scikit-build-0.17.2 setuptools-59.2.0 tomli-2.0.1 wheel-0.37.0
  Installing build dependencies ... done
  Running command Getting requirements to build wheel
  running egg_info
  creating opencv_python_headless.egg-info
  writing opencv_python_headless.egg-info/PKG-INFO
  writing dependency_links to opencv_python_headless.egg-info/dependency_links.txt
  writing requirements to opencv_python_headless.egg-info/requires.txt
  writing top-level names to opencv_python_headless.egg-info/top_level.txt
  writing manifest file 'opencv_python_headless.egg-info/SOURCES.txt'
  reading manifest file 'opencv_python_headless.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  adding license file 'LICENSE-3RD-PARTY.txt'
  adding license file 'LICENSE.txt'
  writing manifest file 'opencv_python_headless.egg-info/SOURCES.txt'
  /tmp/pip-build-env-2l3nyybo/overlay/lib/python3.8/site-packages/setuptools/dist.py:501: UserWarning: The version specified ('4.7.0.6b73d90') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
    warnings.warn(
  /tmp/pip-build-env-2l3nyybo/overlay/lib/python3.8/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 4.7.0.6b73d90 is an invalid version and will not be supported in a future release
    warnings.warn(
  Getting requirements to build wheel ... done
  Running command Preparing metadata (pyproject.toml)
  running dist_info
  creating /tmp/pip-modern-metadata-qqodxyw_/opencv_python_headless.egg-info
  writing /tmp/pip-modern-metadata-qqodxyw_/opencv_python_headless.egg-info/PKG-INFO
  writing dependency_links to /tmp/pip-modern-metadata-qqodxyw_/opencv_python_headless.egg-info/dependency_links.txt
  writing requirements to /tmp/pip-modern-metadata-qqodxyw_/opencv_python_headless.egg-info/requires.txt
  writing top-level names to /tmp/pip-modern-metadata-qqodxyw_/opencv_python_headless.egg-info/top_level.txt
  writing manifest file '/tmp/pip-modern-metadata-qqodxyw_/opencv_python_headless.egg-info/SOURCES.txt'
  reading manifest file '/tmp/pip-modern-metadata-qqodxyw_/opencv_python_headless.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  adding license file 'LICENSE-3RD-PARTY.txt'
  adding license file 'LICENSE.txt'
  writing manifest file '/tmp/pip-modern-metadata-qqodxyw_/opencv_python_headless.egg-info/SOURCES.txt'
  creating '/tmp/pip-modern-metadata-qqodxyw_/opencv_python_headless.dist-info'
  adding license file "LICENSE.txt" (matched pattern "LICEN[CS]E*")
  adding license file "LICENSE-3RD-PARTY.txt" (matched pattern "LICEN[CS]E*")
  /tmp/pip-build-env-2l3nyybo/overlay/lib/python3.8/site-packages/setuptools/dist.py:501: UserWarning: The version specified ('4.7.0.6b73d90') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
    warnings.warn(
  /tmp/pip-build-env-2l3nyybo/overlay/lib/python3.8/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 4.7.0.6b73d90 is an invalid version and will not be supported in a future release
    warnings.warn(
  Preparing metadata (pyproject.toml) ... done
Collecting numpy>=1.17.0 (from opencv-python-headless===4.7.0.6b73d90)
  Downloading numpy-1.24.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 17.3/17.3 MB 91.2 MB/s eta 0:00:00
Saved ./numpy-1.24.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Building wheels for collected packages: opencv-python-headless
  Running command Building wheel for opencv-python-headless (pyproject.toml)


  --------------------------------------------------------------------------------
  -- Trying 'Ninja' generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  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.Not searching for unused variables given on the command line.

  -- Configuring incomplete, errors occurred!
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying 'Ninja' generator - failure
  --------------------------------------------------------------------------------



  --------------------------------------------------------------------------------
  -- Trying 'Unix Makefiles' generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  Not searching for unused variables given on the command line.
  -- The C compiler identification is GNU 9.4.0
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: /usr/bin/cc - skipped
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- The CXX compiler identification is GNU 9.4.0
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: /usr/bin/c++ - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Configuring done (0.4s)
  -- Generating done (0.0s)
  -- Build files have been written to: /test/opencv-python/_cmake_test_compile/build
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying 'Unix Makefiles' generator - success
  --------------------------------------------------------------------------------

  Configuring Project
    Working directory:
      /test/opencv-python/_skbuild/linux-x86_64-3.8/cmake-build
    Command:
      /tmp/pip-build-env-2l3nyybo/overlay/lib/python3.8/site-packages/cmake/data/bin/cmake /test/opencv-python/opencv -G 'Unix Makefiles' --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/test/opencv-python/_skbuild/linux-x86_64-3.8/cmake-install -DPYTHON_VERSION_STRING:STRING=3.8.10 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/tmp/pip-build-env-2l3nyybo/overlay/lib/python3.8/site-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/test/venv/bin/python3 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.8 -DPYTHON_LIBRARY:PATH=/usr/lib/x86_64-linux-gnu/libpython3.8.so -DPython_EXECUTABLE:PATH=/test/venv/bin/python3 -DPython_ROOT_DIR:PATH=/test/venv -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/usr/include/python3.8 -DPython_NumPy_INCLUDE_DIRS:PATH=/tmp/pip-build-env-2l3nyybo/overlay/lib/python3.8/site-packages/numpy/core/include -DPython3_EXECUTABLE:PATH=/test/venv/bin/python3 -DPython3_ROOT_DIR:PATH=/test/venv -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/usr/include/python3.8 -DPython3_NumPy_INCLUDE_DIRS:PATH=/tmp/pip-build-env-2l3nyybo/overlay/lib/python3.8/site-packages/numpy/core/include -DPYTHON3_EXECUTABLE=/test/venv/bin/python3 -DPYTHON3_INCLUDE_DIR=/usr/include/python3.8 -DPYTHON3_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython3.8.so -DBUILD_opencv_python3=ON -DBUILD_opencv_python2=OFF -DBUILD_opencv_java=OFF -DOPENCV_PYTHON3_INSTALL_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_WIN32UI=OFF -DWITH_QT=OFF -DWITH_GTK=OFF -DCMAKE_BUILD_TYPE:STRING=Release

  Not searching for unused variables given on the command line.
  -- The CXX compiler identification is GNU 9.4.0
  -- The C compiler identification is GNU 9.4.0
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: /usr/bin/c++ - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: /usr/bin/cc - skipped
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Detected processor: x86_64
  -- Found PythonInterp: /test/venv/bin/python3 (found suitable version "3.8.10", minimum required is "2.7")
  CMake Warning at cmake/OpenCVDetectPython.cmake:81 (message):
    CMake's 'find_host_package(PythonInterp 2.7)' found wrong Python version:

    PYTHON_EXECUTABLE=/test/venv/bin/python3

    PYTHON_VERSION_STRING=3.8.10

    Consider providing the 'PYTHON2_EXECUTABLE' variable via CMake command line
    or environment variables

  Call Stack (most recent call first):
    cmake/OpenCVDetectPython.cmake:271 (find_python)
    CMakeLists.txt:643 (include)

  
  -- Found Python2: /usr/bin/python2.7 (found version "2.7.18") found components: Interpreter
  -- Found PythonInterp: /usr/bin/python2.7 (found version "2.7.18")
  -- Could NOT find PythonLibs: Found unsuitable version "3.8.10", but required is exact version "2.7.18" (found /usr/lib/x86_64-linux-gnu/libpython3.8.so)
  Error processing line 1 of /test/venv/lib/python3.8/site-packages/distutils-precedence.pth:

    Traceback (most recent call last):
      File "/usr/lib/python2.7/site.py", line 158, in addpackage
        exec line
      File "<string>", line 1, in <module>
      File "/test/venv/lib/python3.8/site-packages/_distutils_hack/__init__.py", line 194
        f'spec_for_{name}',
                         ^
    SyntaxError: invalid syntax

  Remainder of file ignored
  Error processing line 1 of /test/venv/lib/python3.8/site-packages/distutils-precedence.pth:

    Traceback (most recent call last):
      File "/usr/lib/python2.7/site.py", line 158, in addpackage
        exec line
      File "<string>", line 1, in <module>
      File "/test/venv/lib/python3.8/site-packages/_distutils_hack/__init__.py", line 194
        f'spec_for_{name}',
                         ^
    SyntaxError: invalid syntax

  Remainder of file ignored
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-build-env-2l3nyybo/overlay/lib/python3.8/site-packages/numpy/__init__.py", line 142, in <module>
      from . import core
    File "/tmp/pip-build-env-2l3nyybo/overlay/lib/python3.8/site-packages/numpy/core/__init__.py", line 47, in <module>
      raise ImportError(msg)
  ImportError:

  IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

  Importing the numpy c-extensions failed.
  - Try uninstalling and reinstalling numpy.
  - If you have already done that, then:
    1. Check that you expected to use Python2.7 from "/usr/bin/python2.7",
       and that you have no directories in your PATH or PYTHONPATH that can
       interfere with the Python and numpy version "1.17.3" you're trying to use.
    2. If (1) looks fine, you can open a new issue at
       https://github.com/numpy/numpy/issues.  Please include details on:
       - how you installed Python
       - how you installed numpy
       - your operating system
       - whether or not you have multiple versions of Python installed
       - if you built from source, your compiler versions and ideally a build log

  - If you're working with a numpy git repository, try `git clean -xdf`
    (removes all files not under version control) and rebuild numpy.

  Note: this error has many possible causes, so please don't comment on
  an existing issue about this - open a new one instead.

  Original error was: No module named _multiarray_umath

  -- Found PythonInterp: /test/venv/bin/python3 (found suitable version "3.8.10", minimum required is "3.2")
  -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.8.so (found suitable exact version "3.8.10")
  -- Looking for ccache - not found
  -- Performing Test HAVE_CXX_FSIGNED_CHAR
  -- Performing Test HAVE_CXX_FSIGNED_CHAR - Success
...
  --
  -- General configuration for OpenCV 4.7.0 =====================================
  --   Version control:               4.7.0
  --
  --   Platform:
  --     Timestamp:                   2023-04-25T16:33:28Z
  --     Host:                        Linux 5.4.0-147-generic x86_64
  --     CMake:                       3.26.3
  --     CMake generator:             Unix Makefiles
  --     CMake build tool:            /usr/bin/make
  --     Configuration:               Release
  --
  --   CPU/HW features:
  --     Baseline:                    SSE SSE2 SSE3
  --       requested:                 SSE3
  --     Dispatched code generation:  SSE4_1 SSE4_2 FP16 AVX AVX2 AVX512_SKX
  --       requested:                 SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX
  --       SSE4_1 (16 files):         + SSSE3 SSE4_1
  --       SSE4_2 (1 files):          + SSSE3 SSE4_1 POPCNT SSE4_2
  --       FP16 (0 files):            + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
  --       AVX (4 files):             + SSSE3 SSE4_1 POPCNT SSE4_2 AVX
  --       AVX2 (32 files):           + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2
  --       AVX512_SKX (5 files):      + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 AVX_512F AVX512_COMMON AVX512_SKX
  --
  --   C/C++:
  --     Built as dynamic libs?:      NO
  --     C++ standard:                11
  --     C++ Compiler:                /usr/bin/c++  (ver 9.4.0)
  --     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 -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 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG  -DNDEBUG
  --     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 -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 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -g  -O0 -DDEBUG -D_DEBUG
  --     C Compiler:                  /usr/bin/cc
  --     C flags (Release):           -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-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
  --     C flags (Debug):             -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-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
  --     Linker flags (Release):      -Wl,--exclude-libs,libippicv.a -Wl,--exclude-libs,libippiw.a   -Wl,--gc-sections -Wl,--as-needed -Wl,--no-undefined
  --     Linker flags (Debug):        -Wl,--exclude-libs,libippicv.a -Wl,--exclude-libs,libippiw.a   -Wl,--gc-sections -Wl,--as-needed -Wl,--no-undefined
  --     ccache:                      NO
  --     Precompiled headers:         NO
  --     Extra dependencies:          /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
  --     3rdparty dependencies:       libprotobuf ade ittnotify libopenjp2 IlmImf quirc ippiw ippicv
  --
  --   OpenCV modules:
  --     To be built:                 calib3d core dnn features2d flann gapi highgui imgcodecs imgproc ml objdetect photo python3 stitching video videoio
  --     Disabled:                    world
  --     Disabled by dependency:      -
  --     Unavailable:                 java python2 ts
  --     Applications:                -
  --     Documentation:               NO
  --     Non-free algorithms:         NO
  --
  --   GUI:                           NONE
  --     VTK support:                 NO
  --
  --   Media I/O:
  --     ZLib:                        /usr/lib/x86_64-linux-gnu/libz.so (ver 1.2.11)
  --     JPEG:                        /usr/lib/x86_64-linux-gnu/libjpeg.so (ver 80)
  --     WEBP:                        /usr/lib/x86_64-linux-gnu/libwebp.so (ver encoder: 0x020e)
  --     PNG:                         /usr/lib/x86_64-linux-gnu/libpng.so (ver 1.6.37)
  --     TIFF:                        /usr/lib/x86_64-linux-gnu/libtiff.so (ver 42 / 4.1.0)
  --     JPEG 2000:                   build (ver 2.4.0)
  --     OpenEXR:                     build (ver 2.3.0)
  --     HDR:                         YES
  --     SUNRASTER:                   YES
  --     PXM:                         YES
  --     PFM:                         YES
  --
  --   Video I/O:
  --     DC1394:                      NO
  --     FFMPEG:                      NO
  --       avcodec:                   NO
  --       avformat:                  NO
  --       avutil:                    NO
  --       swscale:                   NO
  --       avresample:                NO
  --     GStreamer:                   NO
  --     v4l/v4l2:                    YES (linux/videodev2.h)
  --
  --   Parallel framework:            pthreads
  --
  --   Trace:                         YES (with Intel ITT)
  --
  --   Other third-party libraries:
  --     Intel IPP:                   2020.0.0 Gold [2020.0.0]
  --            at:                   /test/opencv-python/_skbuild/linux-x86_64-3.8/cmake-build/3rdparty/ippicv/ippicv_lnx/icv
  --     Intel IPP IW:                sources (2020.0.0)
  --               at:                /test/opencv-python/_skbuild/linux-x86_64-3.8/cmake-build/3rdparty/ippicv/ippicv_lnx/iw
  --     VA:                          NO
  --     Lapack:                      NO
  --     Eigen:                       NO
  --     Custom HAL:                  NO
  --     Protobuf:                    build (3.19.1)
  --
  --   OpenCL:                        YES (no extra features)
  --     Include path:                /test/opencv-python/opencv/3rdparty/include/opencl/1.2
  --     Link libraries:              Dynamic load
  --
  --   Python 3:
  --     Interpreter:                 /test/venv/bin/python3 (ver 3.8.10)
  --     Libraries:                   /usr/lib/x86_64-linux-gnu/libpython3.8.so (ver 3.8.10)
  --     numpy:                       /tmp/pip-build-env-2l3nyybo/overlay/lib/python3.8/site-packages/numpy/core/include (ver 1.17.3)
  --     install path:                python/cv2/python-3
  --
  --   Python (for build):            /usr/bin/python2.7
  --
  --   Java:
  --     ant:                         NO
  --     JNI:                         NO
  --     Java wrappers:               NO
  --     Java tests:                  NO
  --
  --   Install to:                    /test/opencv-python/_skbuild/linux-x86_64-3.8/cmake-install
  -- -----------------------------------------------------------------
  --
  -- Configuring done (13.3s)
  -- Generating done (0.1s)
  -- Build files have been written to: /test/opencv-python/_skbuild/linux-x86_64-3.8/cmake-build
...
   [ 98%] Linking CXX static library ../../lib/libopencv_gapi.a
  make[3]: Leaving directory '/test/opencv-python/_skbuild/linux-x86_64-3.8/cmake-build'
  [ 98%] Built target opencv_gapi
  make[3]: Entering directory '/test/opencv-python/_skbuild/linux-x86_64-3.8/cmake-build'
  make[3]: Leaving directory '/test/opencv-python/_skbuild/linux-x86_64-3.8/cmake-build'
  make[3]: Entering directory '/test/opencv-python/_skbuild/linux-x86_64-3.8/cmake-build'
  [ 99%] Generate files for Python bindings and documentation
  Error processing line 1 of /test/venv/lib/python3.8/site-packages/distutils-precedence.pth:

    Traceback (most recent call last):
      File "/usr/lib/python2.7/site.py", line 158, in addpackage
        exec line
      File "<string>", line 1, in <module>
      File "/test/venv/lib/python3.8/site-packages/_distutils_hack/__init__.py", line 194
        f'spec_for_{name}',
                         ^
    SyntaxError: invalid syntax

  Remainder of file ignored
  Note: Class cv::Feature2D has more than 1 base class (not supported by Python C extensions)
        Bases:  cv::Algorithm, cv::class, cv::Feature2D, cv::Algorithm
        Only the first base class will be used
  Note: Class cv::detail::GraphCutSeamFinder has more than 1 base class (not supported by Python C extensions)
        Bases:  cv::detail::GraphCutSeamFinderBase, cv::detail::SeamFinder
        Only the first base class will be used
  make[3]: Leaving directory '/test/opencv-python/_skbuild/linux-x86_64-3.8/cmake-build'
  [ 99%] Built target gen_opencv_python_source
  make[3]: Entering directory '/test/opencv-python/_skbuild/linux-x86_64-3.8/cmake-build'
  make[3]: Leaving directory '/test/opencv-python/_skbuild/linux-x86_64-3.8/cmake-build'
  make[3]: Entering directory '/test/opencv-python/_skbuild/linux-x86_64-3.8/cmake-build'
  [ 99%] Building CXX object modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o
  [100%] Building CXX object modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2_util.cpp.o
  [100%] Building CXX object modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2_numpy.cpp.o
  [100%] Building CXX object modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2_convert.cpp.o
  [100%] Building CXX object modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2_highgui.cpp.o
  [100%] Linking CXX shared module ../../lib/python3/cv2.abi3.so
  make[3]: Leaving directory '/test/opencv-python/_skbuild/linux-x86_64-3.8/cmake-build'
  [100%] Built target opencv_python3
  make[2]: Leaving directory '/test/opencv-python/_skbuild/linux-x86_64-3.8/cmake-build'
  Install the project...
  -- Install configuration: "Release"
  -- Installing: /test/opencv-python/_skbuild/linux-x86_64-3.8/cmake-install/share/licenses/opencv4/ippicv-readme.htm
  -- Installing: /test/opencv-python/_skbuild/linux-x86_64-3.8/cmake-install/share/licenses/opencv4/ippicv-EULA.txt
  -- Installing: /test/opencv-python/_skbuild/linux-x86_64-3.8/cmake-install/share/licenses/opencv4/ippicv-third-party-programs.txt
  -- Installing: /test/opencv-python/_skbuild/linux-x86_64-3.8/cmake-install/lib/opencv4/3rdparty/libippicv.a
  -- Installing: /test/opencv-python/_skbuild/linux-x86_64-3.8/cmake-install/share/licenses/opencv4/ippiw-support.txt
  -- Installing: /test/opencv-python/_skbuild/linux-x86_64-3.8/cmake-install/share/licenses/opencv4/ippiw-third-party-programs.txt
  -- Installing: /test/opencv-python/_skbuild/linux-x86_64-3.8/cmake-install/share/licenses/opencv4/ippiw-EULA.txt
  -- Installing: /test/opencv-python/_skbuild/linux-x86_64-3.8/cmake-install/share/licenses/opencv4/opencl-headers-LICENSE.txt
  -- Installing: /test/opencv-python/_skbuild/linux-x86_64-3.8/cmake-install/lib/opencv4/3rdparty/libade.a
  -- Installing: /test/opencv-python/_skbuild/linux-x86_64-3.8/cmake-install/share/licenses/opencv4/ade-LICENSE
  -- Installing: /test/opencv-python/_skbuild/linux-x86_64-3.8/cmake-install/include/opencv4/opencv2/cvconfig.h
...
  -- Installing: /test/opencv-python/_skbuild/linux-x86_64-3.8/cmake-install/share/opencv4/lbpcascades/lbpcascade_silverware.xml
  make[1]: Leaving directory '/test/opencv-python/_skbuild/linux-x86_64-3.8/cmake-build'
  Copying files from CMake output
  creating directory _skbuild/linux-x86_64-3.8/cmake-install/cv2
  copying _skbuild/linux-x86_64-3.8/cmake-install/python/cv2/python-3/cv2.abi3.so -> _skbuild/linux-x86_64-3.8/cmake-install/cv2/cv2.abi3.so
  copying _skbuild/linux-x86_64-3.8/cmake-install/python/cv2/__init__.py -> _skbuild/linux-x86_64-3.8/cmake-install/cv2/__init__.py
  copying _skbuild/linux-x86_64-3.8/cmake-install/python/cv2/load_config_py2.py -> _skbuild/linux-x86_64-3.8/cmake-install/cv2/load_config_py2.py
  copying _skbuild/linux-x86_64-3.8/cmake-install/python/cv2/load_config_py3.py -> _skbuild/linux-x86_64-3.8/cmake-install/cv2/load_config_py3.py
  copying _skbuild/linux-x86_64-3.8/cmake-install/python/cv2/config.py -> _skbuild/linux-x86_64-3.8/cmake-install/cv2/config.py
  copying _skbuild/linux-x86_64-3.8/cmake-install/python/cv2/config-3.py -> _skbuild/linux-x86_64-3.8/cmake-install/cv2/config-3.py
  creating directory _skbuild/linux-x86_64-3.8/cmake-install/cv2/data
  copying _skbuild/linux-x86_64-3.8/cmake-install/share/opencv4/haarcascades/haarcascade_eye.xml -> _skbuild/linux-x86_64-3.8/cmake-install/cv2/data/haarcascade_eye.xml
  copying _skbuild/linux-x86_64-3.8/cmake-install/share/opencv4/haarcascades/haarcascade_eye_tree_eyeglasses.xml -> _skbuild/linux-x86_64-3.8/cmake-install/cv2/data/haarcascade_eye_tree_eyeglasses.xml
  copying _skbuild/linux-x86_64-3.8/cmake-install/share/opencv4/haarcascades/haarcascade_frontalcatface.xml -> _skbuild/linux-x86_64-3.8/cmake-install/cv2/data/haarcascade_frontalcatface.xml
  copying _skbuild/linux-x86_64-3.8/cmake-install/share/opencv4/haarcascades/haarcascade_frontalcatface_extended.xml -> _skbuild/linux-x86_64-3.8/cmake-install/cv2/data/haarcascade_frontalcatface_extended.xml
  copying _skbuild/linux-x86_64-3.8/cmake-install/share/opencv4/haarcascades/haarcascade_frontalface_alt.xml -> _skbuild/linux-x86_64-3.8/cmake-install/cv2/data/haarcascade_frontalface_alt.xml
  copying _skbuild/linux-x86_64-3.8/cmake-install/share/opencv4/haarcascades/haarcascade_frontalface_alt2.xml -> _skbuild/linux-x86_64-3.8/cmake-install/cv2/data/haarcascade_frontalface_alt2.xml
  copying _skbuild/linux-x86_64-3.8/cmake-install/share/opencv4/haarcascades/haarcascade_frontalface_alt_tree.xml -> _skbuild/linux-x86_64-3.8/cmake-install/cv2/data/haarcascade_frontalface_alt_tree.xml
  copying _skbuild/linux-x86_64-3.8/cmake-install/share/opencv4/haarcascades/haarcascade_frontalface_default.xml -> _skbuild/linux-x86_64-3.8/cmake-install/cv2/data/haarcascade_frontalface_default.xml
  copying _skbuild/linux-x86_64-3.8/cmake-install/share/opencv4/haarcascades/haarcascade_fullbody.xml -> _skbuild/linux-x86_64-3.8/cmake-install/cv2/data/haarcascade_fullbody.xml
  copying _skbuild/linux-x86_64-3.8/cmake-install/share/opencv4/haarcascades/haarcascade_lefteye_2splits.xml -> _skbuild/linux-x86_64-3.8/cmake-install/cv2/data/haarcascade_lefteye_2splits.xml
  copying _skbuild/linux-x86_64-3.8/cmake-install/share/opencv4/haarcascades/haarcascade_license_plate_rus_16stages.xml -> _skbuild/linux-x86_64-3.8/cmake-install/cv2/data/haarcascade_license_plate_rus_16stages.xml
  copying _skbuild/linux-x86_64-3.8/cmake-install/share/opencv4/haarcascades/haarcascade_lowerbody.xml -> _skbuild/linux-x86_64-3.8/cmake-install/cv2/data/haarcascade_lowerbody.xml
  copying _skbuild/linux-x86_64-3.8/cmake-install/share/opencv4/haarcascades/haarcascade_profileface.xml -> _skbuild/linux-x86_64-3.8/cmake-install/cv2/data/haarcascade_profileface.xml
  copying _skbuild/linux-x86_64-3.8/cmake-install/share/opencv4/haarcascades/haarcascade_righteye_2splits.xml -> _skbuild/linux-x86_64-3.8/cmake-install/cv2/data/haarcascade_righteye_2splits.xml
  copying _skbuild/linux-x86_64-3.8/cmake-install/share/opencv4/haarcascades/haarcascade_russian_plate_number.xml -> _skbuild/linux-x86_64-3.8/cmake-install/cv2/data/haarcascade_russian_plate_number.xml
  copying _skbuild/linux-x86_64-3.8/cmake-install/share/opencv4/haarcascades/haarcascade_smile.xml -> _skbuild/linux-x86_64-3.8/cmake-install/cv2/data/haarcascade_smile.xml
  copying _skbuild/linux-x86_64-3.8/cmake-install/share/opencv4/haarcascades/haarcascade_upperbody.xml -> _skbuild/linux-x86_64-3.8/cmake-install/cv2/data/haarcascade_upperbody.xml
  creating directory _skbuild/linux-x86_64-3.8/cmake-install/cv2/gapi
  copying _skbuild/linux-x86_64-3.8/cmake-install/python/cv2/gapi/__init__.py -> _skbuild/linux-x86_64-3.8/cmake-install/cv2/gapi/__init__.py
  creating directory _skbuild/linux-x86_64-3.8/cmake-install/cv2/mat_wrapper
  copying _skbuild/linux-x86_64-3.8/cmake-install/python/cv2/mat_wrapper/__init__.py -> _skbuild/linux-x86_64-3.8/cmake-install/cv2/mat_wrapper/__init__.py
  creating directory _skbuild/linux-x86_64-3.8/cmake-install/cv2/misc
  copying _skbuild/linux-x86_64-3.8/cmake-install/python/cv2/misc/__init__.py -> _skbuild/linux-x86_64-3.8/cmake-install/cv2/misc/__init__.py
  copying _skbuild/linux-x86_64-3.8/cmake-install/python/cv2/misc/version.py -> _skbuild/linux-x86_64-3.8/cmake-install/cv2/misc/version.py
  creating directory _skbuild/linux-x86_64-3.8/cmake-install/cv2/utils
  copying _skbuild/linux-x86_64-3.8/cmake-install/python/cv2/utils/__init__.py -> _skbuild/linux-x86_64-3.8/cmake-install/cv2/utils/__init__.py
  Copying files from non-default sourcetree locations
  copying LICENSE.txt -> _skbuild/linux-x86_64-3.8/cmake-install/cv2/LICENSE.txt
  copying LICENSE-3RD-PARTY.txt -> _skbuild/linux-x86_64-3.8/cmake-install/cv2/LICENSE-3RD-PARTY.txt

  copying cv2/data/__init__.py -> _skbuild/linux-x86_64-3.8/cmake-install/cv2/data/__init__.py
  copying /test/opencv-python/cv2/version.py -> _skbuild/linux-x86_64-3.8/cmake-install/cv2/version.py

  running bdist_wheel
  running build
  running build_py
  creating _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8
  creating _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2
  copying _skbuild/linux-x86_64-3.8/cmake-install/cv2/__init__.py -> _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2
  copying _skbuild/linux-x86_64-3.8/cmake-install/cv2/config-3.py -> _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2
  copying _skbuild/linux-x86_64-3.8/cmake-install/cv2/version.py -> _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2
  copying _skbuild/linux-x86_64-3.8/cmake-install/cv2/load_config_py2.py -> _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2
  copying _skbuild/linux-x86_64-3.8/cmake-install/cv2/load_config_py3.py -> _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2
  copying _skbuild/linux-x86_64-3.8/cmake-install/cv2/config.py -> _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2
  creating _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/data
  copying _skbuild/linux-x86_64-3.8/cmake-install/cv2/data/__init__.py -> _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/data
  copying _skbuild/linux-x86_64-3.8/cmake-install/cv2/LICENSE.txt -> _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2
  copying _skbuild/linux-x86_64-3.8/cmake-install/cv2/LICENSE-3RD-PARTY.txt -> _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2
  copying _skbuild/linux-x86_64-3.8/cmake-install/cv2/cv2.abi3.so -> _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2
  creating _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/gapi
  copying _skbuild/linux-x86_64-3.8/cmake-install/cv2/gapi/__init__.py -> _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/gapi
  creating _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/mat_wrapper
  copying _skbuild/linux-x86_64-3.8/cmake-install/cv2/mat_wrapper/__init__.py -> _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/mat_wrapper
  creating _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/misc
  copying _skbuild/linux-x86_64-3.8/cmake-install/cv2/misc/__init__.py -> _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/misc
  copying _skbuild/linux-x86_64-3.8/cmake-install/cv2/misc/version.py -> _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/misc
  creating _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/utils
  copying _skbuild/linux-x86_64-3.8/cmake-install/cv2/utils/__init__.py -> _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/utils
  copying _skbuild/linux-x86_64-3.8/cmake-install/cv2/data/haarcascade_upperbody.xml -> _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/data
  copying _skbuild/linux-x86_64-3.8/cmake-install/cv2/data/haarcascade_frontalface_default.xml -> _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/data
  copying _skbuild/linux-x86_64-3.8/cmake-install/cv2/data/haarcascade_frontalface_alt.xml -> _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/data
  copying _skbuild/linux-x86_64-3.8/cmake-install/cv2/data/haarcascade_eye.xml -> _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/data
  copying _skbuild/linux-x86_64-3.8/cmake-install/cv2/data/haarcascade_frontalface_alt2.xml -> _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/data
  copying _skbuild/linux-x86_64-3.8/cmake-install/cv2/data/haarcascade_lefteye_2splits.xml -> _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/data
  copying _skbuild/linux-x86_64-3.8/cmake-install/cv2/data/haarcascade_profileface.xml -> _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/data
  copying _skbuild/linux-x86_64-3.8/cmake-install/cv2/data/haarcascade_russian_plate_number.xml -> _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/data
  copying _skbuild/linux-x86_64-3.8/cmake-install/cv2/data/haarcascade_lowerbody.xml -> _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/data
  copying _skbuild/linux-x86_64-3.8/cmake-install/cv2/data/haarcascade_license_plate_rus_16stages.xml -> _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/data
  copying _skbuild/linux-x86_64-3.8/cmake-install/cv2/data/haarcascade_righteye_2splits.xml -> _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/data
  copying _skbuild/linux-x86_64-3.8/cmake-install/cv2/data/haarcascade_eye_tree_eyeglasses.xml -> _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/data
  copying _skbuild/linux-x86_64-3.8/cmake-install/cv2/data/haarcascade_frontalcatface.xml -> _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/data
  copying _skbuild/linux-x86_64-3.8/cmake-install/cv2/data/haarcascade_smile.xml -> _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/data
  copying _skbuild/linux-x86_64-3.8/cmake-install/cv2/data/haarcascade_frontalcatface_extended.xml -> _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/data
  copying _skbuild/linux-x86_64-3.8/cmake-install/cv2/data/haarcascade_fullbody.xml -> _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/data
  copying _skbuild/linux-x86_64-3.8/cmake-install/cv2/data/haarcascade_frontalface_alt_tree.xml -> _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/data
  copied 7 files
  running build_ext
  installing to _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel
  running install
  running install_lib
  creating _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64
  creating _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel
  creating _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2
  copying _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/__init__.py -> _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2
  creating _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2/data
  copying _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/data/haarcascade_upperbody.xml -> _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2/data
  copying _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/data/haarcascade_frontalface_default.xml -> _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2/data
  copying _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/data/__init__.py -> _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2/data
  copying _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/data/haarcascade_frontalface_alt.xml -> _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2/data
  copying _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/data/haarcascade_eye.xml -> _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2/data
  copying _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/data/haarcascade_frontalface_alt2.xml -> _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2/data
  copying _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/data/haarcascade_lefteye_2splits.xml -> _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2/data
  copying _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/data/haarcascade_profileface.xml -> _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2/data
  copying _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/data/haarcascade_russian_plate_number.xml -> _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2/data
  copying _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/data/haarcascade_lowerbody.xml -> _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2/data
  copying _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/data/haarcascade_license_plate_rus_16stages.xml -> _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2/data
  copying _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/data/haarcascade_righteye_2splits.xml -> _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2/data
  copying _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/data/haarcascade_eye_tree_eyeglasses.xml -> _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2/data
  copying _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/data/haarcascade_frontalcatface.xml -> _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2/data
  copying _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/data/haarcascade_smile.xml -> _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2/data
  copying _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/data/haarcascade_frontalcatface_extended.xml -> _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2/data
  copying _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/data/haarcascade_fullbody.xml -> _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2/data
  copying _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/data/haarcascade_frontalface_alt_tree.xml -> _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2/data
  copying _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/config-3.py -> _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2
  copying _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/version.py -> _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2
  creating _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2/mat_wrapper
  copying _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/mat_wrapper/__init__.py -> _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2/mat_wrapper
  copying _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/LICENSE.txt -> _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2
  copying _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/load_config_py2.py -> _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2
  creating _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2/misc
  copying _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/misc/__init__.py -> _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2/misc
  copying _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/misc/version.py -> _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2/misc
  copying _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/cv2.abi3.so -> _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2
  copying _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/load_config_py3.py -> _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2
  creating _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2/gapi
  copying _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/gapi/__init__.py -> _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2/gapi
  copying _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/LICENSE-3RD-PARTY.txt -> _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2
  creating _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2/utils
  copying _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/utils/__init__.py -> _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2/utils
  copying _skbuild/linux-x86_64-3.8/setuptools/lib.linux-x86_64-3.8/cv2/config.py -> _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/cv2
  copied 32 files
  running install_egg_info
  running egg_info
  writing opencv_python_headless.egg-info/PKG-INFO
  writing dependency_links to opencv_python_headless.egg-info/dependency_links.txt
  writing requirements to opencv_python_headless.egg-info/requires.txt
  writing top-level names to opencv_python_headless.egg-info/top_level.txt
  reading manifest file 'opencv_python_headless.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  adding license file 'LICENSE-3RD-PARTY.txt'
  adding license file 'LICENSE.txt'
  writing manifest file 'opencv_python_headless.egg-info/SOURCES.txt'
  Copying opencv_python_headless.egg-info to _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/opencv_python_headless-4.7.0.6b73d90-py3.8.egg-info
  running install_scripts
  copied 0 files
  adding license file "LICENSE.txt" (matched pattern "LICEN[CS]E*")
  adding license file "LICENSE-3RD-PARTY.txt" (matched pattern "LICEN[CS]E*")
  creating _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel/opencv_python_headless-4.7.0.6b73d90.dist-info/WHEEL
  creating '/tmp/pip-wheel-i9lqdy13/tmptt193jdl/opencv_python_headless-4.7.0.6b73d90-cp38-cp38-linux_x86_64.whl' and adding '_skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel' to it
  adding 'cv2/LICENSE-3RD-PARTY.txt'
  adding 'cv2/LICENSE.txt'
  adding 'cv2/__init__.py'
  adding 'cv2/config-3.py'
  adding 'cv2/config.py'
  adding 'cv2/cv2.abi3.so'
  adding 'cv2/load_config_py2.py'
  adding 'cv2/load_config_py3.py'
  adding 'cv2/version.py'
  adding 'cv2/data/__init__.py'
  adding 'cv2/data/haarcascade_eye.xml'
  adding 'cv2/data/haarcascade_eye_tree_eyeglasses.xml'
  adding 'cv2/data/haarcascade_frontalcatface.xml'
  adding 'cv2/data/haarcascade_frontalcatface_extended.xml'
  adding 'cv2/data/haarcascade_frontalface_alt.xml'
  adding 'cv2/data/haarcascade_frontalface_alt2.xml'
  adding 'cv2/data/haarcascade_frontalface_alt_tree.xml'
  adding 'cv2/data/haarcascade_frontalface_default.xml'
  adding 'cv2/data/haarcascade_fullbody.xml'
  adding 'cv2/data/haarcascade_lefteye_2splits.xml'
  adding 'cv2/data/haarcascade_license_plate_rus_16stages.xml'
  adding 'cv2/data/haarcascade_lowerbody.xml'
  adding 'cv2/data/haarcascade_profileface.xml'
  adding 'cv2/data/haarcascade_righteye_2splits.xml'
  adding 'cv2/data/haarcascade_russian_plate_number.xml'
  adding 'cv2/data/haarcascade_smile.xml'
  adding 'cv2/data/haarcascade_upperbody.xml'
  adding 'cv2/gapi/__init__.py'
  adding 'cv2/mat_wrapper/__init__.py'
  adding 'cv2/misc/__init__.py'
  adding 'cv2/misc/version.py'
  adding 'cv2/utils/__init__.py'
  adding 'opencv_python_headless-4.7.0.6b73d90.dist-info/LICENSE-3RD-PARTY.txt'
  adding 'opencv_python_headless-4.7.0.6b73d90.dist-info/LICENSE.txt'
  adding 'opencv_python_headless-4.7.0.6b73d90.dist-info/METADATA'
  adding 'opencv_python_headless-4.7.0.6b73d90.dist-info/WHEEL'
  adding 'opencv_python_headless-4.7.0.6b73d90.dist-info/top_level.txt'
  adding 'opencv_python_headless-4.7.0.6b73d90.dist-info/RECORD'
  removing _skbuild/linux-x86_64-3.8/setuptools/bdist.linux-x86_64/wheel
  /tmp/pip-build-env-2l3nyybo/overlay/lib/python3.8/site-packages/setuptools/dist.py:501: UserWarning: The version specified ('4.7.0.6b73d90') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
    warnings.warn(
  /tmp/pip-build-env-2l3nyybo/overlay/lib/python3.8/site-packages/setuptools/dist.py:501: UserWarning: The version specified ('4.7.0.6b73d90') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
    warnings.warn(
  /tmp/pip-build-env-2l3nyybo/overlay/lib/python3.8/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 4.7.0.6b73d90 is an invalid version and will not be supported in a future release
    warnings.warn(
  Building wheel for opencv-python-headless (pyproject.toml) ... done
  Created wheel for opencv-python-headless: filename=opencv_python_headless-4.7.0.6b73d90-cp38-cp38-linux_x86_64.whl size=28777931 sha256=c23a3695c39ffb7b07dbae430ef3145f834e213b5fe0e6c06c124bd275f83cb3
  Stored in directory: /tmp/pip-ephem-wheel-cache-w0lpva8d/wheels/8d/df/01/3502823b3430c611058d0842c6059ecd1c1ef33537da86e988
  WARNING: Built wheel for opencv-python-headless is invalid: Metadata 1.2 mandates PEP 440 version, but '4.7.0.6b73d90' is not
Failed to build opencv-python-headless
ERROR: Failed to build one or more wheels

(Note: I had to cut off several long passages due to GH's 64k char size constraint, each marked as ....)

I can only see two potential problems:

  1. it seems like it's trying to use python2.7 at times (see Traceback and distutils-precedence.)
  2. it complains Built wheel for opencv-python-headless is invalid: Metadata 1.2 mandates PEP 440 version, but '4.7.0.6b73d90' is not

However, 1. seems to be ignored and later OpenCV gets built and the Python wheels (temporarily), too.

And regarding 2., this is only a warning message. (And I don't see why I must conform to that naming scheme for a local distribution. Furthermore, at least for the CI build, it seems ok to build from a non-tagged commit, as this successful CI log for the same commit shows.)

Steps to reproduce

I followed the instructions for manual builds, except that in my case opencv-python is a submodule, so it's git submodule update --init --recursive opencv-python instead of git clone --recursive https://github.com/opencv/opencv-python.git.

output of git clone

Submodule path 'opencv-python': checked out '6b73d90fc3e50ba6858926d299b49f0228e19d68'
Submodule path 'opencv-python/multibuild': checked out '15fd8770abe6b12e94c2362ae8f21cd876bd998e'
Submodule path 'opencv-python/opencv': checked out '725e440d278aca07d35a5e8963ef990572b07316'
Submodule path 'opencv-python/opencv_contrib': checked out 'e247b680a6bd396f110274b6c214406a93171350'
Submodule path 'opencv-python/opencv_extra': checked out '5abbd7e0546bbb34ae7487170383d3e571fb1dd1'
Submodule 'opencv-python' (https://github.com/skvark/opencv-python.git) registered for path 'opencv-python'
Cloning into '/test/opencv-python'...
Submodule 'multibuild' (https://github.com/multi-build/multibuild.git) registered for path 'opencv-python/multibuild'
Submodule 'opencv' (https://github.com/opencv/opencv.git) registered for path 'opencv-python/opencv'
Submodule 'opencv_contrib' (https://github.com/opencv/opencv_contrib.git) registered for path 'opencv-python/opencv_contrib'
Submodule 'opencv_extra' (https://github.com/opencv/opencv_extra.git) registered for path 'opencv-python/opencv_extra'
Cloning into '/test/opencv-python/multibuild'...
Cloning into '/test/opencv-python/opencv'...
Cloning into '/test/opencv-python/opencv_contrib'...
Cloning into '/test/opencv-python/opencv_extra'...

Commands to build:

python3 -m venv /test/venv
. /test/venv/bin/activate && pip install --upgrade pip setuptools wheel
. /test/venv/bin/activate && ENABLE_HEADLESS=1 pip wheel ./opencv-python --verbose

My environment is:

  • Ubuntu 20.04 distribution of GNU/Linux 5.4.0 on x86_64
  • Python 3.8.10 / Pip 23.1
  • opencv-python 6b73d90 (current head of 4.x)
Issue submission checklist
  • This is not a generic OpenCV usage question (looking for help for coding, other usage questions, homework etc.)
  • I have read the README of this repository and understand that this repository provides only an automated build toolchain for OpenCV Python packages (there is no actual OpenCV code here)
  • The issue is related to the build scripts in this repository, to the pre-built binaries or is a feature request (such as "please enable this additional dependency")
  • I'm using the latest version of opencv-python

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions