AttributeError: partially initialized module 'cv2' has no attribute 'gapi_wip_gst_GStreamerPipeline' (most likely due to a circular import)
Try:
pip uninstall opencv-python pip uninstall opencv-contrib-python pip uninstall opencv-contrib-python-headless
Then:
pip3 install opencv-contrib-python==4.5.5.62
(inside the virtual environment)
You can refer to https://github.com/opencv/opencv-python/issues/749.
The most probable reason may be multiple OpenCV instances installed on your system.
You can try the method provided by @iskewedI or refer to https://stackoverflow.com/questions/72706073/attributeerror-partially-initialized-module-cv2-has-no-attribute-gapi-wip-gs.
Try:
pip uninstall opencv-python pip uninstall opencv-contrib-python pip uninstall opencv-contrib-python-headless
Then:
pip3 install opencv-contrib-python==4.5.5.62
(inside the virtual environment)
tianks, it resovled