opencv-python icon indicating copy to clipboard operation
opencv-python copied to clipboard

pip wheel . --verbose didn't build a wheel for opencv, just opencv_contrib and numpy

Open johncblacker opened this issue 2 years ago • 3 comments

Expected behaviour

Build a .whl file for opencv as well as one for opencv_contrib

Actual behaviour

.whl for opencv_contrib was built but .whl file for opencv was not built

Steps to reproduce

export ENABLE_CONTRIB=1

ubuntu 22.04 on WSL2

x86-64

  • opencv-python version did git checkout tag/4.5.5 in the opencv_contrib subdirectory did git checkout tag/4.5.5 in the opencv subdirectory
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

johncblacker avatar Jul 21 '23 18:07 johncblacker

I'm really confused now. I did the git checkout tags/4.5.5 in the opencv subdir and the opencv_contrib subdir; however, when the build was complete I got a opencv_contrib_python-4.8 wheel file! After I did the checkouts I did a git status and each of them were pointing to the 4.5.5 version yet the build ended up for 4.8; also after the build was complete I went into each of the subdir's and they were back to "origin/4.x" so I'm not understanding how/why that happened. I'm trying to build version 4.5.5 but am unable to do so...perhaps I'm doing something wrong? Need some help please.

johncblacker avatar Jul 22 '23 19:07 johncblacker

setup.py updates submodules to be sure that opencv-python and submodules are consistent in https://github.com/opencv/opencv-python/blob/43cd7169cb92d96898d59753796678495b95c833/setup.py#L51. It's debatable solution and may lead to confusion. Will check if it could be dropped.

asmorkalov avatar Aug 09 '23 07:08 asmorkalov

I believe that to be accurate it must be 64-bit OS (bullseye) on RPi4; I tried installing mediapipe==0.10.3 and it will not install

On 32-bit RPi4 bullseye…

If you are saying that it should install on 32-bit bullseye, RPi4, then there is a problem.

Thanks for the reply.

John Blacker

From: Alexander Smorkalov @.*** Sent: Wednesday, August 9, 2023 3:05 AM To: opencv/opencv-python @.> Cc: John Blacker @.>; Author @.***> Subject: Re: [opencv/opencv-python] pip wheel . --verbose didn't build a wheel for opencv, just opencv_contrib and numpy (Issue #876)

setup.py updates submodules to be sure that opencv-python and submodules are consistent in https://github.com/opencv/opencv-python/blob/43cd7169cb92d96898d59753796678495b95c833/setup.py#L51. It's debatable solution and may lead to confusion. Will check if it could be dropped.

— Reply to this email directly, view it on GitHub https://github.com/opencv/opencv-python/issues/876#issuecomment-1670785279 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AB6WAAQLB7BNFI25M2G66SDXUMZDNANCNFSM6AAAAAA2TFBI74 . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AB6WAAV53XEFVS6J3ENFW7TXUMZDNA5CNFSM6AAAAAA2TFBI76WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTDSYUP6.gif Message ID: @.*** @.***> >

johncblacker avatar Aug 10 '23 16:08 johncblacker