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.56k stars 852 forks source link

AttributeError: module 'cv2.gapi' has no attribute 'wip' #911

Open RefriZaddo opened 1 year ago

RefriZaddo commented 1 year ago

Expected behaviour

The script had to RUN to record frames

Actual behaviour

Threw me the error AttributeError: module 'cv2.gapi' has no attribute 'wip'

Steps to reproduce

  1. import cv2
  2. that's it
Issue submission checklist
asmorkalov commented 1 year ago

Most probably you have more than one instance of OpenCV-Python installed on your system with different sources. Please check pip list command.

RefriZaddo commented 1 year ago

Most probably you have more than one instance of OpenCV-Python installed on your system with different sources. Please check pip list command.

Nope, I only have one OpenCV-Python version: opencv-contrib-python version 4.8.1.78

parmentelat commented 6 months ago

FWIW I ran into this too just now I was able to get things back to working by simply updating all my pips

StormsHalted commented 3 months ago

I got the same error today:

AttributeError: module 'cv2.gapi' has no attribute 'wip'

Uninstalling open CV and reinstalling it might fix.