This happened out of the blue, I was able to import cv2 but now I get 'AttributeError: partially initialized module 'cv2' has no attribute 'gapi_wip_gst_GStreamerPipeline' (most likely due to a circular import)' error when I import it. The things I tried:
1-uninstalling and installing opencv. 2-In cmd, I typed "pip list" and opencv-python package is listed. I ran "python" command and tried importing cv2 but I get the same error. Please help.
CodePudding user response:
I changed my anaconda environment but it caused some other bugs. I just uninstall anaconda and installed it. It works now
CodePudding user response:
Updating the package https://pypi.org/project/opencv-python/ to version 4.6.0.66 worked for me